Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed from November 25 through December 2. Thank you for your patience.

CC2511: Verifying written flash always fails

Part Number: CC2511
Other Parts Discussed in Thread: CC2510

Tool/software:

I'm trying to write the usb_bootloader_srf05dbg.hex file to a CC2511F32 via an STM32.  I found the sample code for a CC2510, swra410 Sample Code and I foolishly thought it would be just a matter of porting it to an STM32.  Thus far, I have the following steps working:

  1. Debug_Init
  2. Read the chip_id (ID: 0x91, Revision: 0x04)
  3. Clock_Init

It all goes awry here:

  1. Write 4 bytes
  2. Read/Validate 4 bytes

Everything "seems" to be fine through step 3. When I try to go through the write routine, it looks like everything is working correctly, however, I can't verify if the data is actually being written to flash or not.  When the Read method is called, it reads 4 bytes but they are not what's supposed to be written to the flash.  When I debug multiple times, the 4 bytes being read out are always different.

I have attached images of what is being sent/received over the debug interface for Steps 1-3.  I also included my source files if that helps in any way.

Any insight would be greatly appreciated, I just can't seem to figure out what I'm doing wrong.

Kindest regards

   Source.zip