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.

CC2541 module not getting flashed

Other Parts Discussed in Thread: CC2541, CC-DEBUGGER, Z-STACK, CC2530

Hi All,

        I am trying to flash CC2541 module but with no success and getting warnings like

Chip Erase caused Flash lock protection to be cleared.
Warning: Flash page 0 is locked and was not written to.
Warning: Flash page 8 is locked and was not written to.
Warning: Flash page 16 is locked and was not written to.

.......

Although this problem has been discussed in this forum several times but i couldn't get satisfactory solution which could solve my problem.

I have tried erasing the flash using flash programmer but then also same problem exists.

There may be chance that hardware be damaged but its not digestible to me how can three modules get damaged one by one and that too just by programming(all modules are newly purchased). I am able to read MAC address and module gets detected in smartrf flash programmer and in IAR too. I don't think we can read MAC address from a damaged module.

I am flashing using CC-Debugger and checked voltage level also in order to check if module is getting loaded while flashing. Its shows 3.3V always.

If anybody can please help me solve this problem, it will be great consolation for me.I want to know what may be cause for this so that in future i will take care to avoid such issue.

In hope to get reply back specially from TI guys as they may be aware of cause of this issue and they may have possible solution or precaution to avoid them.

Thanks.

  • What are the voltages on Pin2 and Pin9 in CC-Debugger debugging connector when it's connected to the cc2541?
    Do you have another CC-Debugger to program with?
  • Hi Sir,
    Thanks for giving attention to this problem. Actually i have shorted pins2 and 9 of CC-Debugger. I have two debuggers and tested with both. With one debugger it measures 3.2V and with other it measures 3.3V. I had even tried by connecting seperate power supply to CC2541 module with ground matched with cc-debugger in order to check if module gets loaded while programming but with no success.
  • Are you able to read MAC addresses form devices?
  • What if you erase the flash with flash programmer, then program an out-of-the-box sample application from TI's Z-stack on cc2541,
    than program the same example once again, is these warnings are keep to appear?

  • Ya. I have even tried with original TI sample codes with no modification. But then also problem exists and warning appears.
  • Odd,

    Though it make no sense, could you try to flash from another PC?
  • I have even tried that also. Not able to figure out whether this is hardware problem or software(some settings in compiler). But from compiler point of view also i have tried by flashing(cc2530 FW) into CC2530 device and there is no problem in flashing it. If i think it as hardware problem then how it can give MAC address and get detected in smartrf flash programmer and in IAR. And three devices will not show same characteristics.
  • kumar singh said:
    But from compiler point of view also i have tried by flashing(cc2530 FW) into CC2530 device and there is no problem in flashing it.

    Could you clarify it for me

    kumar singh said:
    If i think it as hardware problem then how it can give MAC address and get detected in smartrf flash programmer and in IAR

    It could happen if, for instance, the cc2541 SoC is not getting sufficient current (ill powered), you can read the flash, but writing to

    flash requires more current than read operation, and this is the point where writing fails.

    Also, please refer to this post, see if it's not the case

  • Not clearly understood what clarification you are asking about.
    1)Ya CC2530 module gets flashed with no problem.
    2)As you said extra current requirement may be one reason while writing into flash. If its so do you suggest any solution?
    3)In post you have referred to, are you referring to the post by "Hec" in which he discusses about Lockbits? If you see warning then it seems there is problem with lockbits.
  • kumar singh said:
    Not clearly understood what clarification you are asking about.

    You were writing about CC2541 then CC2530 then CC2541 again, I got confused. Got it now, so never mind

    kumar singh said:
    If its so do you suggest any solution?

    Measure current while writing to flash, it should be around something like 8-12mA

    kumar singh said:
    In post you have referred to, are you referring to the post by "Hec" in which he discusses about Lockbits? If you see warning then it seems there is problem with lockbits.

    Yes, that's exactly where I was referring to.

  • It may be that flash page would have got locked and while erasing flash, lockbits are not getting erased clearly(may be due to extra current requirement) and hence it doesn't get flashed.
    So overall i think it may be due to two reasons-one is extra current requirement and other lockbits not getting cleared while erasing flash.
    Sorry i don't have specific current measuring device other than multimeter. If possible i will measure using multimeter. Are you talking about 8-12mA current should flow while flashing and hence debugger should supply this much current? If its so then i will try to measure this current flow using multimeter and even try by powering with external supply.
  • Just to add...it may be useful to read back the flash image after it has been erased to verify that the lock bits are being erased successfully.
  • Hi all,
    Don't know exactly how it happened but now two my modules are getting programmed although they are not advertising(can't find any packet in sniffer). third module is showing short in between pins and hence its not detected.
    I had measured current consumption by module using multimeter(although it may not be exact and precise) powered using CC-debugger. it was drawing current from 13-33mA.

    Tim C
    If i get same warning in future then i will read flash and see if lockbits are cleared or not.
    Thanks