This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/LAUNCHXL-CC2640R2: Firmware update back and force between CCS and Flash Programmer 2, can only debug once after forced mess erase

Part Number: LAUNCHXL-CC2640R2
Other Parts Discussed in Thread: CC2640

Tool/software: Code Composer Studio

Hi,

I am new to this board and the software stack.

I got the board recently and start to try it.

First, I tried the online ccs cloud, with the project zero. Everything compile but asking to load firmware

OK, I let it update

But even after the update firmware, it still failed to load.

And a little more message shows: File Loader: Memory write failed: Timed out waiting for target flashloader to execute command.

I searched around and found that the SmartRF Programmer can be used to load the firmware. So after install it, I started the smartRF programmer, and it ask me update firmware again:

After select yes there,  the smartRF flash programmer can load the hex I downloaded from the cloud successfully. 

And after this successfully loaded, I can find the project zero through bluetooth on cellphone and computer as well as control the led, read out the button and stream strings.

But one thing I noticed is if I let the smartrf programmer to only verify instead of erase/program/verify, it will fail at address 0x0001E000, page 30. While if I do let it erase/program/verify the page 30 pass.

Since it seems it can load the code and run on the hardware, but not through the cloud. I start try to install a local copy of CCS9.1.0. There from the examples I didn't find the project zero, instead there is a cc2640 launch example and  import the project portable_CC2640R2_LAUNCHXL_tirtos_ccs and again it build ok. 

But when I want to debug it, it want to update again:

OK, I let it update, but it actually has two update requests

And after all the update, it fail me again.

On the SmartRF flash programmer, there is a mess erase function, and based on the FAQ can unbrick the board. So I tried with it. After several try, I got one single chance to go to debug the code. The procedure must be:

SmartRF flash programmer update firmware

SmartRF flash programmer mess erase

SmartRF flash programmer load the .out file from the local CCS build

Local installation of CCS update firmware

Local installation of CCS try to go to debug mode and load error

Local installation of CCS try to go to debug mode again and it can go there

but that luck only help once, next time I try to go to debug mode after stop the previous debug, it tell me load error again.

One thing might worth notice is even when it successfully goes into debug mode, it still have the memory error

I am really confused here, can somebody help me out ?

Thanks,