FreeRTOS running, SUCCESS!
This announcement is to establish the following as working and foment discussion about System Workbench and STM32CubeMX.
Configuration:
- Windows 7
- System Workbench
- STM32CubeMX
- STM32CubeF4
- STM32F3Discovery Board
I created a New Project with STM32CubeMX for a STM32F4Discovery board, incorporating FreeRTOS.
I changed the resulting directory on disk by removing Configuration from the Folder Name. I edited .cproject in two places, artifactName and removed Configuration and I edited .project and again removed Configuration.
I copied the Components and STM32F4-Discovery folders from the STM32CubeF4 to the Drivers folder of the project. I heavily edited the stm32f4_discovery.c file to remove everything but the LED stuff, and then #included that and gpio.h in main.c. I may have done a couple of other things as well. I used the STM324xG_EVAL Threads project as an example of making the four LEDS on the STM32F4 Discovery board go on an off.
I used four threads.
What I have found is that although STM32CubeMX generates code for import by System Workbench, some of the STM32CubeF4 code gets left behind and must be manually added later. This shortcoming appears to be related to the STM32CubeF4 Drivers/BSP code and the Middlewares/ST code.
A couple of times, after I had imported some .h (heards) and some .c (source) code into System Workbench, Eclipse seemed to forget this, which was resolved by a clean and close and open and rebuild.
I used the AC6 debug ot flash the board and then later used the ST-Link utility to flash the board with the .bin (binary) file.
One thing that really upsets me is the virtual directoy structures in Eclipse. At one point, I wanted to add a header to main.c and I still had to use a "../../" relative addressing strucutre equal to the on-disk folder/file structure, even though the appearance in Eclipse was very different from that. Totally confusing and baffling.