AnsweredAssumed Answered

STM32CubeMX 4.19.0 Code generation issue

Question asked by Majchrak.Peter on Feb 26, 2017
Latest reply on Mar 28, 2017 by Sirma Siang

Hi.

I have noticed some problems when generating code using STM32CubeMX 4.19.0. I included the zipped project in the attachments. In the Src/main.c file it generates the declaration of the FSMC init function

static void MX_FSMC_Init(void);

but it is never defined. All the other functions get properly defined below the main function but this one does not. It would really help to have this code generated since using FSMC is tricky.

There is also a second issue with the code generation. I have set up a DMA Memory to memory transfer and it generated some code for it but it didn't define the variable is uses. I had to put the variable definition manually in my private global variable definitions.

static void MX_DMA_Init(void) {

   ...
   hdma_memtomem_dma2_stream0.Instance = DMA2_Stream0; /* <------ hdma_memtomem_dma2_stream0 is undefined */

   ...

Attachments

Outcomes