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.

CC debugger 2540 programming works in smartrf GUI but not command line

Other Parts Discussed in Thread: CC2540

Hello all,

I have a file that I can program using the SmartRFProg application just fine, and set my IEEE address. 

Now I am trying to use it on a command line to flash the file and set the IEEE address, and it is telling me the file is too big.

Does anyone know how to fix this? in the GUI app its two steps to program then set the address, I am ok with splitting it into two commands, but I cant find a way to make the command line set just the address. 

Programming without setting the address through the command line works fine, programming and reading the address works fine, just programming and writing the address is a problem. 

Command line output:

C:\Program Files\Texas Instruments\SmartRF Tools\Flash Programmer\bin>SmartRFProgConsole.exe S EPV F="out.hex" WI(F=0,I=AA.BB.FF.FF.00.11)

Texas Instruments SmartRF Flash Programmer v1.13.5-no-mfc

----------------------------------------------------------------------------------------------------

6902: Modifying flash image with IEEE MAC addr...

6902: Erasing entire flash...

6902: Programming flash....

6902: HEX file content at address 0x3FFEF exceeds chip's 128kB flash size

  • Hi Jordan,

    Do you have a CC2540 with 128kB flash size?
    Last part of the error message indicates that you have, but the first part, "..content at address 0x3FFEF..." indicates that you have 256kB flash size. Don't know what's going wrong here but could you check the content of the info page. If you use the GUI app it is possible to view the info page. bit 6:4 in the first byte gives the flash size.

    I tried with the same parameters on a 256kB device and that works fine.

    Regards,
    Øyvind

  • Thank you for the reply! 

    Our device is 128kB flash size.  Our first byte of the info page is 0xBC. 

  • Finally I was able to get hold of a 128kB flash device. We have only been able to test with 256kB devices up to know and indeed there is a bug in the SmartRF Flash programmer when trying to program the IEEE address for CC254x. The flash size is not always correctly retrieved. That's why the error message was a bit confusing. One bit indicate 256 kB size while the other says 128kB.

    Anyhow, Thanks for the feedback. This is something we have to fix and a new release of the SmartRF Flash Programmer must be created. I will keep you up to date when the new version is available. Normally a couple of days. Depending on testing and the TODO list.

    Best Regards,
    Øyvind

     

  • Thank you for looking into it! I'm glad to see a solution.

    We are trying to setup our manufacturing line for a product using this chip, and we are on a tight schedule. Is there any way we can try to make this fix a priority? It would be a great help to us.

  • For the moment I have a stupid problem with the licensing of the tool to create an installer. Just got a new PC and have to reinstall everything. : -(

    However, I have been able to build the console application and I guess this is the one you want? I have not been able to do a lot of testing with it but I tried the commands that you have described in this thread and that seems to work fine. If you like to try, I have attached a zip file with the necessary exe file. I hope this can be of some help.

    Best regards,
    Øyvind

    SmartRFProgConsole.zip
  • Øyvind, 

    This works! Thank you so much for getting us a copy so fast! Brilliant! 

    I will watch for a new release in the near future and use what you sent in the zip until then.