-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flash Memory example only goes to first 16k sector #7
Comments
Hey @SoulCalDan sorry for the delay, is your project public I would like to debug it on my end to try and get to the bottom of it |
I shouldn't have to provide any project files. The json script from the lushaylabs page just stops writing to flash before any entire file is written. The cutoff for that seems to be 16kB. The example only has a handful of characters to display for the OLED screen, so larger amounts of data probably weren't considered for the script. |
After testing it I think it is a synthesis issue and not a flash issue. Like the flash module is not correctly functioning after a certain address. I recompiled it using the new nextpnr himbaechel and it seems to work as expected, I loaded a 120kb file and was able to view It all I am attaching a version of oss-cad-suite that has nextpnr-himbaechel which you can try https://github.com/lushaylabs/oss-cad-suite-build/releases/tag/2024-04-21 I am also attaching a link to the .fs file which you can try and program your tang nano with to verify that the issue is with the synthesis https://drive.google.com/file/d/15P8fNrxFJuP39AhtLW37Ss5n6Jgz9dLv/view?usp=sharing |
Manually running the start.bat seemed to work. However, it took a much longer time to run than expected, around 8 minutes for just a 383kB file on this small 4MB of memory. Using the Visual Studio Code json file like before seems to make the write to flash memory much quicker, but obviously that didn't work (maybe it is returning a false done?) [OSS CAD Suite] openFPGAloader.exe -b tangnano9k --external-flash --verify tiny.bmp |
Using the lushaylabs example below. I believe the flash.lushay.json file to configure the external flash on the Tang Nano 9k only goes to the first 16kB. I have created code to load a 383kB bmp file, but after the first 16kB, values are all FF (the default for the flash chip) so my image is only partially loaded. Is there a way to expand the .json or the openFPGAloader to write to end of file so all bytes are pushed to the flash?
https://learn.lushaylabs.com/tang-nano-9k-reading-the-external-flash/
My .json file loads a 383kB bmp
{
"name": "flash",
"externalFlashFiles": ["test.bmp"]
}
The text was updated successfully, but these errors were encountered: