Author Topic: TANG Nano 9K - non working external Flash memory (P25Q32SH)  (Read 1264 times)

0 Members and 1 Guest are viewing this topic.

Offline up8051Topic starter

  • Frequent Contributor
  • **
  • Posts: 314
  • Country: pl
TANG Nano 9K - non working external Flash memory (P25Q32SH)
« on: February 17, 2023, 05:11:31 pm »
I have a problem with external FLASH memory (P25Q32SH) but only on newly purchased boards.
 I have two boards bought about a year ago and everything works fine on them.
On the new ones bought about 2 months ago, access to the external FLASH memory does not work.
I checked the physical connection between FPGA and FLASH and it is correct.
Also the GOWIN programmer, when trying to program using the "exFlash Erase, Program thru GAO-Bridge" option, reports the error: spi flash not found.
Have you encountered such a problem.
Is it possible that there are faulty memories on the boards?
Fake Tang Nano boards?
« Last Edit: February 17, 2023, 06:08:19 pm by up8051 »
 

Offline pcprogrammer

  • Super Contributor
  • ***
  • Posts: 4734
  • Country: nl
Re: TANG Nano 9K - non working external Flash memory (P25Q32SH)
« Reply #1 on: February 17, 2023, 05:27:14 pm »
You could remove them from the boards and test them with a dedicated programmer. That way you can check if they are fake, but in that case I would worry more about the Gowin chip being fake.

Offline up8051Topic starter

  • Frequent Contributor
  • **
  • Posts: 314
  • Country: pl
Re: TANG Nano 9K - non working external Flash memory (P25Q32SH)
« Reply #2 on: February 17, 2023, 05:31:07 pm »
Everything else (HDMI, FPGA, LEDS, oscillator) on the board works.
 

Offline up8051Topic starter

  • Frequent Contributor
  • **
  • Posts: 314
  • Country: pl
Re: TANG Nano 9K - non working external Flash memory (P25Q32SH)
« Reply #3 on: February 17, 2023, 05:55:01 pm »
Additional information, on the old board the memory is marked P25Q32H and on the new one P25Q32SH.
But I couldn't find a difference in the datasheets
 

Offline up8051Topic starter

  • Frequent Contributor
  • **
  • Posts: 314
  • Country: pl
Re: TANG Nano 9K - non working external Flash memory (P25Q32SH)
« Reply #4 on: February 20, 2023, 10:41:52 am »
Looks like I found a solution, but I still don't know why it works.
The new TangNano 9K modules are shipped from the manufacturer with a "PicoTiny" example (RISC-V pico SOC) pre-installed. The system sets the default SPI Flash mode to "DSPI+CRM" (I don't know what CRM means)
If I switch to the "single SPI" mode (S command from the terminal) and then upload my program, it works correctly.
If I delete the bistream and upload my program without changing the SPI mode first, the system does not see the P25Q32 memory
But the P25Q32 memory should always respond to commands in Single SPI mode.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf