AdaCore / svd2ada

An Ada binding generator from SVD descriptions for bare board ARM devices.
GNU General Public License v3.0
64 stars 36 forks source link

Base types not generated when using --base-types-package command line option #37

Closed dgautherot closed 7 years ago

dgautherot commented 7 years ago

Hello,

When attempting to generate code using the STM32F7x.svd description with the following command line: ./svd2ada --output=STM32F7x-SVD --package=STM32F7x.SVD --base-types-package=STM32F7x --boolean --gen-uint-always CMSIS-SVD/ST/STM32F7x.svd

It appears that the base types (type UInt32, ...) are not generated at all, even in STM32F7x.SVD package (in which i find the base addresses) or in STM32F7x (which does not exist).

Am i doing something wrong with the command line parameters or is this really an issue ?

In the meantime, I will check in the source code if I see where this issue is coming from.

Thanks.

Denis.

lambourg commented 7 years ago

Hello Denis,

The --base-types-package tells svd2ada that the base types are located in an external package (in this case STM32F7x), so it should reference them there instead of generating them.

Removing this switch should solve your issue.