Loading...
 
Skip to main content

System Workbench for STM32


Importing Cube example programs: F7-discovery

Is this post dealing with importing from a cubemx generated project? Or just a pre-existing example?

I'm having problems generating a project with cubemx, it doesn't import properly.

However, I've nearly got it to build after doing the following:

1. Manually copy the files to the locations required in your eclipse project, so all the source, headers and .S startup files, CMSIS dsp stuff etc.

2. Repoint headers using the "workspace" option to the relevant include directories. The "debug" folder will dissapear when you set up a debug configuration.

3. Delete headers not needed, like for the '745 and 756, as we're using the 746...

4. Delete the IAR and ARM startup .S files, leave the gcc one for the 746.

5. Build it. It nearly works.

I'm having an error where gcc is dropping characters from the object files passed to the linker: (could be a windows problem parsing >8191 chars according to stack overflow post...)

arm-none-eabi-gcc: error: ./Drivers/CMSIS/DSP_Lib/Sourc/StatisticsFunctions/arm_min_q7.o: No such file or directory
arm-none-eabi-gcc: error: ./Drivers/CMSIS/DSP_Lib/Source/FilteringFunctions/arm_fir_sparse_nit_f32.o: No such file or directory

Note /Sourc and /Source folder in path, and also .../arm_fir_sparse.nit_f32.o in the second object.

So that's where I am. Again, out of time, and off on hols next week. :/ Maybe this will help / spur someone on to find a fix?