Part Number: MCU-PLUS-SDK-AM243X
Other Parts Discussed in Thread: LP-AM243
Tool/software:
Hi team,
We uses AM243x_lp to build a custom flash ic board integrating an OSPI-Flash from Macronix. The flash used is the MX25L25645GM2I-08G.The SDK version I am using is mcu_plus_sdk_am243x_09_00_00_35.
I replaced the LP-AM243's external flash with an MX25L25645GM2I-08G.I checked the SDK instructions and found an article on how to apply custom flash to the LP.
Based on that, I attempted to update the flash parameters using our chosen flash data sheet and the.json file included with the SDK.
I've attached the. Json file for the MX25L25645GM2I-08G flash IC. Have the MX25L25645G settings been setup correctly in this. Json file?
{
"flashSize": 33554432,
"flashPageSize": 256,
"flashManfId": "0xC2",
"flashDeviceId": "0x2018",
"flashBlockSize": 262144,
"flashSectorSize": 4096,
"cmdBlockErase3B": "0xD8",
"cmdBlockErase4B": "0xDC",
"cmdSectorErase3B": "0x20",
"cmdSectorErase4B": "0x21",
"protos": {
"p111": {
"isDtr": false,
"cmdRd": "0x03",
"cmdWr": "0x02",
"modeClksCmd": 0,
"modeClksRd": 0,
"dummyClksCmd": 0,
"dummyClksRd": 15,
"enableType": "0",
"enableSeq": "0x00",
"dummyCfg": null,
"protoCfg": null,
"strDtrCfg": null
},
"p112": null,
"p114": {
"isDtr": false,
"cmdRd": "0x15",
"cmdWr": "0x02",
"modeClksCmd": 0,
"modeClksRd": 0,
"dummyClksCmd": 0,
"dummyClksRd": 8,
"enableType": "5",
"enableSeq": "0x00",
"dummyCfg": null,
"protoCfg": null,
"strDtrCfg": null
},
"p118": null,
"p444s": null,
"p444d": {
"isDtr": true,
"cmdRd": "0xED",
"cmdWr": "0x02",
"modeClksCmd": 0,
"modeClksRd": 1,
"dummyClksCmd": 0,
"dummyClksRd": 15,
"enableType": "0",
"enableSeq": "0x08",
"dummyCfg": {
"isAddrReg": true,
"cmdRegRd": "0x65",
"cmdRegWr": "0x71",
"cfgReg": "0x00800003",
"shift": 0,
"mask": "0x0F",
"bitP": 15
},
"protoCfg": null,
"strDtrCfg": null
},
"p888s": null,
"p888d": null,
"pCustom": null
},
"addrByteSupport": "1",
"fourByteAddrEnSeq": "0xA1",
"cmdExtType" : "NONE",
"resetType": "0x10",
"deviceBusyType": "1",
"cmdWren": "0x06",
"cmdRdsr": "0x05",
"srWip": 0,
"srWel": 1,
"cmdChipErase" : "0xC7",
"rdIdSettings": {
"cmd": "0x9F",
"numBytes": 3,
"dummy4": 0,
"dummy8": 0
},
"xspiWipRdCmd": "0x00",
"xspiWipReg": "0x00000000",
"xspiWipBit": 0,
"flashDeviceBusyTimeout": 6000000,
"flashPageProgTimeout": 4000
}
1. Got a load failed error while debugging.
MAIN_Cortex_R5_0_0: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x40: (Error -1065 @ 0x40) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 12.6.0.00029)
MAIN_Cortex_R5_0_0: File Loader: Verification failed: Target failed to write 0x00000000
MAIN_Cortex_R5_0_0: GEL: File: C:\Users\Abinaya.e\Downloads\Macronix_flash_diag_am243x-lp_r5fss0-0_nortos_ti-arm-clang\Macronix_flash_diag_am243x-lp_r5fss0-0_nortos_ti-arm-clang\Debug\Macronix_flash_diag_am243x-lp_r5fss0-0_nortos_ti-arm-clang.out: Load failed.
2. 2. Also, when I attempted to flash the code in UART flash mode according to the flash guide LINK , it halted in the second instruction. (--operation=flash-phy-tuning-data)
Could you kindly advise me on the reason of the problem and how to fix it?
Regards,
Abinaya