I am having some trouble with compiling some software in platformIO. More particular, this one:
I would like to make some experimental changes to try out. However, I cannot even compile the project.
First you are hit with an unknow MCU error or something like that. That can be fixed with modifying /buildroot/boards/STM32F030C8.json from line 17. This should be the new code if I have done everything correctly.
This gets rid of this error. But a new one appears. Building in release mode Linking .pioenvs/BIGTREE_S42B_V1_0/firmware.elf .pioenvs/BIGTREE_S42B_V1_0/libFrameworkCMSISDevice.a(startup_stm32f030x8.o): In function LoopFillZerobss':* *(.text.Reset_Handler+0x32): undefined reference to main’ collect2: error: ld returned 1 exit status
**** [.pioenvs/BIGTREE_S42B_V1_0/firmware.elf] Error 1*
I have been looking al over the internet. My main program is named correctly. Some other suggestion on how to fix this where out of my league. This is beyond my knowledge. Some help would be greatly appreciated
Somebody already fixed these errors in a PR but the author never bother to merge it. Abandoned project.
In addition to that I had to fix the include path because the files for the STM32Cube HAL (LL driver) were in there double but mismatched by version. Really bad organization.
I just cloned your version of the software but still get the same error. Sadly enough. Linking .pioenvs/BIGTREE_S42B_V1_0/firmware.elf .pioenvs/BIGTREE_S42B_V1_0/libFrameworkCMSISDevice.a(startup_stm32f030x8.o): In function LoopFillZerobss':* *(.text.Reset_Handler+0x32): undefined reference to main’ collect2: error: ld returned 1 exit status
**** [.pioenvs/BIGTREE_S42B_V1_0/firmware.elf] Error 1*
(.text.Reset_Handler+0x32): undefined reference to `main’
Are you on Linux perhaps with case-sensitive filepaths? They even managed to missspell the source directory so you’ll have to correct in the platformio.ini the value