Thank you for the prompt reply!! ![]()
This solved the issue to a certain stage
The project initializes, but does not build. The build process throws up “undeclared” errors. about first use in this function. I am attaching the associated screenshot, my resent board.json and my platformio.ini
Sorry, if it feels like I am wanting to be spoonfed. I am just starting out in ARM and really liked platformio from my previous experience using it in AVR and MSP430.
Platformio.ini
# # PlatformIO Project Configuration File # # Please make sure to read documentation with examples first # http://docs.platformio.org/en/stable/projectconf.html # [env:disco_f030r8] platform = ststm32 framework = libOpenCM3 board = disco_f030r8
board.json
{"disco_f030r8" : { "build": { "core": "stm32", "cpu": "cortex-m0", "f_cpu": "48000000L", "mcu": "stm32f030r8t6", "variant": "stm32f030r8t6", "ldscript": "stm32f03xz6.ld" }, "frameworks": ["libopencm3","mbed","cmsis","spl"], "platform":"ststm32", "name": "ST STM32F030DISCOVERY", "upload": { "maximum_ram_size": 8192, "maximum_size": 65536, "protocol": "stlink" }, "vendor": "ST" } }
Error Screenshot
Now, in the board.json fil you have specified the linker file as “stm32f03xz6.ld”, I have checked the directory under .platformio to see if it exists. It does not. I have used a custom linker “stm32f030x8.ld” and copied it into the ldscripts folder and replaced the same name in the board.json.
Still the same error shows up. Any advice on what actually might be the root cause?
I am thinking it is because of an incorrect library/linker script.
Again, thank you so much for your time and help!!
