[SOLVED] Read Chip ID register and Save Chip ID into Text File?

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

  • [SOLVED] Read Chip ID register and Save Chip ID into Text File?

    Hi,

    I have create a jlink command file to read out the MCU chip ID as below:
    mem32 0x40020004 1
    mem32 0x40020008 1

    I use the window batch file to run the above jlink command file:
    JLink.exe -device AMA3B1KK-KBR -if SWD -speed 100 -autoconnect 1 -CommanderScript JLinkCommandFile.jlink

    The chip ID able to show on the command prompt correctly,
    my questions --> is there anyway to save the Chip ID into a text file?
  • You can do it like this:

    JLink.exe -device AMA3B1KK-KBR -if SWD -speed 100 -autoconnect 1 -CommanderScript JLinkCommandFile.jlink > MyOutFile.txt

    Note that the output format of J-Link Commander may change in a new version without prior notice or release note entry.
    It is a test utility and not designed for customized automation.
    We recommend the J-Link SDK for such setups.


    BR
    Alex
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    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.