Problem with Flashing .hex to EK-RA8D1 Renesas board

Question/Issue:
I am using Windows, and I tried to flash the firmware-renesas-ek-ra8d1-freertos.hex that you provided on your site, but neither the .bat script worked nor flashing the hex from the Segger J-Flash platform. However, I can flash another .hex to my board.

Project ID:

If I have misunderstood any part of your instructions, I apologize and am sorry for creating the topic.
I am waiting for your response .
Best Regards.

Hi @Babis

can you paste the error that you get from using the bat and the J-Flash?

Which Jlink version are you using ?
I’m using version V7.92q.

regards,
fv

Hi, @ei_francesco

There weren’t any errors when I ran the .bat; it just showed a cmd window briefly and closed.
Yes, I am using V7.92q. After flashing the .hex, I only see a white screen.

Regards.

If you run the bat from the command line you should see the output, please paste it here.

This is my output:

C:\work\temp\renesas-ek-ra8d1>flash_win.bat

C:\work\temp\renesas-ek-ra8d1>JLink.exe -device R7FA8D1BH -if SWD -speed 12000 "downloadfw.jlink"
SEGGER J-Link Commander V7.92q (Compiled Nov 23 2023 18:11:39)
DLL version V7.92q, compiled Nov 23 2023 18:09:52


J-Link Command File read successfully.
Processing script file...
J-Link>sleep 10
Sleep(10)
J-Link>loadfile firmware-renesas-ek-ra8d1-freertos.hex
J-Link connection not established yet but required for command.
Connecting to J-Link via USB...O.K.
Firmware: J-Link OB-RA4M2 compiled Dec  4 2023 10:18:52
Hardware version: V1.00
J-Link uptime (since boot): 0d 00h 01m 21s
S/N: 1082699378
USB speed mode: Full speed (12 MBit/s)
VTref=3.300V
Target connection not established yet but required for command.
Device "R7FA8D1BH" selected.


Connecting to target via SWD
ConfigTargetSettings() start
Configuring FlashDLNoRMWThreshold=0x200 in order to make sure that option bytes programming is done via read-modify-write
ConfigTargetSettings() end - Took 1.75ms
InitTarget() start
Identifying target device...
SWD selected. Executing JTAG -> SWD switching sequence...
Initializing DAP...
DAP initialized successfully.
Determining TrustZone configuration...
  Secure Debug: Enabled (SSD)
Determining currently configured transfer type by reading the AHB-AP CSW register.
  --> Correct transfer type configured. Done.
InitTarget() end - Took 6.60ms
Found SW-DP with ID 0x6BA02477
DPIDR: 0x6BA02477
CoreSight SoC-400 or earlier
Scanning AP map to find all available APs
AP[2]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x84770001)
AP[1]: APB-AP (IDR: 0x54770002)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FE000
CPUID register: 0x410FD230. Implementer code: 0x41 (ARM)
Feature set: Mainline
Cache: L1 I/D-cache present
Found Cortex-M85 r0p0, Little endian.
FPUnit: 8 code (BP) slots and 0 literal slots
Security extension: implemented
Secure debug: enabled
CoreSight components:
ROMTbl[0] @ E00FE000
[0][0]: E00FF000 CID B105100D PID 000BB4D4 ROM Table
ROMTbl[1] @ E00FF000
[1][0]: E000E000 CID B105900D PID 000BBD23 DEVARCH 47702A04 DEVTYPE 00 ???
[1][1]: E0001000 CID B105900D PID 000BBD23 DEVARCH 47711A02 DEVTYPE 00 DWT
[1][2]: E0002000 CID B105900D PID 000BBD23 DEVARCH 47701A03 DEVTYPE 00 FPB
[1][3]: E0000000 CID B105900D PID 000BBD23 DEVARCH 47701A01 DEVTYPE 43 ITM
[1][5]: E0041000 CID B105900D PID 000BBD23 DEVARCH 47754A13 DEVTYPE 13 ETM
[1][6]: E0003000 CID B105900D PID 000BBD23 DEVARCH 47700A06 DEVTYPE 16 ???
[1][7]: E0042000 CID B105900D PID 000BBD23 DEVARCH 47701A14 DEVTYPE 14 CSS600-CTI
[0][1]: E0040000 CID B105900D PID 000BBD23 DEVARCH 00000000 DEVTYPE 11 TPIU
I-Cache L1: 16 KB, 256 Sets, 32 Bytes/Line, 2-Way
D-Cache L1: 16 KB, 128 Sets, 32 Bytes/Line, 4-Way
Memory zones:
  Zone: "Default" Description: Default access mode
Cortex-M85 identified.
'loadfile': Performing implicit reset & halt of MCU.
Reset: ARMv8M core with Security Extension enabled detected.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Downloading file [firmware-renesas-ek-ra8d1-freertos.hex]...
CPU is running at low speed (8438 kHz).
J-Link: Flash download: Bank 0 @ 0x0300A100: Skipped. Contents already match
CPU is running at low speed (8438 kHz).
J-Link: Flash download: Bank 2 @ 0x27030080: Skipped. Contents already match
CPU is running at low speed (8439 kHz).
J-Link: Flash download: Bank 3 @ 0x02000000: Skipped. Contents already match
O.K.
J-Link>sleep 10
Sleep(10)
J-Link>r
Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Reset: ARMv8M core with Security Extension enabled detected.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
J-Link>go
Memory map 'after startup completion point' is active
J-Link>q

Script processing completed.


C:\work\temp\renesas-ek-ra8d1>