Using 'MSP430 USB Firmware Upgrade Example' I'm performing a USB-BSL procedure on an MSP430F5659-based board. While most times the operation succeeded, it sometimes fails, after which both the application and BSL fail to load, rendering the device useless. I then have to use an external JTAG emulator to re-program the device.
Some questions:
- Does 'Mass Erase' erases the BSL code itself (i.e. FLASH segment 0x1000 ... 0x17FF)?
- If so, how can I prevent the BSL from being erased? Do I need to erase each segment separately?
Thanks,
Boaz