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.

AM263P4-Q1: Setting The QE Bit Using UniFlash Custom Flasher Appears Unsuccessful

Part Number: AM263P4-Q1
Other Parts Discussed in Thread: SYSCONFIG

Hello  

We are using Infineon S25FL128LAGMFB013 QSPI flash.

Further to your comment here: AM263P4-Q1: RBL / SBL Checklist? - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums 

"A simple way to program is to run the OSPI flash io example to do read/write in 4s mode, in the program, configure the QE bit."

Question 1:

The .json file produced by the diagnostic example (attached) for the Infineon device has the following:

		"p114": {
			"isDtr": false,
			"cmdRd": "0x6C",
			"cmdWr": "0x34",
			"modeClksCmd": 0,
			"modeClksRd": 0,
			"dummyClksCmd": 0,
			"dummyClksRd": 8,
			"enableType": "5",
			"enableSeq": "0x00",
			"dummyCfg": null,
			"protoCfg": null,
			"strDtrCfg": null
		},

Where it says "enableType": "5" is this the QE enable type for protocol 1S-1S-4S?

Question 2:

If so, after clicking the 'LOAD FROM JSON" button then selecting 1S-1S-4S, the Quad Enable Type remains at '0'. Why isn't the Enable Type set to '5'?

Question 3:

The SysCfg help for Quad Enable Type 5 says:

"5 : QE is bit 1 of the status register 2"

However, the datasheet for my Infineon device does not mention anything about QE bit in either of Status Register 1 or 2. It does however, mention QE bit is bit 1 of "Configuration Register 1":




Could you confirm the text is correct in the SysCfg help please?

flash_config_S25FL128LAGMFB013.zip

  • Hi Kier,

    Where it says "enableType": "5" is this the QE enable type for protocol 1S-1S-4S?

    Yes, enableType is the field that controls the euad enable bit setting.

    If so, after clicking the 'LOAD FROM JSON" button then selecting 1S-1S-4S, the Quad Enable Type remains at '0'. Why isn't the Enable Type set to '5'?

    This would be an issue in the loader software. Can you please tell me which is the SDK version that you are using? In my case I am seeing a different value.

    AM263 EVMS use a SF25FL128SA flash. For those flashes, the enable type should be 1. Would it be possible for you to test with enableType as 1? 

    Thanks & Regards,

    Aswin

  • Hi Aswin,

    Thank you.

    This would be an issue in the loader software. Can you please tell me which is the SDK version that you are using?

    Yes, I think so too. It is the basis of this newer question: AM263P4-Q1: Setting The QE Bit Using UniFlash Custom Flasher Appears Unsuccessful - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums

    I'm using MCU_PLUS_SDK 11.0.0.19 and SysConfig 1.25.0.

    AM263 EVMS use a SF25FL128SA flash. For those flashes, the enable type should be 1.

    I'm don't think value '1' is strictly correct. The datasheet for SF25FL128SA says '5':

    This is confirmed by the SDFP diagnostic example which also says '5' as shown in the JSON file.

    Fortunately, your flash driver handles '1' and '5' in the same way so '1' appears to work for you.



    Yes, I will be checking the result with value '5' today to see if it resolves the issue, hopefully today.

  • I can confirm that setting the Quad Enable Type to '5' empirically fixes my custom flasher problem. By that I mean it was successful in flashing the Infineon flash device. I can infer then that the WLEN bit is now set permanently.