tvlad1234 / pico-rv32ima

Running Linux on RP2040 with the help of RISC-V emulation
Other
243 stars 20 forks source link

Write error at address 3072 #13

Closed ElectroBoy404NotFound closed 1 year ago

ElectroBoy404NotFound commented 1 year ago

Hi there, I tried to use this program, an old commit of the program that used SD-RAM instead of PS-RAM. But it is giving this error. How to fix it? I dont have any PS-RAM available in my area.

tvlad1234 commented 1 year ago

Hi!

The read and write errors occur when communication between the Pico and SD card is unstable. Try to keep your wires as short as possible, and avoid using breadboards when connecting the SD card.

I do not recommend using the older SD commits. They were very unstable and it's very likely the SD card will be damaged, the resulting system didn't even boot completely. The only way to make this system work is by using PSRAM. I got mine from Aliexpress, from this seller: https://www.aliexpress.com/item/4000164056594.html

tvlad1234 commented 1 year ago

Also, make sure your card is formatted as FAT or exFAT, with a block size from 1024 to 2048 bytes.

ElectroBoy404NotFound commented 1 year ago

Also, make sure your card is formatted as FAT or exFAT, with a block size from 1024 to 2048 bytes.

Hi, My SD card only supportes block size of 4k and i cant format it as FAT; only as FAT32

tvlad1234 commented 1 year ago

Yes, FAT32, sorry. Try formatting as exFAT.

ElectroBoy404NotFound commented 1 year ago

Yes, FAT32, sorry. Try formatting as exFAT.

Hmm ok

tvlad1234 commented 1 year ago

As mentioned, keep wiring as short as possible, and avoid breadboards.

ElectroBoy404NotFound commented 1 year ago

As mentioned, keep wiring as short as possible, and avoid breadboards.

The wiring is around 5cm. Also, how to format as exFAT on windows 11?

tvlad1234 commented 1 year ago

Open the format dialog, and select the format to be exFAT

ElectroBoy404NotFound commented 1 year ago

Still same error

ElectroBoy404NotFound commented 1 year ago

image

tvlad1234 commented 1 year ago

I am sorry, that is definitely not my program running.

ElectroBoy404NotFound commented 1 year ago

I am sorry, that is definitely not my program running.

It uses the same program.

tvlad1234 commented 1 year ago

It might use the same emulator core, but it is not the project contained in this repo. I cannot help with troubleshooting further, as I don't know the specifics of that implementation

ElectroBoy404NotFound commented 1 year ago

I mean, it uses the same SD-RAM implementation (copy-paste of it)

tvlad1234 commented 1 year ago

I don't know how it operates beyond the RAM implementation. There may be a multitude of reasons for it failing, especially if it does at the same address.

tvlad1234 commented 1 year ago

As mentioned many times already, the only way to make this project work properly is to use PSRAM (or some other form of real RAM, with a compatible interface), this was the primary reason why I scrapped the SD card emulation thing.

ElectroBoy404NotFound commented 1 year ago

I don't know how it operates beyond the RAM implementation. There may be a multitude of reasons for it failing, especially if it does at the same address.

Well, it alwats failes at the same address.

tvlad1234 commented 1 year ago

Try using one of my earlier commits (as-is, without any modifications).