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.

CC2640R2F and Segger J-Link

Other Parts Discussed in Thread: CC2640R2F, UNIFLASH, SEGGER, LAUNCHXL-CC2640R2

I use custom board with CC2640R2F. I use CCS and SimpleLink CC2640R2 SDK If I got any example from SDK I can build it properly. But if I try to debug the code using Segger J-link Base it fails during flashing with "Cortex_M3_0: Trouble Writing Memory Block at 0x1ffa8 on Page 0 of Length 0x58: Flash download failed! ...". If I use e.g. Uniflash to check the memory everything seems to be programmed until block 0x1ffa8. This block is CCFG, right? Why can't I program this block and run the HW?

  • Hey Milan,

    Have you successfully usedyour Segger J-Link with another board or LAUNCHXL-CC2640R2 before?  Also, have you programmed this device before and did you attempt to erase all device memory before programming?  Please let me know if this relevant E2E thread helps.


  • Hi all,

    I haven't used my Segger with CC2640R2 before. However I use the Segger with custom board with CC2652R1 successfully.

    No this is/was first time I program the CC2640R2 board.

    If I try Seffer J-Link Lite utility I can erase the device successfuly. Once erased I can verify memory is empty using Uniflash ad reading flash memory. However if I try to program device using CCS/uniflash/J-link Lite it fails. Sometimes J-Link utility informs me that device might be locked and asks if I try to unlock. But it doesn't help if I try to unlock it.

    The mentioned thread doesn't help me I think. I got an example without any modification and try to load it to the board. Or do I need to enable/disable any features before running? 

  • Hi,

    Many areas in Dallas metroplex are currently experiencing unforeseen power outages due to harsher-than-normal winter weather; we appreciate your patience, as responses may be delayed here.

    In the meanwhile, have you considered these resources here :

    Additionally, since this is a custom board, consider submitting it for a review here (if not already) : 


  • Hi,

    I have already found the root cause. It seems to be that the problem was in my power source. I use another one and I can program the board now. It confused me that it had worked before and it was also possible to partially progam this board. I am really sorry for this and many thanks for your feedback.

    I have read the news and wish you better weather soon!