??? 01/25/06 07:35 Read: times |
#108260 - clarification Responding to: ???'s previous message |
hi,
Aitor Lecertua said:
This PC would communicate with a "user Bootloader" in the micro via RS232
Where do you have this User Booloader placed? Assume in the FM0 part of internal flash (user space), do you? and this bootloader would program:
- the first 32K o the program in the on-chip memory ...And this is very dangerous because during software update the User Bootloader will be re-programed by itself. Indeed flash write process is made with API functions located in FM1. Anyway if a fault happenes then it may break the user bootloader code. After programming, registers should be set in order to execute the default bootoloader (which also implements the In-System programming via UART and the on-chip flash API-s)
It is not a problem: just re-program SBV byte with its default value by __api_wr_SBV(). By the way if you use (A)T89C51CC01UA then it has UART bootloader; (A)T89C51CC01CA has CAN bootloader. Regards, Oleg |