Post Go back to editing

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?

 

Parents
  • 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>

  • 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?

  • How come the program running on keil does not work on iar?

    "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?"

    It is able to debug and says it does not work when the power is cut.

    the program pretends to be signing up for ram.  same problem other borad also have. (EVAL-ADICUP360)

    It is registering to flash, but it works like registering to rame.

  • https://www.analog.com/en/products/aducm360.html#product-overview

    https://wiki.analog.com/resources/eval/user-guides/eval-adicup360/tools/keil_iar_support?s[]=aducm360

    This sample code works with the board here.The code does not run again when the power is cut and re-energized, that is, when the usb is plugged in and out.This program behaves like writing ram, not flash.What is the reason of this?There is no such problem when I compile and download it with Keil.

    We encounter this kind of problem when programming with iar. ( CTRL+ D)  -> Debug without downloading

  • Hi,

    In your log, it says

    748 bytes with download suppressed.

    Could you disable "suppress download" here and check?

  • It's already disable.  I do not know  why it did such a thing. Why could it be?  I need to solve my problem. 

  • You may uninstall and reinstall IAR and check.

  • I uninstall and reinstall IAR and check but my problem cannot solved. What is the name of the board you tried and could you share the sample code you tried with me? I want to try the sample code you tried.

Reply Children