dangiu / PicoMemcard

Emulating PSX Memory Card (or controller) using a Raspberry Pi Pico
GNU General Public License v3.0
529 stars 38 forks source link

Display the specific FS error using LED blink codes #11

Closed prochazkaml closed 1 year ago

prochazkaml commented 1 year ago

My Pico just kept blinking no matter what (tried flashing different firmware versions, erasing the "built-in" memory card file & replacing it with an empty one several times) and I wanted to know why it was failing, so I implemented simple blink error codes:

1 flash = FS mount error 2 flashes = File open error 3 flashes = File read error

Turns out my Pico is failing with 3 flashes, so it cannot read the file properly, meaning the file on the internal FS is smaller than expected. Not sure why that is happening, as the file I uploaded is exactly 131072 bytes (I used the empty memory card example which is provided in this repo).

I figured it might be useful to others for diagnosing such issues.

dangiu commented 1 year ago

Good idea! I would ask you to change 2 things:

prochazkaml commented 1 year ago

Thank you!

In order to switch the base branch, do I have to create a new pull request, or is it changeable somewhere? (I can see that I can change the destination branch on your repo, but I cannot change the source branch from my repo...)

prochazkaml commented 1 year ago

Okay, well that appeared to break everything. Should I just start over and submit a new pull request directly from my development branch?

dangiu commented 1 year ago

Ok. Create a new branch from development named something like "feature/LED-status" with the proposed changes, then ask to merge it into development :)

prochazkaml commented 1 year ago

Alright, thank you! 👍