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
The answer I got with google is to tick like the picture below
But this will give the following error
The .S file of LPC54628 is as shown below
Not the same as the .S file I found
What should I do?
Thanks
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
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)
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