I hope this is the right forum for asking about the Ada Drivers Library and that may be useful for others. In the spec. file of the package STM32.Device there is a line at the bottom: GPIO_AF_FMC_12 : constant GPIO_Alternate_Function := 12;
What I believe is the corresponding code in the C-file stm32f4xx_gpio : #define GPIO_AF_FSMC ((uint8_t)0xC) / FSMC Alternate Function mapping /
Is FMC miss-spelled and it should be FSMC?
Fabien Chouteau
@Fabien-Chouteau
@joakim-strandberg FMC (Flexible Memory Controller) and FSMC (Flexible Static Memory Controller) are two different peripherals. And it looks like we don't have the driver for the FSMC so that's probably why the GPIO_AF_FSMC is not declared.
joakim-strandberg
@joakim-strandberg
@Fabien-Chouteau ok, thanks for the feedback.
Frank Buss
@frank_buss_twitter
I'm trying to port the stm32f429_discovery board to my board, but I can't find the linker file, where is the memory map for the microcontroller specified, like SRAM size and location etc.?
in the Ada Drivers Library
Pierre-Marie de Rodat
@pmderodat
hello frank
I'm not an expert in this, but I don't think linker scripts would belong to ada drivers library, which is more a library than a port
Yes, this is what I was searching. Don't know if this is a good idea to use a directory for each CPU, there are so many variants. Anyone who wants to implement the files for the SM32F411VE? Note, this is different e.g. compared to the STM32F411VC (512 k flash instead of 256 k flash, but both 128 k SRAM). And then I would need the boards files for the Ada Drivers Library for my board, this one: http://www.st.com/en/evaluation-tools/32f411ediscovery.html
that's much easier with CubeMX, where all this stuff is just a mouse click
Pierre-Marie de Rodat
@pmderodat
okay good
… I’ll let people familiar with embedded dev to address your remarks ;-)
Fabien Chouteau
@Fabien-Chouteau
Hi @frank_buss_twitter ! We improved a lot
Frank Buss
@frank_buss_twitter
you mean it was even worse? :-)
Fabien Chouteau
@Fabien-Chouteau
Yes, and we know we still have a long way to go. Supporting the gazillion variants of STM32 is not a simple challange to address.
Frank Buss
@frank_buss_twitter
Maybe you can generate it all from the CubeMX files? If you have installed it, take a look at C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\db\mcu, all clear text XML files with all the differences. Of course, the best would be to have just another target, "Ada", in the CubeMX settings, much like there is a target for TrueStudio, MDK-ARM etc. Unfortunately looks like CubeMX is not open source, and might be difficult to add an Ada target, because I assume there are lots of hardcoded C stuff in it.
Fabien Chouteau
@Fabien-Chouteau
Generation from the XML files is something we will have a look at.
For the Ada_Drivers_Library library itself you should be able to use the support available in the srm32f4_disco