Can not Flash RSL-10

In trying to flash the BME680 demo onto RSL-10 I end up with:

****** Error: Failed to prepare for programming.
Could not preserve target memory.
Error while determining flash info (Bank @ 0x00100000)
Unspecified error -1

Before that there is a long list of problematic actions as follows:
SEGGER J-Link Commander V6.40 (Compiled Oct 26 2018 15:06:29)
DLL version V6.40, compiled Oct 26 2018 15:06:02

J-Link Command File read successfully.
Processing script file…

J-Link connection not established yet but required for command.
Connecting to J-Link via USB…O.K.
Firmware: J-Link Lite-Cortex-M V9 compiled May 17 2019 09:50:01
Hardware version: V9.00
S/N: 519003893
License(s): GDB
VTref=2.787V
Target connection not established yet but required for command.
Device “RSL10” selected.

Connecting to target via SWD
Executing J-Link script file function: ConfigTargetSettings()
Found SW-DP with ID 0x2BA01477
SWD speed too high. Reduced from 4000 kHz to 1518 kHz for stability
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x412FC231. Implementer code: 0x41 (ARM)
Found Cortex-M3 r2p1, Little endian.
FPUnit: 2 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB000 SCS
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB

****** Error: Error while evaluating J-Link script file: Error while compiling. Line 101, column 9:
} while ( is_halted==0 && timeout==0 );

    ^

Expected a ‘;’
Internal error: Could not find J-Link script function ConfigTargetSettings() for execution
Cortex-M3 identified.
Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Reset: SYSRESETREQ has confused core.
Found SW-DP with ID 0x2BA01477
AP map detection skipped. Manually configured AP map found.
AP[0]: AHB-AP (IDR: Not set)
AP[0]: Skipped. Invalid implementer code read from CPUIDVal[31:24] = 0x00
Reset: Using fallback: VECTRESET.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.VECTRESET.
Reset: VECTRESET has confused core.
Reset: Using fallback: Reset pin.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via reset pin
Reset: VC_CORERESET did not halt CPU. (Debug logic also reset by reset pin?).
Reset: Reconnecting and manually halting CPU.
Found SW-DP with ID 0x2BA01477
AP map detection skipped. Manually configured AP map found.
AP[0]: AHB-AP (IDR: Not set)
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x412FC231. Implementer code: 0x41 (ARM)
Found Cortex-M3 r2p1, Little endian.
Reset: Core is locked-up, trying to disable WDT.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via reset pin
Reset: VC_CORERESET did not halt CPU. (Debug logic also reset by reset pin?).
Reset: Reconnecting and manually halting CPU.
Found SW-DP with ID 0x2BA01477
AP map detection skipped. Manually configured AP map found.
AP[0]: AHB-AP (IDR: Not set)
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x412FC231. Implementer code: 0x41 (ARM)
Found Cortex-M3 r2p1, Little endian.

****** Error: Could not find core in Coresight setup

@tash1000 - the most frequent RSL10 issue is either not having the Coin Cell battery installed, or not having enough charge on the one installed. If you leave it in for very long it will drain down.

I tried it with a fresh one to the same effect unfortunately. And flashing works OK if done with the ON Semiconductor IDE and J-Link.

@tash1000 - which OS are you programming with and which version of the RSL10 kit are you using?

Windows 7 Pro

OnSemi RSL10 Device Family Pack 3.2.608

OnSemi BDK 1.12.1

@tash1000 - I’m not familiar with that kit. This is the one we support - https://www.onsemi.com/support/evaluation-board/rsl10-sense-db-gevk
If you are using the BDK - it likely needs to be set up differently. Can you send a picture of your setup?
Thanks

I do have the rsl10-sense-db-gevk (see attached). The toolchain is as per “RSL10 Getting Started Guide” page 7 (chapter 3).
Installation screen capture:

The only difference I see from programming my kit is I’m using a newer version of J-Link Commander - 6.46 vs. your version 6.40. It’s a 2019 version vs. your 2018 version.

SEGGER J-Link Commander V6.46k (Compiled Jul 22 2019 10:50:37)

DLL version V6.46k, compiled Jul 22 2019 10:49:32

J-Link Command File read successfully.

Processing script file…

J-Link connection not established yet but required for command.

Connecting to J-Link via USB…O.K.

Firmware: J-Link Lite-Cortex-M V9 compiled May 17 2019 09:50:01

Hardware version: V9.00

S/N: 519003490

License(s): GDB

VTref=2.881V

Target connection not established yet but required for command.

Device “RSL10” selected.

Connecting to target via SWD

Found SW-DP with ID 0x2BA01477

SWD speed too high. Reduced from 4000 kHz to 1518 kHz for stability

Scanning AP map to find all available APs

AP[1]: Stopped AP scan as end of AP map has been reached

AP[0]: AHB-AP (IDR: 0x24770011)

Iterating through AP map to find AHB-AP to use

AP[0]: Core found

AP[0]: AHB-AP ROM base: 0xE00FF000

CPUID register: 0x412FC231. Implementer code: 0x41 (ARM)

Found Cortex-M3 r2p1, Little endian.

FPUnit: 2 code (BP) slots and 0 literal slots

CoreSight components:

ROMTbl[0] @ E00FF000

ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB000 SCS

ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT

ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB

Cortex-M3 identified.

Reset delay: 0 ms

Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.

ResetTarget() start

Executing RSL10 reset type: 0x00000000

ResetTarget() end

Downloading file [C:\Users\RLABOR~1.SYR\AppData\Local\Temp\tmp-13904KGxyBbT1U01r\Atmosphere_Project.hex]…

J-Link: Flash download: Bank 0 @ 0x00100000: 1 range affected (194560 bytes)

J-Link: Flash download: Total time needed: 9.971s (Prepare: 0.095s, Compare: 3.634s, Erase: 0.920s, Program: 3.482s, Verify: 1.830s, Restore: 0.007s)

O.K.

Script processing completed.

CLOSE

Can you update to a newer version?

I had version 6.70b installed but 6.46 was still there so I uninstalled it to make sure there was no interference. It worked!
Hopefully case closed.

Thanks Richard!