UART ROM-FLASHER , без Jtag.
Alpha-Test version...
MJIOT-AMB-03 FLASH = 2MBytes.
I have two problems. 1) I use linux. 2)SDK tools (based on Jlink scripts) seens to support only support 1MB
and SDK 4.0 can't make a full image (RTL8710BN have a different flash layout than RTL8710A it includes SystemData section and others ) And it's bad that SDK4.0 boot.bin is only 4KB. I had managed to boot the device mixing boot section from the original dump(W25Q16DV) that came with the module with SystemData.
I had written OTA1 and OTA2 generated by sdk4.0 to the standart adress as stated in datasheet. But it refuses to boot correctly. How to check if the images generated by sdk4.0 are valid? What pin on the module do you connect to ground to enter uart-rom boot? With Jlink it seems that I can't erase the flash only write
[inline]
<RTL8195A>
ROM:[V0.1]
FLASHRATE:4
BOOT TYPE:0 XTAL:40000000
IMG1 DATA[1764:10002000]
IMG1 ENTRY[8000353:100021c5]
IMG1 ENTER
read_mode idx:0, flash_speed idx:6
calibration_result:[1:37:19][1:25]
calibration_result:[2:23:13][1:17]
calibration_result:[3:0:0][ff:ff]
calibration_ok:[1:37:19]
FLASH CALIB[NEW OK]
OTA2 ADDR[477083b0]
OTAx SELE[83281a08]
OTA2 USE
OTA2 SIGN[deadbeef:deadbeef]
OTA2 signature wrong, select OTA1
IMG2 DATA[0x800f200:2872:0x10005000]
IMG2 SIGN[RTKWin(10005008)]
IMG2 ENTRY[0x10005000:0x800b12d]
===== Enter Image 2 ====
RTL8195A[HAL]: Hard Fault Error!!!!
RTL8195A[HAL]: R0 = 0x7735940
RTL8195A[HAL]: R1 = 0x0
RTL8195A[HAL]: R2 = 0x46e10
RTL8195A[HAL]: R3 = 0xf000f8df
RTL8195A[HAL]: R12 = 0x0
RTL8195A[HAL]: LR = 0x800b165
RTL8195A[HAL]: PC = 0xf000f8de
RTL8195A[HAL]: PSR = 0x61000200
RTL8195A[HAL]: BFAR = 0xe000ed38
RTL8195A[HAL]: CFSR = 0x1
RTL8195A[HAL]: HFSR = 0x40000000
RTL8195A[HAL]: DFSR = 0x0
RTL8195A[HAL]: AFSR = 0x0
RTL8195A[HAL]: PriMask 0x0
RTL8195A[HAL]: BasePri 0x0
RTL8195A[HAL]: SVC priority: 0x00
RTL8195A[HAL]: PendSVC priority: 0x00
RTL8195A[HAL]: Systick priority: 0x00
[/inline]