[SOLVED] Difference between -setcpuidcode and -setrxidcode instructions in Jflash.exe

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Difference between -setcpuidcode and -setrxidcode instructions in Jflash.exe

    Hello

    I want to create a batch file that unlocks one microcontroller before writing , but I'm not sure how to do it.

    Reading the manual I saw two options: -setcpuidcode and -setrxidcode. This is what I'm trying to do, but it's not working because JFLASH always shows the id code window:

    Source Code

    1. %path_JFLASH_exe% -openprj%path_FILES_JFLASH% -setrxidcode%XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX% -startapp -hide -exit

    - It's not clear to me after reading the description what the difference is between -setcpuidcode and -setrxidcode.
    - Does -setrxidcode go before or after -startapp?
    - Does the id code should go between percentage signs?

    Regards

    The post was edited 2 times, last by Hardwariano ().

  • Hi,
    Thank you for your inquiry.

    Hardwariano wrote:

    It's not clear to me after reading the description what the difference is between -setcpuidcode and -setrxidcode.
    There is no difference between the handling of these two commands.
    This is because of legacy/backwards compatibility reasons.

    Hardwariano wrote:

    Does -setrxidcode go before or after -startapp?
    The order of the command line options does not matter.

    Hardwariano wrote:

    Does the id code should go between percentage signs?
    As described in the documentation, it does not.

    Regarding the issue:
    Could you please send us a J-Link log file? How to enable:
    wiki.segger.com/J-Link_DLL#Enable_J-Link_Log_File
    Could you please send us the whole output of the J-Flash log window?

    Best regards,
    Fabian
    Please read the forum rules before posting: Forum Rules

    Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/


    Or you can contact us via e-mail.
  • Hello Fabian,
    I don't know if I'm doing anything wrong, but it's not working. Every time I try to unlock the microcontroller using -setcpuidcode the ID Code verification window appears and I have to unlock it manually.



    Maybe I didn't understand the functionality of -setcpuidcode and -setrxidcode?

    SEGGER - Fabian wrote:

    Regarding the issue:
    Could you please send us a J-Link log file? How to enable:
    wiki.segger.com/J-Link_DLL#Enable_J-Link_Log_File
    Could you please send us the whole output of the J-Flash log window?
    Attached are the logs.

    Regards.
    Images
    • ID CODE verification.png

      7.1 kB, 353×220, viewed 12 times
    Files
    • jflash Log.txt

      (2.44 kB, downloaded 16 times, last: )
    • jlink log.txt

      (5.24 kB, downloaded 18 times, last: )
  • Hi,
    On our side, the ID dialog works fine (meaning it does not show up when an ID is passed via command line), but we are experiencing an issue with unlocking this device.

    I will coma back to you as soon as we have news about this.

    Best regards,
    Fabian
    Please read the forum rules before posting: Forum Rules

    Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/


    Or you can contact us via e-mail.