Bootloader

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Bootloader

1,329件の閲覧回数
ianbenton
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 件の賞賛
返信
2 返答(返信)

1,302件の閲覧回数
ianbenton
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 件の賞賛
返信

1,310件の閲覧回数
FelipeGarcia
NXP Employee
NXP Employee

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 件の賞賛
返信