Part Number: MSP-EXP430F5438
Hello,
I'm currently working on a project where we use TI Dual-Mode Bluetooth® Stack (v1.5 R2) on a MSP430 (www.ti.com/.../CC256XMSPBTBLESW).
For functional operation of the device, we need to erase a complete bank of flash sometimes. Numerous times I have seen unwanted behavior (device reset or ending up at address 0x4) in my IDE while debugging. Since I couldn't find / debug the issue in my project I tried building some simple application to test the Flash bank erase function on the MSP-EXP430F5438 development board.
The flash bank erase function is sourced from the MSPWare library (www.ti.com/.../MSPWare), and the application used is the default SPPDemo from the bluetooth stack. I added just a couple of code lines (mainly I embedded the flash bank erase function, to ease rebuilding process by anyone) to test the flash bank erase function. The attached file (SPPDemo.c) should be replaced in the SPPDemo project and will build under IAR Embedded workbench 7.11.1 (file location will be something like: [bluetooth stack intallation folder]\MSP430_Experimentor\Samples\SPPDemo\SPPDemo.c)
When the application is run, you have to type either "client" or "server" to enter one of the menu's. After that, the bank erase can be tested by typing "flash 1" And it will show up with "Flash Tested 1 times ok". To verify the operation, the test is run with 100 as argument ("flash 100"), So the flash bank should be erased 100 times. Although we can expect from this test that the flash bank erase function is run 100 times and shows up with "Flash Tested 100 times ok", the device resets and starts over again.
Please help me out with this issue, since I cannot find the root of this issue.
Regards and thanks in advance,
Leon