Skip to content
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

SD-Card isn't working... #65

Open
jojo-gfx opened this issue Feb 12, 2024 · 5 comments
Open

SD-Card isn't working... #65

jojo-gfx opened this issue Feb 12, 2024 · 5 comments

Comments

@jojo-gfx
Copy link

jojo-gfx commented Feb 12, 2024

Has anyone tried out the actual version with SD-Reader?
Have no frequency output on clock signal. It's standing only on 3,2V (have no scope and could be too short impulse because errors) and so also ESP32 don't start really.
If I set SD-card off all other is running normal.

Have seen now on serial console, the ESP is resetting permanently because an error!?

Would be nice the project would be developed also in future, because I don't know such a nice thing with AV output. :(

@jojo-gfx
Copy link
Author

jojo-gfx commented Feb 12, 2024

10:18:00.960 -> Rebooting...
10:18:00.960 -> ets Jul 29 2019 12:21:46
10:18:00.960 ->
10:18:00.960 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
10:18:00.960 -> configsip: 0, SPIWP:0xee
10:18:00.960 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
10:18:00.960 -> mode:DIO, clock div:1
10:18:00.960 -> load:0x3fff0018,len:4
10:18:00.960 -> load:0x3fff001c,len:1100
10:18:00.960 -> load:0x40078000,len:9232
10:18:00.960 -> load:0x40080400,len:6400
10:18:00.960 -> entry 0x400806a8
10:18:01.926 -> Failed to mount SD cardemu_task nofrendo running on core 0 at 240000000Hz
10:18:01.926 -> unpacking /nofrendo/sokoban.nes
10:18:01.926 -> unpacking /nofrendo/chase.nes
10:18:01.926 -> unpacking /nofrendo/tokumaru_raycast.nes
10:18:01.926 -> Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
10:18:01.959 -> Core 0 register dump:
10:18:01.959 -> PC : 0x400d61b7 PS : 0x00060f30 A0 : 0x800d2b43 A1 : 0x3ffd0350
10:18:01.959 -> A2 : 0x3ffc2a24 A3 : 0x3ffc2ad4 A4 : 0x000000a0 A5 : 0x3ffd0618
10:18:01.959 -> A6 : 0x00000010 A7 : 0x00000000 A8 : 0x000000ff A9 : 0x3f4061d4
10:18:01.959 -> A10 : 0x00000008 A11 : 0x000000a0 A12 : 0x00000012 A13 : 0x0000ff00
10:18:01.991 -> A14 : 0x00000010 A15 : 0x3ffd0619 SAR : 0x0000000e EXCCAUSE: 0x0000001c
10:18:01.991 -> EXCVADDR: 0x000000a0 LBEG : 0x400d61b4 LEND : 0x400d61d4 LCOUNT : 0x00000007
10:18:01.991 ->
10:18:01.991 -> Backtrace: 0x400d61b7:0x3ffd0350 0x400d2b40:0x3ffd03f0 0x400d2b92:0x3ffd0410 0x4008ea7d:0x3ffd0430
10:18:01.991 ->
10:18:01.991 -> Rebooting...

@jojo-gfx
Copy link
Author

Ok, this was without an SD-Card.
With SD-Card is the error so:
-> Rebooting...
10:36:55.348 -> E (376) sdmmc_sd: sdmmc_init_spi_crc: sdmmc_send_cmd_crc_on_off returned 0x106

@jojo-gfx
Copy link
Author

jojo-gfx commented Feb 12, 2024

Ok, for all with such problems: Look on the write-protection! It has to be unlocked!

Now the serial output looks better, but still ni Output on AV and this:

0:39:41.438 ->
10:39:41.438 -> rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
10:39:41.438 -> configsip: 0, SPIWP:0xee
10:39:41.438 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
10:39:41.438 -> mode:DIO, clock div:1
10:39:41.438 -> load:0x3fff0018,len:4
10:39:41.438 -> load:0x3fff001c,len:1100
10:39:41.438 -> load:0x40078000,len:9232
10:39:41.438 -> load:0x40080400,len:6400
10:39:41.439 -> csum err:0xe7!=0x07
10:39:41.439 -> ets_main.c 384
10:39:41.750 -> ets Jul 29 2019 12:21:46
10:39:41.750 ->

... and clock still without frequency.

p.s.
I'm using several small SD-Cards for testing, with small partitions (down to 50MB) and FAT16 with short names, but how you can see...

@jojo-gfx
Copy link
Author

Ok, after format a same card per CMD format X: /FS:FAT /Q the following is coming up in console:

11:15:54.991 ->
11:15:54.991 -> rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
11:15:55.065 -> invalid header: 0xffffffff
11:15:55.110 -> invalid header: 0xffffffff
11:15:55.142 -> invalid header: 0xffffffff
11:15:55.188 -> invalid header: 0xffffffff
11:15:55.234 -> invalid header: 0xffffffff
11:15:55.266 -> invalid header: 0xffffffff
11:15:55.312 -> invalid header: 0xffffffff
11:15:55.357 -> ets Jul 29 2019 12:21:46
11:15:55.357 ->

Seems, the card is read, but the format seems to be wrong.

I have to find now a Win XP or so to format it right.
Seems the implementation of filesystem is really unstable. :(

@franciscogimeno2000
Copy link

Hi everyone, first of all, thank you for this great project. One question, has anyone managed to emulate with an SD card? I've tried a lot of things and there's no way, the micro keeps rebooting. Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants