Hi all!
we are checking the implementation of NXP MX1050 to our product.
on our previous MCU we used single SPI for things like erasing and flashing external chip.
we are trying to do the same with NXP but cant find examples for this on the SDK.
for example - on old MCU, we connected the 5 signals : MISO, MOSI, CS, CLK, GND and send a command request with an "opcode" (0x9F) to read the Jedec ID of the external chip (returns on MISO bus)
is there an example for this kind of operation on the SDK?
the closest we have found is flex_component_nor but it looks like QSPI with 4 data signals and we cant determine the 5 single spi signals (MISO, MOSI, CS, CLK, GND) there like in the lpspi examples (on J24 arduino )
LPSI is enabled and lpspi_btb examples works
Adi from Intel
Yes, you can use both FlexSPI and LPSPI to read JEDEC id from Flash.
There is FlexSPI example in \SDK_2.11.0_EVKB-IMXRT1050\boards\evkbimxrt1050\driver_examples\flexspi\nor\polling_transfer, you need to update this example to enable FlexSPI 1bit SDR mode, then it will only use 2 data lines.
There is not LPSPI example, but you can refer to \SDK_2.11.0_EVKB-IMXRT1050\boards\evkbimxrt1050\bootloader_examples\flashloader. the reference code in spi_nor_eeprom_memory.c, it uses LPSPI to r/w NOR Flash.
Hi and thanks for the answer
Can you help us find the "1bit SDR mode" configuration?
should I replace each occurrence of "kFLEXSPI_Command_SDR" with "kFLEXSPI_Command_MODE1_SDR" ???
and after that, how do we translate these :
into MISO MOSI CS CLK ?
Hi @adi2Intel ,
The LUT table is described in section 27.5.7 in reference manual. After read this section you will know how to modify it according to your design.
In Single mode, flash transmit/receive data on 1 Data pin (DATA0 for transmitting, DATA1 for receiving).
Regards,
Jing