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: How to program the IEEE address by command line tool SmartRFProgConsole.exe

Part Number: CC2541

When I tried to program CC2541 through the command line tool  SmartRFProgConsole.exe, it prompted error like below:

it seemed that the problem is the comma after the 'F=0'.

please help me that how the correct command line is, and how to program the secondary IEEE address by command line tool.

Thanks a lot!

C:\TI\SmartRF Tools\FlashProgrammer\Flash Programmer\bin> .\SmartRFProgConsole S EP F="C:\test.hex" WI(F=0,I=20.20.11.22.78.90)

所在位置 行:1 字符: 49
+ .\SmartRFProgConsole S EP F="C:\test.hex" WI(F=0,I=20.20.11.22.78.90)
+                                                                                     ~
参数列表中缺少参量。
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument

  • Hi,

    You may want to review this thread to find an example working command.

    That being said, and from what I can see, I am not 100% sure the issue is coming from the comma after the 'F=0'. The "~" in your log seems to indicate the end of F="C:\test.hex". Can you verify if the file you specified can be accessed by the script?

    Best regards,

  • Thank you for your replay!

    The picture below shows the captured screen,

    When I use  SmartRFProgConsole S EP F="C:\test.hex" command line, it works well.

    But when I add the WI parameters, SmartRFProgConsole S EP F="C:\test.hex" WI(F=0,I=20.20.11.22.00.01), it doesn't work.

    It seemed that my command line is similar with the one in the thread you've indicated.

  • Hi,

    Thank you for the details provided.

    Have you verified if the error could b caused by the white space between "WI(F=0," and "I=20.20.11.22.00.01)"?

    Regards,

  • Thank you for your replay! 

    I've tested the command line like below. Whether a white space added or not, it still hinted that the error is the comma.

    I've tried an earlier version FlashProgrammer, it prompted the same error info.

  • Hi,

    I wonder if your system could encode the characters slightly differently than mine.

    Here is the command line I would like you to try (please copy-paste it in your sytem):

    SmartRFProgConsole S EPVC F="C:\test.hex" WI(F=0,I=20.20.11.22.00.01)

    Then you can try also:

    SmartRFProgConsole S EP F="C:\test.hex" WI(F=0,I=20.20.11.22.00.01)

    Best regards,

  • Thank you for your attention!

    The comma was copied from the flash programmer's help information, maybe it's displayed in a different font.

    I think the problem may cause by Windows 10 Powershell. When I change to windows 8 pro, it works OK.

    So, this problem is due to that the Flash programmer is incompatible with windows 10 ?

  • Oh, I've tried out how to solve this problem in windows 10 powershell!  

    Below command line must be used, e.g. the WI parameter section must be placed in quotation marks" ".

    SmartRFProgConsole S EPVC F="C:\test.hex" "WI(F=0,I=20.20.11.22.00.01)"

  • Hi,

    Nice find! Thank you for sharing!

    Kind regards,