When I upload my firmware using JLink it runs successfully but it flashes it to address 0x00 instead of 0x08000000. If I look at the generated jlink script file (upload.jlink
) I see:
h
loadbin .pioenvs/foo/firmware.bin,0x0
r
This looks OK but I would expect the load address to be 0x08000000 not 0x0
My platformio.ini has the following
debug_tool = jlink
upload_protocol = jlink
I am using a custom board and I have the following defined in my board’s JSON file.
...
"name": "REMRAM_V1",
"upload": {
"maximum_ram_size": 524288,
"maximum_size": 2097152,
"protocol": "jlink",
"protocols": [
"jlink"
]
},
...
How do I pass in the address 0x08000000 to JLink?