baoshi/CubeMX2Makefile

Does not work with STM32CubeMX version 4.20.1

Opened this issue · 1 comments

I don't think that the script is able to locate the source code files for the latest version of STM32CubeMX.

When I run "make" on the resulting make file, this is the output I get:

arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -specs=nano.specs -TSTM32F303RETx_FLASH.ld -lc -lm -lnosys -Wl,-Map=build/theia_blinky.map,--cref -Wl,--gc-sections -o build/theia_blinky.elf
/usr/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/bin/ld: cannot open map file build/theia_blinky.map: No such file or directory
collect2: error: ld returned 1 exit status
Makefile:89: recipe for target 'build/theia_blinky.elf' failed
make: *** [build/theia_blinky.elf] Error 1

I am running this under Linux (Ubuntu 16.04).

UPDATE: I have found a workaround.
1.) Copy the contents of /SW4STM32//. into
2.) Run the Python script on , and not on /SW4STM32/