Hello All,
I'm trying to get a Renesas RZ/A1M working with dual quad spi flash chips.
The first problem is that J-link (v6.41a beta) doesn't support the RZ/A1M (R7S721010VC). So i tried to program as a RZ/A1H (the bigger brother of the RZ/A1M).
The bootloader (a modified version of the Stream-it! V2 bootloader) is programmed and running in the RZ/A1M, so far so good.
The next step is to program the user application. The programming (and verifying) is successful, however the code is NOT running. I can see why, the string ".BootLoad_ValidProgramTest." is garbled, it reads ". o t o d V l d r g a T s ." from the bootloader point of view. This suggests the 2nd quad spi flash is not working. When I use a scope I actually don't see data on any of the spi data pins (clock and chip select work).
Next I monitored the same pins while programming the RZ/A1M and to my great surprise I didn't see any data!
So programming and verifying with a J-link debug probe works, but reading back by the RZ/A1M doesn't work. It is a mystery to me what is happening here. Say all data is programmed in the 1st quad flash chip (what the scope suggests because I don't see any data on the 2nd quad spi flash chip) I would expect the string to read ". B o o t L o a d _ V a l i" from the bootloader point of view.
Can someone tell me how to procede?
My setup is a follows:
1x RZ/A1M (R7S721010VC)
2x Quad SPI Flash MX25L51245GMI
SPBCLK_0 -> P9.02
SPBSSL_0 -> P9.03
SPBIO00_0 -> P9.04
SPBIO10_0 -> P9.05
SPBIO20_0 -> P9.06
SPBIO30_0 -> P9.07
SPBIO01_0 -> P8.14
SPBIO11_0 -> P8.15
SPBIO21_0 - P9.0
SPBIO31_0 - P9.1
J-link batch file:
@echo off
set DEVICE=R7S721000_DUALSPI
set BASE=C:\Program Files (x86)\SEGGER\JLink_V641a\
"%BASE%\JLink.exe" -if JTAG -speed 12000 -device %DEVICE% -jtagconf -1,-1 -CommandFile application-apiqe-wr.jlink
pause
J-link command file:
r
h
// Set P8.14 .. P8.15 as alternate function 2.
w2 0xFCFE3420, 0xC000 // PMC8
w2 0xFCFE3A20, 0x0000 // PFCAE8
w2 0xFCFE3620, 0x0000 // PFCE8
w2 0xFCFE3520, 0xC000 // PFC8
w2 0xFCFE7220, 0xC000 // PIPC8
// Set P9.0 .. P9.7 as alternate function 2.
w2 0xFCFE3424, 0x00FF // PMC9
w2 0xFCFE3A24, 0x0000 // PFCAE9
w2 0xFCFE3624, 0x0000 // PFCE9
w2 0xFCFE3524, 0x00FF // PFC9
w2 0xFCFE7224, 0x00FF // PIPC9
// Configure SPI Multi I/O Bus Controller.
w4 0x3FEFA000, 0x01AA5001 // CMNCR_0
w4 0x3FEFA010, 0x00030000 // DRCMR_0
w4 0x3FEFA01C, 0x00004700 // DRENR_0
w4 0x3FEFA00C, 0x00000000 // DRCR_0
w4 0x3FEFA014, 0x00000000 // DREAR_0
w4 0x3FEFA008, 0x00000003 // SPBCR_0
loadbin .\RZA1LU_Sample\HardwareDebug\RZA1LU_Sample.bin,0x18080000
verifybin .\RZA1LU_Sample\HardwareDebug\RZA1LU_Sample.bin,0x18080000
r
g
q
I tried with and without additional "wx" commands but both to no avail.
Tia.