GOWIN GW1NSR-LV4CQN48P (Tang Nano 4K) - user flash - Page 1
Forum section: electronics / general

author: up8051
author_rank: Frequent Contributor
timestamp: October 09, 2022, 02:39:58 pm
content: Hi,I would like to use "User Flash" in my project.I am not using the built-in Cortex M3 so the flash memory should be available for normal use.But in IP Generator this option is grayed.How to solve this problem?BR JarekC

author: mon2
author_rank: Frequent Contributor
timestamp: October 10, 2022, 09:45:10 am
content: I believe the tool chain is a bit buggy as have seen quirks with the HyperRam IP.Try a fresh project with this target and check if the USER FLASH is available or not.

author: up8051
author_rank: Frequent Contributor
timestamp: October 10, 2022, 12:25:08 pm
content: I made new clean project, but without change.

author: mon2
author_rank: Frequent Contributor
timestamp: October 10, 2022, 01:05:13 pm
content: This target has the hard MCU so very little overhead to enable the cpu. The cpu appears to be required to use the user flash. Can you enable the hard cpu and test if the user flash is then enabled in the IP generator?This is what I am concluding from the ipug901e guide. Each example shows that the CPU is enabled.

author: up8051
author_rank: Frequent Contributor
timestamp: October 10, 2022, 01:54:06 pm
content: Adding Hard CM3 core don't change state o User Flash IP.

author: mc68000
author_rank: Contributor
timestamp: October 10, 2022, 11:48:38 pm
content: The device you chosen is the one with Cortex-M3. The one without should be something like GW1NSR-LV4QN48P. The "C" ,I believe, means with M3. But that one is what Tang Nano 4K has "C". You may generate bitstream but can not program it to Tang Nano 4K.

author: mon2
author_rank: Frequent Contributor
timestamp: October 11, 2022, 11:00:36 am
content: Which licence is active for your toolchain?Is it the full version or the EDU version?

author: up8051
author_rank: Frequent Contributor
timestamp: October 11, 2022, 11:07:23 am
content: Full version 1.9.8 (build 54687) and 1.9.8.01 (build 55895)

author: up8051
author_rank: Frequent Contributor
timestamp: October 11, 2022, 11:50:49 am
content: In the document" Gowin Flash Controller Reference Design Release Note RN901-1.5E,11/09/2020" I found this information:Supported devices:- GW1N-2- GW1NZ-2- GW1NS-2- GW1NSR-2- GW1N-4- GW1N-4B- GW1N-4C- GW1NS-4- GW1NSR-4- GW1NR-4- GW1NR-4B- GW1NR-4C- GW1NRF-4B- GW1N-9- GW1N-9C- GW1NR-9- GW1NR-9CLooks there no GW1NSR-4C.

author: mon2
author_rank: Frequent Contributor
timestamp: October 11, 2022, 02:47:46 pm
content: In the following document:http://cdn.gowinsemi.com.cn/UG295E.pdfThe user flash IS supported inside the GW1NSR-4C.From a quick but random other targets, the USER FLASH IP is present under HARD IP.Can only assume that this is work in progress and will end up with a 'silent fix' in the future? We did report our findings with the HyperFlash issues and the factory has been silent. Not great to waste our time to learn from buggy IP. Somehow we are supposed to learn how to fix these bugs and deploy into high volume products so that the factory can support our account. Where do I sign up?History keeps on repeating, just like Lattice, Silabs (6 years later - they are now reviewing the C2D bugs we raised in the Silabs docs), Dialog Semiconductor, Efinix, etc., etc.

author: up8051
author_rank: Frequent Contributor
timestamp: October 11, 2022, 05:28:29 pm
content: I tried to use UserFlash IP imported from GW1N-LV4 and got this error:ERROR (PA2090) : 'FLASH256K'(flash_inst) must be used with 'EMCU' for current device

author: mc68000
author_rank: Contributor
timestamp: October 11, 2022, 06:34:21 pm
content: I believe it means the Flash can only be used with MCU as MCU's storage. Can not be accessed from FPGA fabric. If you change to another device, it may pass.

author: up8051
author_rank: Frequent Contributor
timestamp: October 12, 2022, 09:18:25 am
content: Information from Gowin FAE:If you have the GW1NSR-LV4C with ARM hardcore the User Flash is reserved for the processor and cannot be accessed by the User.so the only solution is to use external EEPROM / Flash.

author: mon2
author_rank: Frequent Contributor
timestamp: October 12, 2022, 10:41:24 am
content: They should then update their documents to be accurate to reflect the same information.