Question
USB DFU code generation from STM32CubeMX (F4) for SW4STM32
Posted on July 19, 2015 at 12:35
Hello,
I'm new with the STM32CubeMX software and the SW4STM32 IDE. I have some issues with the generation of a simple USB DFU application. I was working with the STM32CubeMX 4.8.0 release and the STM32F4 1.6.0 Firmware package and all were working perfectly. However, I have updated both components to the last one available (4.9.0 & 1.7.0), and now I'm not able to compile the project. Whereas I was writing this post I have found the solution. I think it could be interesting for other people. This is the problem:- The new FW package + STMCubeMX version generates 2 new predefined symbols that I had to remove. They are already defined into the hal_def.h file:
- _weak
- _packed
- On the other hand, I had to rename all the include paths by this way:
- Rename all paths in absolute form (Now works)
- Ranem again into relative form (always is better)
