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:
- Debug_Init
- Read the chip_id (ID: 0x91, Revision: 0x04)
- Clock_Init
It all goes awry here:
- Write 4 bytes
- 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