Topic : How to divide the RAM space in Ride 7

Forum : ST7/STM8

Original Post
Post Information Post
July 14, 2011 - 4:54pm
Guest

I have a bootloader which uses the ram sections:
0x00 til 0x10 and
0x100 til 0x1c0

Now I want to create my application running on this bootloader
I would like it to use:
0x10 til 0x100 and
0x200 til the end of RAM

How can I tell ride7 to use two RAM sections. I can only find RAM start and RAM size in the advanced ST7/STM8 options.

I need the 0x10 til 0x100 for at least the library which wants to locate the CSTDLIB_REGISTERS in the zero page. Also my application will run much faster with variables located in the zero page.

Any ideas?

Replies
Post Information Post
+1
0
-1
July 18, 2011 - 11:21am
Raisonance Support Team

Hi,

You need to create a separate Ride7 application for your "bootloaded" application.
Then you must use the RAM and CODE linker options to describe the areas to be used to locate your variables and you code in flash.

Best Regards,

+1
0
-1
July 18, 2011 - 2:57pm
Guest

I already created a separate Ride 7 application.

I solved it (I think) using the following settings:

Processor settings:
STM8S208RB
RAM start: 0x0010
RAM size: 0x17f0

Additional linker options:

RESERVE(DATA,0100H-01FFH)

So 0x10 til 0x100 is free and 0x200 til the end.

I think this is enough.

thanks.