Skip to main content
Visitor II
June 3, 2020
Question

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

  • June 3, 2020
  • 0 replies
  • 473 views

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];

    This topic has been closed for replies.