I'm trying to configure openocd to program an MKS22FN256VLL12.
openocd reports: MCU is unsupported, SDID 0x22000418
Having added that SDID to openocd, I can connect and read the SDID register:
Open On-Chip Debugger
> mdw 0x40048024
0x40048024: 22000418
As far as I can tell, this doesn't correspond to the SDID in the reference manual. Page 207 of KS22P100M120SF0RM says that the DIEID in SDID[11:7] should be 10111 but this device reads as 01000?
Hi chris_f,
The SIM_SDID in KS22P100M120SF0RM shows it should be 10111, but this device reads as 01000 too.
Here is the MKS22FN256VLL12 on MAPS-KS22 board.
I need to check it with our internal team.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
I made a mistake in my original post, I'm using an MKS22FN128VLL12 not the 256kB variant.
SIM_FCFG1 reads 0x070F0F00 where the RM says it should be 0xF70F0F00.
Edit:
I can't get OpenOCD to flash the device using the same algorithm as for a K22 of the same size.
OpenOCD flashes the device with the same algorithm as a K22 (my problems were due to cable length).
About SIM_SDID[DIEID]:
Have confirmed this is a document issue, the id read out is right, the id on document is wrong.
About SIM_FCFG1[31-28]:
The value of SIM_FCFG1[31-28] may be wrong too.(need time to confirm)