This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Automatically Configure Flash For a Custom Flash Device is causing an error.

Other Parts Discussed in Thread: SYSCONFIG

I have modified the SPI-FLASH on the evaluation board and would like to change it to the corresponding configuration.

I have done this by clicking on the "LOAD FROM JSON" button in case1 of the manual "Adding Support For a Custom Flash Device > Step 2: Configuring the flash via SysConfig" for the custom flash. Error. Please let me know the cause.

Attached is the JSON file and the error message.

kouno tamaki

----(Error message below)

Oh Snap! The last change caused an exception...

ReferenceError: __dirname is not defined

Hide Details...

    at Object.rootDir (webpack:///src/pinmux/services/paths.ts:8:25)
    at func (webpack:///src/pinmux/services/utils.ts:582:35)
    at Object.getNodePath (webpack:///src/pinmux/services/pathsVisibility.ts:22:10)
    at Object.getNodePath (C:\ti\mcu_plus_sdk_am243x_08_06_00_43\source\.meta\common.syscfg.js:39:19)
    at Object.onLaunch (C:\ti\mcu_plus_sdk_am243x_08_06_00_43\source\board\.meta\flash\v0\flash_v0.syscfg.js:822:44)
    at cb (webpack:///src/pinmux/services/objectManagers/configurables/externalExecutableConfigurableMgr.ts:30:20)
    at Object.withDeprecatedAccess (webpack:///src/pinmux/services/deprecatedAccessGuard.ts:14:10)
    at Object.disableScriptingForCallback (webpack:///src/pinmux/services/scripting/scriptingGuard.ts:14:10)
    at func (webpack:///src/pinmux/services/objectManagers/configurables/externalExecutableConfigurableMgr.ts:29:50)
    at Object.t.allowPathVisibility (webpack:///src/pinmux/services/pathsVisibility.ts:11:10)

----(step1 generation file)

{
	"flashSize": 16777216,
	"flashPageSize": 256,
	"flashManfId": "0x20",
	"flashDeviceId": "0xBA18",
	"flashBlockSize": 65536,
	"flashSectorSize": 4096,
	"cmdBlockErase3B": "0xD8",
	"cmdBlockErase4B": "0xFF",
	"cmdSectorErase3B": "0x20",
	"cmdSectorErase4B": "0xFF",
	"protos": {
		"p111": {
			"isDtr": false,
			"cmdRd": "0x03",
			"cmdWr": "0x02",
			"modeClksCmd": 0,
			"modeClksRd": 0,
			"dummyClksCmd": 0,
			"dummyClksRd": 0,
			"enableType": "0",
			"enableSeq": "0x00",
			"dummyCfg": null,
			"protoCfg": null,
			"strDtrCfg": null
		},
		"p112": {
			"isDtr": false,
			"cmdRd": "0x3B",
			"cmdWr": "0x02",
			"modeClksCmd": 0,
			"modeClksRd": 1,
			"dummyClksCmd": 0,
			"dummyClksRd": 7,
			"enableType": "0",
			"enableSeq": "0x00",
			"dummyCfg": null,
			"protoCfg": null,
			"strDtrCfg": null
		},
		"p114": {
			"isDtr": false,
			"cmdRd": "0x6B",
			"cmdWr": "0x02",
			"modeClksCmd": 0,
			"modeClksRd": 1,
			"dummyClksCmd": 0,
			"dummyClksRd": 7,
			"enableType": "0",
			"enableSeq": "0x00",
			"dummyCfg": null,
			"protoCfg": null,
			"strDtrCfg": null
		},
		"p118": {
			"isDtr": false,
			"cmdRd": "0x7C",
			"cmdWr": "0x84",
			"modeClksCmd": 0,
			"modeClksRd": 0,
			"dummyClksCmd": 0,
			"dummyClksRd": 0,
			"enableType": "255",
			"enableSeq": "0x00",
			"dummyCfg": null,
			"protoCfg": null,
			"strDtrCfg": null
		},
		"p444s": {
			"isDtr": false,
			"cmdRd": "0xEB",
			"cmdWr": "0x02",
			"modeClksCmd": 0,
			"modeClksRd": 1,
			"dummyClksCmd": 0,
			"dummyClksRd": 9,
			"enableType": "0",
			"enableSeq": "0x14",
			"dummyCfg": {
				"isAddrReg": false,
				"cmdRegRd":"0x00",
				"cmdRegWr":"0x00",
				"cfgReg":"0x00000000",
				"shift":0,
				"mask":"0x00",
				"bitP":0
			},
			"protoCfg": {
				"isAddrReg": false,
				"cmdRegRd": "0x00",
				"cmdRegWr": "0x00",
				"cfgReg": "0x00000000",
				"shift": 0,
				"mask": "0x00",
				"bitP": 0
			},
			"strDtrCfg": {
				"isAddrReg": false,
				"cmdRegRd": "0x00",
				"cmdRegWr": "0x00",
				"cfgReg": "0x00000000",
				"shift": 0,
				"mask": "0x00",
				"bitP": 0
			}
		},
		"p444d": {
			"isDtr": false,
			"cmdRd": "0xEB",
			"cmdWr": "0x02",
			"modeClksCmd": 0,
			"modeClksRd": 1,
			"dummyClksCmd": 0,
			"dummyClksRd": 9,
			"enableType": "0",
			"enableSeq": "0x14",
			"dummyCfg": {
				"isAddrReg": false,
				"cmdRegRd":"0x00",
				"cmdRegWr":"0x00",
				"cfgReg":"0x00000000",
				"shift":0,
				"mask":"0x00",
				"bitP":0
			},
			"protoCfg": {
				"isAddrReg": false,
				"cmdRegRd": "0x00",
				"cmdRegWr": "0x00",
				"cfgReg": "0x00000000",
				"shift": 0,
				"mask": "0x00",
				"bitP": 0
			},
			"strDtrCfg": {
				"isAddrReg": false,
				"cmdRegRd": "0x00",
				"cmdRegWr": "0x00",
				"cfgReg": "0x00000000",
				"shift": 0,
				"mask": "0x00",
				"bitP": 0
			}
		},
		"p888s": null,
		"p888d": null,
		"pCustom": { 
			"fxn": null
		}
	},
	"addrByteSupport": "0",
	"fourByteAddrEnSeq": "0x00",
	"cmdExtType": "NONE",
	"resetType": "0x3D",
	"deviceBusyType": "0",
	"cmdWren": "0x06",
	"cmdRdsr": "0x05",
	"srWip":  0,
	"srWel":  0,
	"cmdChipErase": "0xC7",
	"rdIdSettings": {
		"cmd": "0x9F",
		"numBytes": 5,
		"dummy4": 0,
		"dummy8": 0
	},
	"xspiWipRdCmd": "0x00",
	"xspiWipReg": "0x00000000",
	"xspiWipBit": 0,
	"flashDeviceBusyTimeout": 40000000,
	"flashPageProgTimeout": 120
}