Erasing interrupt vector table

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

Erasing interrupt vector table

834 Views
zorandjokic
Contributor II

I am using ReinvokeISP to run bootload process. I successfully finished synchronization part and sent almost 4kb to RAM (using UUEncoding). The problem I faced arose when trying to copy RAM to flash - sector 0. In fact I could not erase whole sector 0 (or Interrupt Vector table of 64 bytes, to be more specific).

Controller is LPC2378.

Regards

Tags (1)
0 Kudos
Reply
3 Replies

693 Views
zorandjokic
Contributor II

Thank you Carlos for useful links. Meantime I think I found my mistake, that I forgot to disable all interrupts (CPSR) register, so it seems that the code works.

Regards

0 Kudos
Reply

693 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Zoran,

Glad to hear that. Yes, it is always recommended disabling the interrupts when erasing/writing flash.

Best regards!

/Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

693 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Zoran,

You could take a look at application note AN10744 “Ethernet secondary ISP bootloader”, especially on section 3.4 “Modifying the user application”:

http://host.lpcware.com/system/files/AN10744_0.pdf

On AN10759 you may find helpful related information:

http://www.po-star.com/public/uploads/20120326115107_161.pdf

Hope this will be useful for you.

Best regards!

/Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------