Stefano De Blasiis

Change reset address on 1758

Discussion created by Stefano De Blasiis on Jan 9, 2017
Latest reply on Jan 10, 2017 by LPCX presso support

Dear all, i use 1758 and lpcxpresso  v8.1.4

I need to start application at 0x00010000 (from 0 to 0xFFFF I have bootloader)

Than my problem is start at 0x10000.

Thi is my .ld have modified  :

 

MEMORY
{
  /* Define each memory region */
  MFlash512 (rx) : ORIGIN = 0x00010000, LENGTH = 0x40000 /* 512K bytes (alias Flash) */  
  RamLoc32 (rwx) : ORIGIN = 0x10000000, LENGTH = 0x8000 /* 32K bytes (alias RAM) */  
  RamAHB32 (rwx) : ORIGIN = 0x2007c000, LENGTH = 0x8000 /* 32K bytes (alias RAM2) */  
}

 

  /* Define a symbol for the top of each memory region */
  __base_MFlash512 = 0x00010000  ; /* MFlash512 */  
  __base_Flash = 0x0 ; /* Flash */  
  __top_MFlash512 = 0x00010000 + 0x40000 ; /* 262K bytes */  
  __top_Flash = 0x0 + 0x80000 ; /* 512K bytes */  
  __base_RamLoc32 = 0x10000000  ; /* RamLoc32 */  
  __base_RAM = 0x10000000 ; /* RAM */  
  __top_RamLoc32 = 0x10000000 + 0x8000 ; /* 32K bytes */  
  __top_RAM = 0x10000000 + 0x8000 ; /* 32K bytes */  
  __base_RamAHB32 = 0x2007c000  ; /* RamAHB32 */  
  __base_RAM2 = 0x2007c000 ; /* RAM2 */  
  __top_RamAHB32 = 0x2007c000 + 0x8000 ; /* 32K bytes */  
  __top_RAM2 = 0x2007c000 + 0x8000 ; /* 32K bytes */  

 

 

When I try to start, I have the error no source found at address 0x1440 !

The correct address should be 0x11440.

My question is: why go to 0x1440 ?

 

The map file is correct:

 .text.ResetISR
                0x00011440       0x58 ./src/cr_startup_lpc17.o
                0x00011440                ResetISR

 

Thanks

 

Outcomes