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.
Some of the SVD files in
CMSIS_SVDlead toCONSTRAINT_ERRORexceptions because typeNaturalis too small to store address values.This can be reproduced for example with M1AGL.svd.
The following error is raised by
svd2ada:In my system (linux 64-bit), type
Naturalhas a max value of 2147483647, i.e. 0x7FFFFFFF. As a result of this,svd2adafails to process address or size values which are greater than this upper limit.