Skip to content

range check failed because type Natural is used for address values #99

@luzidchris

Description

@luzidchris

Some of the SVD files in CMSIS_SVD lead to CONSTRAINT_ERROR exceptions because type Natural is too small to store address values.
This can be reproduced for example with M1AGL.svd.

The following error is raised by svd2ada:

raised CONSTRAINT_ERROR : base_types.adb:218 range check failed

In my system (linux 64-bit), type Natural has a max value of 2147483647, i.e. 0x7FFFFFFF. As a result of this, svd2ada fails to process address or size values which are greater than this upper limit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions