Bootloader

cancel
Showing results for 
Search instead for 
Did you mean: 

Bootloader

48 Views
Senior Contributor I

I'm trying to persuade MUCXpresso to generate the code to put in a serial EEPROM which can then be bootloaded to update software.

It's going reasonably well. I found out how to turn the code into a .hex or .s19 file which I can load into my EEPROM programmer, and I found out how to edit the Linker file so that it doesn't generate the data and bss tables.

I'd really like the code to start at the beginning of the file, and there is one half-word that I can't seem to get rid of. 

The first hword is always an instruction that branches to itself. Any ideas?

It's an LPC1517, by the way.

0 Kudos
2 Replies

21 Views
Senior Contributor I

The code to be loaded doesn't have a vector table.

When the assembler produces the output file, it normally starts with a B pc-2 instruction, followed by the .data and .bss tables.

Editing the linker file to remove the .data and .bss tables, but I can't get rid of the B pc-2 instuction.

0 Kudos

29 Views
NXP TechSupport
NXP TechSupport

Hi,

At reset, vector table is located at 0x0 and you cannot control this. Once the execution starts you can relocate vector table using VTOR.

Best regards,

Felipe

0 Kudos