Search found 846 matches

by ESP_igrr
Sat Nov 18, 2017 2:04 pm
Forum: General Discussion
Topic: some error about esp32 for sd driver
Replies: 1
Views: 18

Re: some error about esp32 for sd driver

According to the log, you do something about GPIO4 pin (reconfigure it as input) after SD card is initialized.
This is an SD card pin, and changing its configuration causes SD card to fail.
by ESP_igrr
Tue Oct 31, 2017 12:44 am
Forum: ESP32 SDK
Topic: Confusing Heap availability in ESP-IDF (dual-core, freertos, no Bluetooth, no wifi)
Replies: 2
Views: 95

Re: Confusing Heap availability in ESP-IDF (dual-core, freertos, no Bluetooth, no wifi)

The buffer in you example is allocated statically, not on the heap. You can get heap memory at run-time, by calling 'malloc'. The maximum size of static data is limited to approximately 160kB, because at that offset from the beginning of DRAM memory space there is a region used by startup code as st...
by ESP_igrr
Mon Oct 30, 2017 11:23 am
Forum: General Discussion
Topic: retarget printf?
Replies: 1
Views: 90

Re: retarget printf?

The official solution should be to implement a custom VFS driver, similar to vfs_uart.c . You can then register your driver with VFS (e.g. /dev/my_uart) and do freopen("/dev/my_uart/1", "w", stdout); Another option, which may require smaller amount of code, but needs access to ne...
by ESP_igrr
Sun Oct 29, 2017 9:53 pm
Forum: Report Bugs
Topic: assertion "unsent_oversize mismatch (pcb->unsent is NULL)" failed:
Replies: 2
Views: 98

Re: assertion "unsent_oversize mismatch (pcb->unsent is NULL)" failed:

tcp_write can only be called from LwIPs own task, as raw API is not thread-safe.
Calling raw API from the application used to work with ESP8266 non-OS SDK, which was single threaded. But FreeRTOS is not.
by ESP_igrr
Sun Oct 29, 2017 6:34 am
Forum: ESP32 SDK
Topic: printf() requires a \n for output?
Replies: 2
Views: 126

Re: printf() requires a \n for output?

By default, output streams have line buffering enabled. You can configure buffering for any particular stream using setvbuf function. More info: http://en.cppreference.com/w/c/io/setvbuf https://github.com/espressif/newlib-esp32/blob/master/newlib/libc/stdio/setvbuf.c#L20 For example, setvbuf(stdout...
by ESP_igrr
Sun Oct 29, 2017 6:24 am
Forum: General Discussion
Topic: Flashing over JTAG with TIAO multi function adapter
Replies: 11
Views: 453

Re: Flashing over JTAG with TIAO multi function adapter

Perhaps you could try lowering the JTAG clock frequency? 20MHz is okay for dev boards with integrated JTAG adapter, but may not work if you have long wiring. Not sure that is the case here, just something to try.
by ESP_igrr
Wed Oct 25, 2017 6:34 am
Forum: ESP32 SDK
Topic: rtc_clk_cpu_freq_set() lockups
Replies: 20
Views: 678

Re: rtc_clk_cpu_freq_set() lockups

Ok, i think it will still be good enough to show presence/absence of clock signal. Could you please add the following at the start of esp_clk_init function ($IDF_PATH/components/esp32/clk.c): const int sig_num = 8; PIN_FUNC_SELECT(PERIPHS_IO_MUX_GPIO0_U, FUNC_GPIO0_CLK_OUT1); REG_WRITE(PIN_CTRL, sig...
by ESP_igrr
Wed Oct 25, 2017 1:52 am
Forum: ESP32 SDK
Topic: rtc_clk_cpu_freq_set() lockups
Replies: 20
Views: 678

Re: rtc_clk_cpu_freq_set() lockups

Do you happen to have a scope which can display 80/160/320 MHz signal? Or a frequency meter? We can pull out these clocks to a pad and check whether PLL is working or not.
by ESP_igrr
Mon Oct 23, 2017 3:48 am
Forum: General Discussion
Topic: wifi connectivity after exiting light sleep mode (timer based)
Replies: 4
Views: 181

Re: wifi connectivity after exiting light sleep mode (timer based)

You should disconnect from WiFi before entering light sleep mode (call esp_wifi_stop) and then connect again after exiting light sleep (esp_wifi_start / esp_wifi_connect).
by ESP_igrr
Sun Oct 22, 2017 6:25 am
Forum: ESP32 SDK
Topic: Is it possible to log the time between deep sleep wake up stubs function calls?
Replies: 6
Views: 379

Re: Is it possible to log the time between deep sleep wake up stubs function calls?

Okay, i understand now. What you need is to go back to deep sleep for certain amount of time (0.5s), while still being able to wake up from deep sleep using EXT0 wakeup. To wake up after some time, you can do something like // get current time SET_PERI_REG_MASK(RTC_CNTL_TIME_UPDATE_REG, RTC_CNTL_TIM...

Go to advanced search