Technical discussions about Freescale (Motorola) DSPs (including the DSP56000, DSP56300, DSP56600, 56800 DSPs).
|
We have a software download requirement and we have modified the standard boot loader for this purpose. We are given 2 seconds to erase our flash and prepare for downloading. The downloading process is continuous after that with no delays, the full rate of the UART, 38K in this case. So we have no chance to erase during the download process, only during the 2 seconds prior. I have seen in previous messages that the "mass erase" is dangerous because it erases the boot vectors. I have also seen messages that indicate that the boot vectors are not actually in P flash. Since page erases take 40 ms, * 128 pages (DSP56F826) = 5.12 seconds, far outside my 2 second requirement. May I safely use mass erase? Does anyone have an example for coding the "mass erase"? Thanks in advance for any assistance. |
|
|
|
You can use the mass
erase on the 80x and 826. The mass erase is done on a flash block basis. The program flash and
the boot flash are two different blocks. The reset and COP timeout vectors are actually in the
boot flash block and are mapped by the parts into the prgram flash area. The 827 is some what
different in that does not have a boot flash, but instead has two separate blocks of program
flash. With the 827 you can perform the same operation if you run the boot loader from program
RAM. Thanks.
- Bill
|