Other Parts Discussed in Thread: CC-DEBUGGER
Hello,
I have a Bluetooth module using a CC2541 from LSR ( https://www.lsr.com/downloads/products/330-0132.pdf ) connected to a host microcontroller via UART, I2C and the DBG "SPI like" pins
The module come with no code flashed in, just the DBG interface.
I found this code ( http://www.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=swra410 ), ported it to my micro and successfully read back the ChipId via DBG interface.
I was able to program the first 15 bytes or so of the CC2541 flash and read them back successfully.
I repeated this test 10 or 15 times, it always worked
I then downloaded this sample application ( https://www.lsr.com/embedded-wireless-modules/bluetooth-module/tiwi-ub1#product-software ), converted it to a bin file ( placed it in flash were the host micro can read from), and am now trying to program the blank radio with it from our host micro.
I programmed the CC2541 with this test app, but had a bug in the code which stopped the programming at address 0x7FFF
I fixed the bug and re-tried the programming. This time it all programmed except the last 2 bytes.
Now the DBG interface is un-responsive. Is it possible that I have bricked the module to the point the DBG interface is broken?
Steps I took with the DBG interface
- First Test
-
- Enter DBG - PASS
- Read ChipID ( 0x41 ) - PASS
- Erase Chip - PASS
- Programmed first 15 bytes and read back - PASS
- repeat 10 ish times
-
- Second Test
-
- Enter DBG - PASS
- Read ChipID ( 0x41 ) - PASS
- Erase Chip - PASS
- Programmed first 0x7FFF bytes - PASS
- Stopped download process
- Fixed code
-
- Third Test
-
- Enter DBG - PASS
- Read ChipID ( 0x41 ) - PASS
- Erase Chip - PASS
- Programmed all but last 2 bytes - PASS
- reboot
-
- Fourth Test
- Enter DBG - ???
- Read ChipID ( 0x41 ) - FAIL
- Erase Chip - FAIL - and hangs waiting for flash controller ready indication
- repeating these steps after a cold boot does not help
Any help / suggestions are appreciated