Команду даете неправильноJLINKARM_WriteU32($40006000, 0);
JLINKARM_WriteU32($40006004, rdl);
JLINKARM_WriteU32($40006008, wrl);
JLINKARM_WriteU32($40006060, $B1); // ENSO (enter secured OTP)
И ничего описанного вами не происходит. Что не так?
ctrlr0 = 0x00000100
SSIENR = 1
DR = 0xb1
..wait ready..
SSIENR = 0
Делаю сброс и получаю:
Код:
=========================================================
ROM Version: 0.3
Build ToolChain Version: gcc version 4.8.3 (Realtek ASDK-4.8.3p1 Build 2003)
=========================================================
Check boot type form eFuse
SPI Initial
Image1 length: 0xf, Image Addr: 0xf
Image1 Validation Incorrect !!!
Please Re-boot and try again, or re-burn the flash image
<RTL8195A>
<RTL8195A>?
----------------- COMMAND MODE HELP ------------------
HELP (?) : Print this help messag
DB <Address, Hex> <Len, Dec>:
Dump memory byte or Read Hw byte register
DHW <Address, Hex> <Len, Dec>:
Dump memory helf-word or Read Hw helf-word register
DW <Address, Hex> <Len, Dec>:
Dump memory word or Read Hw word register
EW <Address, Hex> <Value, Hex>:
Write memory word or Write Hw word register
Can write more word at the same time
Ex: EW Address Value0 Value1
SPICTOOL <Mode, Dec> <BitMode, Dec>:
Mode = 1: Init SPIC; BitMode: 0(One)/1(Dual)/2(Quad)
Mode = 2: Erase Chip
----------------- COMMAND MODE END ------------------
<RTL8195A>