cancel
Showing results for 
Search instead for 
Did you mean: 

How to Change The IROM Address

Mahendra
Associate II

Hi,

Is it possible to change the IROM address using STM32CubeIDE 1.3.0 ?

since the default IROM address is started from 0x08000000. So, I would like to change it to 0x08002000.

I attach a screenshot. Please see the picture.

0693W000000WNfaQAG.png

Please help. Thanks.

3 REPLIES 3
LJim
Associate

I can't find the config dialog too. But the memory is defined in "STM32xxxxxxxx_Flash.ld", I think we can modify it manually. I am a newcomer to CubeIDE, Not tested..

Cartu38 OpenDev
Lead II

@LJim​ advice is right one. No UI if STM32CubeIDE about memory(ies) definition. Right place for is linker scripts (*.ld file(s))

Mahendra
Associate II

Hi, @LJim​ & @Cartu38 OpenDev​ 

Thanks for replying. Really appreciate the answer.

Please see this picture, this way is solve my problem.

Open Run Configurations > Click on Startup tab > Click the available startup > Click Edit then this dialog will appear on your monitor.

Write the offset in hex, in this case, my offset is 0x2000. So, the program will start from 0x08002000 (0x08000000 + 0x2000)

0693W000007CVdQQAW.png