Erasing interrupt vector table

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Erasing interrupt vector table

1,368 次查看
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

标记 (1)
0 项奖励
回复
3 回复数

1,227 次查看
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 项奖励
回复

1,227 次查看
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 项奖励
回复

1,227 次查看
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!
-----------------------------------------------------------------------------------------------------------------------