My board is STM32F103RCT6, and I want to burn the program to Flash0x08001000. How can I set it?
The code of my platformio.ini file is as follows:
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html
[platformio]
src_dir = Core/Src
[env:genericSTM32F103RC]
build_type = debug
platform = ststm32
board = genericSTM32F103RC
framework = stm32cube
build_flags =
-ICore/Inc
-ICore/Src/aCoral/include
-ICore/Src/aCoral/SX1278/include
-ICore/Src/aCoral/DHT11/include
-ICore/Src/aCoral/OLED/include
-ICore/Src/aCoral/LightSensor/include
-ICore/Src/aCoral/LED/include
upload_protocol = jlink
debug_tool = jlink
monitor_speed = 115200
debug_server =
C:\Users\ASUS\.platformio\packages\tool-jlink\JLinkGDBServerCL.exe
-singlerun
-if
JTAG
-select
USB
-port
2331
-device
STM32F103RC
extra_scripts = post:extra_script.py
The code of my extra_script.py file is as follows:
Import("env")
env.AddPostAction(
"$BUILD_DIR/${PROGNAME}.elf",
env.VerboseAction(" ".join([
"$OBJDUMP", "-S", "-d",
"$BUILD_DIR/${PROGNAME}.elf", ">", "$BUILD_DIR/${PROGNAME}.d"
]), "Building $BUILD_DIR/${PROGNAME}.d")
)
I don’t know where to set the download address, and I don’t know how to do it. If someone knows, can they help me?
I just want to use functions like Keil in PlatformIO through configuration
for example: