From: Fredrik H. <fre...@se...> - 2008-06-04 15:09:18
|
Hi Some MCUs have flash erase commands for full bank erase, and full chip erase. Do openocd have any support for this, or are the only commands "flash erase_sector" and "flash erase_address"? This could save some time in production, where each second saved can mean alot of money. If an faster erase (and write ofcourse) could do full chip erase in some seconds less, this could be of great interest. E.g I'm looking for commands like flash erase_bank flash erase_chip Or maybe the way to go is to use the ordinary "flash erase_sector" as now, and then check if we are doing a full erase and then use the optimized command instead? If we know the flash block layout, we could easily calculate an optimal erase command sequence perhaps? I just saw that the CAPS software from ST do a full erase in like 2 seconds, where openOCD takes about 9 seconds.... (Of course this can also be fast er by other reasons like JTAG clock, STR9x turbo mode etc. What about writing in turbo mode...?) /Fredrik |