RSL10 Flash Loader Error

Cannot download .Hex file using Flash Loader.

Error indicated during the process is as shown below -
Connecting to device
Device “RSL10” selected.
Found SWD-DP with ID 0x2BA01477
Setting speed to max
Found SW-DP with ID 0x2BA01477
Scanning APs, stopping at first AHB-AP found.
AP[0] IDR: 0x24770011 (AHB-AP)
AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)
CPUID reg: 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
Actual speed: 2000 kHz
Erasing
Erasing [0x00100000-0x0011FFFF]
–Erasing [00100000-00107fff]
–Erasing [00108000-0010ffff]
–Erasing [00110000-00117fff]
–Erasing [00118000-0011ffff]
Erasing [0x00120000-0x0013FFFF]
–Erasing [00120000-00127fff]
–Erasing [00128000-0012ffff]
–Erasing [00130000-00137fff]
–Erasing [00138000-0013ffff]
Erasing [0x00140000-0x0015EFFF]
–Erasing [00140000-00147fff]
–Erasing [00148000-0014ffff]
–Erasing [00150000-00157fff]
–Erasing [00158000-0015efff]
Programming
Programming [0x00100000-0x00107FFF]
–Writing [00100000-00107fff]
Programming [0x00108000-0x0010FFFF]
–Writing [00108000-0010ffff]
Programming [0x00110000-0x00117FFF]
–Writing [00110000-00117fff]
Programming [0x00118000-0x0011FFFF]
–Writing [00118000-0011ffff]
Programming [0x00120000-0x00127FFF]
–Writing [00120000-00127fff]
Programming [0x00128000-0x0012FFFF]
–Writing [00128000-0012ffff]
Programming [0x00130000-0x00137FFF]
–Writing [00130000-00137fff]
Programming [0x00138000-0x0013FFFF]
–Writing [00138000-0013ffff]
Programming [0x00140000-0x0014219B]
–Reading [0014219c-001427ff]
–Writing [00140000-00141fff]
Programming [0x20006000-0x2000DFFF]
Error: Program failed

How do I resolve the issue?
Is the flash loader incapable of downloading DSP-DRAM segments?

Thanks
Raju
(Honeywell)

In the FlashLoader documentation, the purpose is clearly specified:

The stand-alone flash loader is used to program, erase and read flash memory in RSL10.

I haven’t tested it myself but I think you are trying to use the tool outside its scope…

4 Likes

Thanks rvs.

How do we use it to program the regions that throw error from Flash Loader?

@rajucoolsuraj If you want to write both Flash and RAM, the tool you need is J-Link Commander from SEGGER: J-Link Commander - SEGGER Wiki

1 Like

Thanks rvs!
How do I modify the linker file DSP-DRAM memory segment allocation to avoid Flash Loader to program the RAM location?

Does it require a (NOLOAD) attribute to be associated with section declaration?

The snippet of linker:

MEMORY
{
DRAM_DSP (xrw) : ORIGIN = 0x20006000, LENGTH = 48K
}

SECTIONS
{
.data_records :
{
KEEP(*(.data_records))
} >DRAM_DSP
}

@rajucoolsuraj A simple way to do that is to open your *.hex file using SEGGER J-Flash, then open the menu “Edit → Delete range…” and specify the start and end address of DSP-DRAM. Finally record the output to a new *.hex file.

Yes, I think the NOLOAD directive could also generate your image without the DSP-DRAM section.

3 Likes

Thanks rvs.
I will add the method recommended into my knowledge base!

Regards
Raju
Honeywell