today when i created a custom board json,
when i run pio run
cmd in the ternimal, it gave me that
Warning! Cannot find a linker script for the required board! Firmware will be linked with a default linker script!
here is my custom_board.json
{
"build": {
"core": "stm32",
"cpu": "cortex-m3",
"extra_flags": "-DSTM32F103xE",
"f_cpu": "72000000L",
"ldscript": "STM32F103ZE_DEFAULT.ld",
"mcu": "stm32f103zet6",
"variant": "stm32f1"
},
"frameworks": [
"stm32cube"
],
"name": "ST STM32F103ZET6 (512K ROM 64K RAM)",
"platform": "ststm32",
"upload": {
"maximum_ram_size": 65536,
"maximum_size": 524288
},
"debug": {
"tools": {
"stlink-v2-1": {
"server": {
"package": "tool-openocd",
"executable": "bin/openocd",
"arguments": [ "-f", "scripts/target/stm32f1x.cfg"]
},
"onboard": true
}
}
},
"url": "http://www.st.com/content/st_com/en/products/microcontrollers/stm32-32-bit-arm-cortex-mcus/stm32f1-series/stm32f103/stm32f103ze.html",
"vendor": "Generic"
}
by the way i put the idscript STM32F103ZE_DEFAULT.ld
in
/home/{username}/.platformio/platforms/ststm32/ldscripts
it seems that the link program didn’t find it
is anyone be willing to tell me what is the right place for the custom ldscript file or the the logic of search *.ld files
thanks a lot