Hi,
I'm working with an eval board from ST for a new chip based on cortex M4.
The board is supplied with a J-Link OB-STM32F103 probe on it.
When I use it to download my application from IAR it works well.
Now I'd like to use a j-link probe instead, equipped with an 9-pin cortex-m adapter.
The problem is that when I try to download my application from IAR in this way, I get the error message "flash loader: failed to setup call to FlashInit".
Moreover, the j-link log displayed in IAR indicates that a cortex-M3 is found (instead of cortex-M4).
Here are IAR log when the application download works:
Mon Nov 03, 2014 09:24:54: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench ST 6.50.6\arm\config\flashloader\ST\FlashSTCOMET.mac
Mon Nov 03, 2014 09:24:58: JLINK command: ProjectFile = Z:\nicolas\SOGridNicoG3\Trunk\ProjectFiles\IAR\Linky\SOGridG3\FIX\settings\Fix_Debug.jlink, return = 0
Mon Nov 03, 2014 09:24:58: Device "UNSPECIFIED" selected (0 KB flash, 0 KB RAM).
Mon Nov 03, 2014 09:24:58: DLL version: V4.94c, compiled Oct 31 2014 19:59:57
Mon Nov 03, 2014 09:24:58: Firmware: J-Link OB-STM32F103 V1 compiled Feb 5 2014 13:48:52
Mon Nov 03, 2014 09:24:58: JTAG speed is initially set to: 32 kHz
Mon Nov 03, 2014 09:24:58: TotalIRLen = 10, IRPrint = 0x0011
Mon Nov 03, 2014 09:24:58: Found Cortex-M4 r0p1, Little endian.
Mon Nov 03, 2014 09:24:58: FPUnit: 6 code (BP) slots and 2 literal slots
Mon Nov 03, 2014 09:24:58: TPIU fitted.
Mon Nov 03, 2014 09:24:58: ETM fitted.
Mon Nov 03, 2014 09:24:59: Hardware reset with strategy 0 was performed
Mon Nov 03, 2014 09:24:59: Initial reset was performed
Mon Nov 03, 2014 09:24:59: Found 2 JTAG devices, Total IRLen = 10:
Mon Nov 03, 2014 09:24:59: #0 Id: 0x4BA00477, IRLen: 4, IRPrint: 0x1 CoreSight JTAG-DP
Mon Nov 03, 2014 09:24:59: #1 Id: 0x122B7041, IRLen: 6, Unknown device
Mon Nov 03, 2014 09:24:59: 1248 bytes downloaded (19.35 Kbytes/sec)
Mon Nov 03, 2014 09:24:59: Loaded debugee: C:\Program Files (x86)\IAR Systems\Embedded Workbench ST 6.50.6\arm\config\flashloader\ST\FlashSTCOMET.out
Mon Nov 03, 2014 09:24:59: Target reset
Mon Nov 03, 2014 09:25:03: Downloaded Z:\nicolas\SOGridNicoG3\Trunk\Build\Linky\L20C2_G3\FIX\obj\Fix.elf to flash memory.
And here are the log when the download fails:
Mon Nov 03, 2014 09:23:05: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench ST 6.50.6\arm\config\flashloader\ST\FlashSTCOMET.mac
Mon Nov 03, 2014 09:23:06: JLINK command: ProjectFile = Z:\nicolas\SOGridNicoG3\Trunk\ProjectFiles\IAR\Linky\SOGridG3\FIX\settings\Fix_Debug.jlink, return = 0
Mon Nov 03, 2014 09:23:06: Device "UNSPECIFIED" selected (0 KB flash, 0 KB RAM).
Mon Nov 03, 2014 09:23:06: DLL version: V4.94c, compiled Oct 31 2014 19:59:57
Mon Nov 03, 2014 09:23:06: Firmware: J-Link V9 compiled Oct 28 2014 19:25:34
Mon Nov 03, 2014 09:23:06: JTAG speed is initially set to: 32 kHz
Mon Nov 03, 2014 09:23:06: TotalIRLen = 9, IRPrint = 0x0011
Mon Nov 03, 2014 09:23:06: Found Cortex-M3 r1p1, Little endian.
Mon Nov 03, 2014 09:23:06: Warning: Identified core does not match configuration. (Found: Cortex-M3, Configured: Cortex-M4)
Mon Nov 03, 2014 09:23:06: FPUnit: 6 code (BP) slots and 2 literal slots
Mon Nov 03, 2014 09:23:06: TPIU fitted.
Mon Nov 03, 2014 09:23:06: Hardware reset with strategy 0 was performed
Mon Nov 03, 2014 09:23:06: Initial reset was performed
Mon Nov 03, 2014 09:23:06: Found 2 JTAG devices, Total IRLen = 9:
Mon Nov 03, 2014 09:23:06: #0 Id: 0x3BA00477, IRLen: 4, IRPrint: 0x1 CoreSight JTAG-DP
Mon Nov 03, 2014 09:23:06: #1 Id: 0x16410041, IRLen: 5, IRPrint: 0x1 STM32 Boundary Scan
Mon Nov 03, 2014 09:23:06: 1248 bytes downloaded (19.35 Kbytes/sec)
Mon Nov 03, 2014 09:23:06: Loaded debugee: C:\Program Files (x86)\IAR Systems\Embedded Workbench ST 6.50.6\arm\config\flashloader\ST\FlashSTCOMET.out
Mon Nov 03, 2014 09:23:06: Target reset
Mon Nov 03, 2014 09:23:06: Flash loader: Failed to setup call to 'FlashInit'"
Can anyone help me to understand what is the problem ?
Using the j-link probe or the j-link ob with the same IAR project should behave the same way isn't it ?
I'm working with an eval board from ST for a new chip based on cortex M4.
The board is supplied with a J-Link OB-STM32F103 probe on it.
When I use it to download my application from IAR it works well.
Now I'd like to use a j-link probe instead, equipped with an 9-pin cortex-m adapter.
The problem is that when I try to download my application from IAR in this way, I get the error message "flash loader: failed to setup call to FlashInit".
Moreover, the j-link log displayed in IAR indicates that a cortex-M3 is found (instead of cortex-M4).
Here are IAR log when the application download works:
Mon Nov 03, 2014 09:24:54: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench ST 6.50.6\arm\config\flashloader\ST\FlashSTCOMET.mac
Mon Nov 03, 2014 09:24:58: JLINK command: ProjectFile = Z:\nicolas\SOGridNicoG3\Trunk\ProjectFiles\IAR\Linky\SOGridG3\FIX\settings\Fix_Debug.jlink, return = 0
Mon Nov 03, 2014 09:24:58: Device "UNSPECIFIED" selected (0 KB flash, 0 KB RAM).
Mon Nov 03, 2014 09:24:58: DLL version: V4.94c, compiled Oct 31 2014 19:59:57
Mon Nov 03, 2014 09:24:58: Firmware: J-Link OB-STM32F103 V1 compiled Feb 5 2014 13:48:52
Mon Nov 03, 2014 09:24:58: JTAG speed is initially set to: 32 kHz
Mon Nov 03, 2014 09:24:58: TotalIRLen = 10, IRPrint = 0x0011
Mon Nov 03, 2014 09:24:58: Found Cortex-M4 r0p1, Little endian.
Mon Nov 03, 2014 09:24:58: FPUnit: 6 code (BP) slots and 2 literal slots
Mon Nov 03, 2014 09:24:58: TPIU fitted.
Mon Nov 03, 2014 09:24:58: ETM fitted.
Mon Nov 03, 2014 09:24:59: Hardware reset with strategy 0 was performed
Mon Nov 03, 2014 09:24:59: Initial reset was performed
Mon Nov 03, 2014 09:24:59: Found 2 JTAG devices, Total IRLen = 10:
Mon Nov 03, 2014 09:24:59: #0 Id: 0x4BA00477, IRLen: 4, IRPrint: 0x1 CoreSight JTAG-DP
Mon Nov 03, 2014 09:24:59: #1 Id: 0x122B7041, IRLen: 6, Unknown device
Mon Nov 03, 2014 09:24:59: 1248 bytes downloaded (19.35 Kbytes/sec)
Mon Nov 03, 2014 09:24:59: Loaded debugee: C:\Program Files (x86)\IAR Systems\Embedded Workbench ST 6.50.6\arm\config\flashloader\ST\FlashSTCOMET.out
Mon Nov 03, 2014 09:24:59: Target reset
Mon Nov 03, 2014 09:25:03: Downloaded Z:\nicolas\SOGridNicoG3\Trunk\Build\Linky\L20C2_G3\FIX\obj\Fix.elf to flash memory.
And here are the log when the download fails:
Mon Nov 03, 2014 09:23:05: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench ST 6.50.6\arm\config\flashloader\ST\FlashSTCOMET.mac
Mon Nov 03, 2014 09:23:06: JLINK command: ProjectFile = Z:\nicolas\SOGridNicoG3\Trunk\ProjectFiles\IAR\Linky\SOGridG3\FIX\settings\Fix_Debug.jlink, return = 0
Mon Nov 03, 2014 09:23:06: Device "UNSPECIFIED" selected (0 KB flash, 0 KB RAM).
Mon Nov 03, 2014 09:23:06: DLL version: V4.94c, compiled Oct 31 2014 19:59:57
Mon Nov 03, 2014 09:23:06: Firmware: J-Link V9 compiled Oct 28 2014 19:25:34
Mon Nov 03, 2014 09:23:06: JTAG speed is initially set to: 32 kHz
Mon Nov 03, 2014 09:23:06: TotalIRLen = 9, IRPrint = 0x0011
Mon Nov 03, 2014 09:23:06: Found Cortex-M3 r1p1, Little endian.
Mon Nov 03, 2014 09:23:06: Warning: Identified core does not match configuration. (Found: Cortex-M3, Configured: Cortex-M4)
Mon Nov 03, 2014 09:23:06: FPUnit: 6 code (BP) slots and 2 literal slots
Mon Nov 03, 2014 09:23:06: TPIU fitted.
Mon Nov 03, 2014 09:23:06: Hardware reset with strategy 0 was performed
Mon Nov 03, 2014 09:23:06: Initial reset was performed
Mon Nov 03, 2014 09:23:06: Found 2 JTAG devices, Total IRLen = 9:
Mon Nov 03, 2014 09:23:06: #0 Id: 0x3BA00477, IRLen: 4, IRPrint: 0x1 CoreSight JTAG-DP
Mon Nov 03, 2014 09:23:06: #1 Id: 0x16410041, IRLen: 5, IRPrint: 0x1 STM32 Boundary Scan
Mon Nov 03, 2014 09:23:06: 1248 bytes downloaded (19.35 Kbytes/sec)
Mon Nov 03, 2014 09:23:06: Loaded debugee: C:\Program Files (x86)\IAR Systems\Embedded Workbench ST 6.50.6\arm\config\flashloader\ST\FlashSTCOMET.out
Mon Nov 03, 2014 09:23:06: Target reset
Mon Nov 03, 2014 09:23:06: Flash loader: Failed to setup call to 'FlashInit'"
Can anyone help me to understand what is the problem ?
Using the j-link probe or the j-link ob with the same IAR project should behave the same way isn't it ?