Topic : Changing Advanced ARM options using gcc tool chain

Forum : Ride IDE

Original Post
Post Information Post
February 9, 2017 - 10:11pm
John Osen

I am using Ride7 7.64.16.0244 using the gcc tool chain.  I am working on a STM32F107xC.

I need to develop a bootloader in the region of 0x8000000 and 0x8007FFF.  This would be an 32KB bootloader.

I need to also develop an application in the region of 0x8008000 and 0x803F7FF.  This would be a 232KB application.

The remaining two KB is used for factory calibration data.

I have worked with TI's CCS for years.  I am used to going into the linker command files and specifying these regions.

In Ride7, the *.ld files are recreated every time, so I cannot change them.

In Project Local Settings -> Advanced ARM Options there seems to be just what I want.  But I cannot change the values.  They are inactive in the IDE.

How do I change the ROM start and ROM size attributes?

Replies
Post Information Post
+1
0
-1
February 10, 2017 - 10:02am
vincent choplin

Hello,

There are 5 ld files that are auto-generated. One of them is always auto-generated and includes the others, but the others can be replaced by your own if you configure the project for that.

You need to use a custom linker script as explained in the Getting Started doc. Then you will be able to define your own memory regions, sections, etc.

Best Regards,

Vincent

+1
0
-1
February 10, 2017 - 11:37pm
John Osen

Vincent,

Thanks for the coaching.  I have gotten the custom .ld files working.  For debugging the application, which starts at 0x8000, how do I tell the Rlink to start at 0x8000?  The bootloader is at 0x0000, but when debugging that gets erased, so if I start from 0x0000, the code locks up.

+1
0
-1
March 6, 2017 - 9:55am
vincent choplin

For other users who have the same question, please see here:

http://support.raisonance.com/node/887793