LPC54628 Linker

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC54628 Linker

836 Views
lua40927
Contributor II

I am using the official KEIL library

My question is the starting position of the HEX file generated by KEIL will not change

I set as below picture

123.png

The answer I got with google is to tick like the picture below

789.png

But this will give the following error

456.png

The .S file of LPC54628 is as shown below

999.png

Not the same as the .S file I found

 

What should I do?

Thanks

Tags (1)
0 Kudos
Reply
3 Replies

808 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

The download code starting address is defined by linker file *.scf. 

Is LPC54628J512_Flash.scf your project linker file or bootloader.scf?

Please edit the text starting address to define the code starting address. make sure the code size is not changed or not over the Flash allowed size.

Have a nice day,

Jun Zhang

 

 

 

803 Views
lua40927
Contributor II

Thanks for your help.

I have found the scf file,

Some of the contents are as follows.

#define m_interrupts_start 0x00000000
#define m_interrupts_size 0x00000400

#define m_text_start 0x00000400
#define m_text_size 0x0007FC00

#define m_data_start 0x20000000
#define m_data_size 0x00028000

 

 

what is the difference between these three(interrupts,text,data)

0 Kudos
Reply

801 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Below Define interrupt vector start address and size 

#define m_interrupts_start 0x00000000
#define m_interrupts_size 0x00000400

 

 

Below Define code  start address and size 

#define m_text_start 0x00000400
#define m_text_size 0x0007FC00

 

Below define data start address and size in ram

#define m_data_start 0x20000000
#define m_data_size 0x00028000