AMB82-Mini SPI-NAND instead of SPI-NOR

Hi @Pammy

I replaced the SPI-NOR flash chip with a SPI-NAND flash chip

Gigadevice GD5F1GQ4Uxxx, which is listed in the FreeRTOS SDK at

component/mbed/hal_ext/snand_api.h

I used the documented command, but it fails and shows “flash : NOR” :

C:\tools\Pro2_PG_tool _v1.4.3>uartfwburn.exe -p COM13 -b 2000000 -f flash_ntz—httpd.bin -n pro2
Baudrate : 115200
flash : NOR
COM13 opened
Baudrate : 115200
ping ok
Baudrate : 2000000
ucfg ok
download to offset 0x0
masked area [0x0, 0x0]
dowload 0, [0x0, 0x4c7000]
fail for download 0
download fail

Questions:

  1. Is SPI-NAND supported by the current FreeRTOS SDK ?
  2. Are there some hardware modifications (Bootstrap pins, …) needed to make SPI-NAND work ?
  3. Is there a special build command to build SPI-NAND images, or are the flash_ntz.bin images universal for both NOR and NAND ?

Thanks

CC

Hi @iot,

Flash layout

The FreeRTOS SDK supports SPI NAND flash, so no hardware modification is required.

The message flash : NOR suggests that the flashing tool is detecting NOR flash mode and is not recognizing the NAND flash chip.

Could you try this nand_flash example?

To run the example, copy the contents of this main.c file to:

project/realtek_amebapro2_v0_example/src/main.c

Then rebuild the project and try flashing it to the board.

Do let me know whether you are able to flash the image successfully.

The command I used was: .\uartfwburn.exe -p COM5 -f flash_ntz.bin -b 3000000 -n pro2

If the NAND flash is still not detected, you may also check the chip soldering and hardware connections.

Hi I use gigadevice too. Tried the recommendation from the office web, GD5F1GQ5UE | SPI NAND Flash | On-chip ECC, QSPI Interface, Automotive Grade | GigaDevice
This NAND flash works for me. GD5F1GQ5UE