ADUCM360 IAR CONFIGURATION SETTINGS HELPPPPPPPPP

Hi,

I am working on EVAL-ADUCM360MKZ. I downloaded a demo blink project. This file have 3 files inside

In arm,this is for KEIL. My KEIL version is 5.34.0.0. This project runs smoothly with KEIL. In IAR file, this is for IAR. My IAR version is 8.0. I'm uploading a program to ADUCM360 via j-link. But after removing and plugging the usb cable, the program is deleted or does not register. I have to install it again. After that, In KEIL, I am installing via J-Link in KEIL and can use perfectly. I think it is not a hardware problem. Because it shouldn't work on either. But it works in one and not the other. After removing and plugging the usb cable, the program is working ın KEIL but do not work in IAR. How can I do like KEIL in IAR?

 

  • 0
    •  Analog Employees 
    on May 18, 2021 11:39 AM

    Hi,

             If the screenshots shown in the other thread are followed, that means the flash is loaded with the demo code.

    This can be verified by removing the USB, plugging it back and clicking the "debug without download" button.

    (Blink happens without downloading the code again)

    Below is the debug log when successfully flashed:-


    Tue May 18, 2021 16:25:43: ResetTarget() start
    Tue May 18, 2021 16:25:44: ResetTarget() end
    Tue May 18, 2021 16:25:44: Hardware reset with strategy 0 was performed
    Tue May 18, 2021 16:25:44: Initial reset was performed
    Tue May 18, 2021 16:25:44: Found 1 JTAG device, Total IRLen = 4:
    Tue May 18, 2021 16:25:44: J-Link: Flash download: Bank 0 @ 0x00000000: 1 range affected (2048 bytes)
    Tue May 18, 2021 16:25:44: J-Link: Flash download: Total: 0.291s (Prepare: 0.077s, Compare: 0.023s, Erase: 0.030s, Program & Verify: 0.152s, Restore: 0.007s)
    Tue May 18, 2021 16:25:44: J-Link: Flash download: Program & Verify speed: 13 KB/s
    Tue May 18, 2021 16:25:44: 724 bytes downloaded and verified (2.06 Kbytes/sec)
    Tue May 18, 2021 16:25:44: Loaded debugee: C:\Users\AMarimut\Documents\work\ADuCM362\Codes\EVAL-ADICUP360-master\EVAL-ADICUP360-master\projects\ADuCM360_demo_blink\IAR\Release\
    Exe\ADuCM360_demo_blink.out
     8.4\arm\bin\armproc.dll)

    Also, it is cross checked with J-Link commander by using loadfile command:-

    J-Link>loadfile ..\projects\ADuCM360_demo_blink\IAR\Release\Exe\ADuCM360_demo_blink.hex
    Downloading file [..\EVAL-ADICUP360-master\projects\ADuCM360_demo_blink\IAR\Release\Exe\ADuCM360_demo_blink.hex]...
    J-Link: Flash download: Flash download skipped. Flash contents already match
    O.K.
    J-Link>

  • I can load program but the program behaves like it's running in ram. It is not permanent. After disconnecting and reconnecting the power, the program acts as if it was never loaded. How can I fix the problem?

  • Tue May 18, 2021 15:03:41: IAR Embedded Workbench 8.20.1 (C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\arm\bin\armproc.dll)
    Tue May 18, 2021 15:03:41: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\arm\config\debugger\AnalogDevices\ADuCM36x.dmac
    Tue May 18, 2021 15:03:41: JLINK command: ProjectFile = C:\Users\empar\Desktop\EVAL-ADICUP360-ee4773527ef1488883dbf9c5dfa53d10964cdf9e\projects\ADuCM360_demo_blink\IAR\settings\
    ADuCM360_demo_blink_Release.jlink, return = 0
    Tue May 18, 2021 15:03:41: Device "ADUCM360" selected.
    Tue May 18, 2021 15:03:41: Selecting SWD as current target interface.
    Tue May 18, 2021 15:03:41: JTAG speed is initially set to: 1000 kHz
    Tue May 18, 2021 15:03:41: Found SW-DP with ID 0x2BA01477
    Tue May 18, 2021 15:03:41: DPv0 detected
    Tue May 18, 2021 15:03:41: Scanning AP map to find all available APs
    Tue May 18, 2021 15:03:41: AP[1]: Stopped AP scan as end of AP map has been reached
    Tue May 18, 2021 15:03:41: AP[0]: AHB-AP (IDR: 0x24770011)
    Tue May 18, 2021 15:03:41: Iterating through AP map to find AHB-AP to use
    Tue May 18, 2021 15:03:41: AP[0]: Core found
    Tue May 18, 2021 15:03:41: AP[0]: AHB-AP ROM base: 0xE00FF000
    Tue May 18, 2021 15:03:41: CPUID register: 0x412FC230. Implementer code: 0x41 (ARM)
    Tue May 18, 2021 15:03:41: Found Cortex-M3 r2p0, Little endian.
    Tue May 18, 2021 15:03:41: FPUnit: 6 code (BP) slots and 2 literal slots
    Tue May 18, 2021 15:03:41: CoreSight components:
    Tue May 18, 2021 15:03:41: ROMTbl[0] @ E00FF000
    Tue May 18, 2021 15:03:41: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 002BB000 SCS
    Tue May 18, 2021 15:03:41: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 002BB002 DWT
    Tue May 18, 2021 15:03:41: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
    Tue May 18, 2021 15:03:41: ResetTarget() start
    Tue May 18, 2021 15:03:42: T-bit of XPSR is 0 but should be 1. Changed to 1.
    Tue May 18, 2021 15:03:42: ResetTarget() end
    Tue May 18, 2021 15:03:42: T-bit of XPSR is 0 but should be 1. Changed to 1.
    Tue May 18, 2021 15:03:42: Hardware reset with strategy 0 was performed
    Tue May 18, 2021 15:03:42: Initial reset was performed
    Tue May 18, 2021 15:03:42: 748 bytes with download suppressed
    Tue May 18, 2021 15:03:42: Loaded debugee: C:\Users\empar\Desktop\EVAL-ADICUP360-ee4773527ef1488883dbf9c5dfa53d10964cdf9e\projects\ADuCM360_demo_blink\IAR\Release\Exe\
    ADuCM360_demo_blink.output
    Tue May 18, 2021 15:03:42: T-bit of XPSR is 0 but should be 1. Changed to 1.
    Tue May 18, 2021 15:03:42: ResetTarget() start
    Tue May 18, 2021 15:03:42: ResetTarget() end
    Tue May 18, 2021 15:03:42: T-bit of XPSR is 0 but should be 1. Changed to 1.
    Tue May 18, 2021 15:03:42: Hardware reset with strategy 0 was performed
    Tue May 18, 2021 15:03:42: Target reset
    Tue May 18, 2021 15:03:42: Watchdog disabled

    It is my log. Where am I doing wrong? Where should I fix it?

  • 0
    •  Analog Employees 
    on May 18, 2021 1:18 PM in reply to AGK

    Have you enabled "Verify download " option in Debugger>Download tab?