cancel
Showing results for 
Search instead for 
Did you mean: 

I wanted to assign specific address to bootloader code and application code for STM8(64k).

Sbhon.11
Associate

12k flash memory reserved for Bootloader and rest (52K) want reserve for application. Getting section placement failed error.

linker file....

define memory with size = 16M;

define region TinyData = [from 0x00 to 0xFF];

define region NearData = [from 0x0000 to 0x17FF];

define region Eeprom = [from 0x4000 to 0x47FF];

define region BootROM = [from 0x6000 to 0x67FF];

//0xAE40 -size of boot code + 0x400 (param) = app start addr B240(size 0xCDBF)

define region NearFuncCode = mem:[from 0xB240 size 0x4DBF];

define region FarFuncCode = mem:[from 0xB240 size 0x4DBF] | mem:[from 0x10000 size 0x7FFF]; 

                    

define region HugeFuncCode = mem:[from 0xB240 size 0xCDBF];

0 REPLIES 0