SD card 0x107 errors after Aug22 commit 0532d37

perryc
Posts: 18
Joined: Fri Feb 17, 2017 1:29 am

SD card 0x107 errors after Aug22 commit 0532d37

Postby perryc » Mon Sep 04, 2017 1:14 pm

Something's up with SD card support for commits later than 0532d37. sd_card example program gives 0x107 errors - 0532d37 and all prev. builds we've tried going back to last year have been working.

And also does esp-idf 3.0 change esp_event_loop_init() ? Not getting events to our event handler.

kearins
Posts: 19
Joined: Sun Jul 23, 2017 11:48 pm

Re: SD card 0x107 errors after Aug22 commit 0532d37

Postby kearins » Sat Sep 09, 2017 7:12 pm

I've tried commit 050ae50 (07 sep 2017), sd card works in 4-line mode with fat filesystem at high speed:

Code: Select all

I (178) MAIN: Initializing SD card
I (178) MAIN: Using SDMMC peripheral
I (3185) MAIN: host.slot=1 host.max_freq_khz=50000
I (3185) MAIN: Mounting FAT...
I (3247) MAIN: esp_vfs_fat_sdmmc_mount() ret=0
Name: RUNSD
Type: SDHC/SDXC
Speed: high speed
Size: 30672MB
CSD: ver=1, sector_size=512, capacity=62816256 read_bl_len=9
SCR: sd_spec=2, bus_width=5
I (3253) MAIN: card->csd.tr_speed=50000000
I (3257) MAIN: Opening file
I (6368) MAIN: (  0) File written in 3107ms, bytesWritten=10485760 (10.00Mb) cntWrites=640
I (9347) MAIN: (  1) File written in 2978ms, bytesWritten=10485760 (10.00Mb) cntWrites=640
I (12630) MAIN: (  2) File written in 3283ms, bytesWritten=10485760 (10.00Mb) cntWrites=640
I (15412) MAIN: (  3) File written in 2782ms, bytesWritten=10485760 (10.00Mb) cntWrites=640
I (18676) MAIN: (  4) File written in 3264ms, bytesWritten=10485760 (10.00Mb) cntWrites=640
I (21967) MAIN: (  5) File written in 3291ms, bytesWritten=10485760 (10.00Mb) cntWrites=640
I (24726) MAIN: (  6) File written in 2759ms, bytesWritten=10485760 (10.00Mb) cntWrites=640
I (28000) MAIN: (  7) File written in 3274ms, bytesWritten=10485760 (10.00Mb) cntWrites=640
I (31049) MAIN: (  8) File written in 3049ms, bytesWritten=10485760 (10.00Mb) cntWrites=640
I (34052) MAIN: (  9) File written in 3002ms, bytesWritten=10485760 (10.00Mb) cntWrites=640
I (37333) MAIN: ( 10) File written in 3279ms, bytesWritten=10485760 (10.00Mb) cntWrites=640

perryc
Posts: 18
Joined: Fri Feb 17, 2017 1:29 am

Re: SD card 0x107 errors after Aug22 commit 0532d37

Postby perryc » Thu Sep 14, 2017 12:27 am

Thanks for the reply - Yes Sept 4 SD related commits seem to have fixed our 4 wire SD card mount issues. Or at least the sept 13 head works and sept 3 was broken.

Perry

temp4eb
Posts: 32
Joined: Tue Jun 06, 2017 8:59 am

Re: SD card 0x107 errors after Aug22 commit 0532d37

Postby temp4eb » Mon Sep 25, 2017 3:21 am

I got the same issue with the latest code on github, the same example code (sd_card_example_main.c)worked fine with the older version idf:

Code: Select all

I (0) cpu_start: App cpu up.
I (615) heap_init: Initializing. RAM available for dynamic allocation:
I (635) heap_init: At 3FFAE2A0 len 00001D60 (7 KiB): DRAM
I (654) heap_init: At 3FFB2AC8 len 0002D538 (181 KiB): DRAM
I (673) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (692) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (712) heap_init: At 40088778 len 00017888 (94 KiB): IRAM
I (731) cpu_start: Pro cpu start user code
I (792) cpu_start: Starting scheduler on PRO CPU.
I (196) cpu_start: Starting scheduler on APP CPU.
I (196) example: Initializing SD card
I (196) example: Using SDMMC peripheral
E (236) sdmmc_req: handle_idle_state_events unhandled: 00000004 00000000
E (236) sdmmc_cmd: sdmmc_card_init: send_op_cond (1) returned 0x107
E (236) example: Failed to initialize the card (263). Make sure SD card lines ha
ve pull-up resistors in place.

The hardware is ESP32 WROVER V3 Kit.
With the latest idf,the card could be initialized OK with:
Change the mode to USE_SPI_MODE
Or use a low speed card such as class 4.
Could someone help us to fix the issue?Thanx!
Last edited by temp4eb on Mon Sep 25, 2017 4:09 am, edited 1 time in total.

temp4eb
Posts: 32
Joined: Tue Jun 06, 2017 8:59 am

Re: SD card 0x107 errors after Aug22 commit 0532d37

Postby temp4eb » Mon Sep 25, 2017 3:31 am

Code: Select all

commit 3924594aed7f44a09b6137479ca1ca18d138c310 (HEAD -> master, origin/master, origin/HEAD)
Merge: e9655c5d 0db01b4a
Author: Ivan Grokhotkov <ivan@espressif.com>
Date:   Mon Sep 18 19:32:39 2017 +0800

    Merge branch 'feature/toolchain-update' into 'master'

    make,docs: update toolchain

    See merge request !1269

commit e9655c5d901fd1d8093d2a5eb52e2145c6153b38
Merge: 3154168e 388bf8d5
Author: Jiang Jiang Jian <jack@espressif.com>
Date:   Mon Sep 18 18:17:11 2017 +0800

    Merge branch 'feature/btdm_cherry_pick_ble_new_api' into 'master'

    Feature/btdm cherry pick ble new api

    See merge request !1113

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests