Search found 24 matches

by ukrsms
Mon Sep 20, 2021 10:54 am
Forum: ESP-IDF
Topic: Monitor stop working upon esp32c3 panics
Replies: 1
Views: 2050

Re: Monitor panics upon esp32c3

After some investigations, I managed to workaround the problem. First, I found that the monitor stops working within the function self.process_panic_output(self._panic_buffer) (idf_monitor.py), so I just commented it as I do not need gdb_panic_server to start. #self.process_panic_output(self._panic_...
by ukrsms
Mon Sep 20, 2021 9:36 am
Forum: ESP-IDF
Topic: Monitor stop working upon esp32c3 panics
Replies: 1
Views: 2050

Monitor stop working upon esp32c3 panics

Earlier I used esp32 and I often used idf.py monitor to define the cause of crashes. However, with esp32c3 it seems impossible as the Monitor crashed itself upon register dump printing. For example, when my esp32c3 crashes it prints the following to serial port: abort() was called at PC 0x42125df9 o...
by ukrsms
Fri Aug 06, 2021 12:14 pm
Forum: Hardware
Topic: I2C doesn't work properly if reconfigure the gpios used
Replies: 5
Views: 5931

Re: I2C doesn't work properly if reconfigure the gpios used

Thank you, boarchuz, your answer really help me. Currently, I can access both I2C chips correctly!
Now, I am wondering why Espressif didn't consider disconnecting the previously used Gpios upon the new pair of gpio assigning?
by ukrsms
Fri Aug 06, 2021 11:22 am
Forum: Hardware
Topic: I2C doesn't work properly if reconfigure the gpios used
Replies: 5
Views: 5931

I2C doesn't work properly if reconfigure the gpios used

I am trying to communicate with two devices having the same I2C address, so I connected them to different gpio pairs (18,19 and 22,23). In my code, I start the driver (i2c_driver_install), configure it (i2c_param_config) with the first pair of gpios and write 5 bytes to the bus (to the first chip). ...
by ukrsms
Fri Oct 02, 2020 10:46 am
Forum: ESP-IDF
Topic: Sample code crashes upon BLE and WIFI enabled
Replies: 2
Views: 4123

Re: Sample code crashes upon BLE and WIFI enabled

@PeterR, do you mean it may be necessary to increase tasks stack size if stack overflows? By dumping tasks heaps I get Task name Time spent StackHighWaterMark main 3239354 6364 IDLE0 631724392 1012 Net 49639 2740 tiT 1172789 3304 Tmr Svc 98 1584 BTC_TASK 23726 2872 sys_evt 7911 2816 wifi 50635043 11...
by ukrsms
Thu Oct 01, 2020 2:24 pm
Forum: ESP-IDF
Topic: Sample code crashes upon BLE and WIFI enabled
Replies: 2
Views: 4123

Sample code crashes upon BLE and WIFI enabled

First I faced the problem in my custom firmware and later I reproduced it in a simple example code. In the code below I just merge two examples: examples\bluetooth\bluedroid\ble\ble_spp_server\ and examples\wifi\getting_started\station\ into one file. The resulted code is as following: /* This examp...
by ukrsms
Thu Jul 30, 2020 10:12 am
Forum: ESP-IDF
Topic: How to implement custom bootloader
Replies: 2
Views: 5219

Re: How to implement custom bootloader

Thank you, it really helped to solve the issue!
by ukrsms
Tue Jul 28, 2020 3:57 pm
Forum: ESP-IDF
Topic: How to implement custom bootloader
Replies: 2
Views: 5219

How to implement custom bootloader

I'd like to override the original bootloader to extend its functions. Guided by the description from https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/bootloader.html I copied the folder /esp-idf/components/bootloader to /my_project/components/bootloader. The page said one shoul...
by ukrsms
Wed Jul 15, 2020 3:33 pm
Forum: ESP-IDF
Topic: printf crashes within critical section
Replies: 5
Views: 7277

Re: printf crashes within critical section

@esp_angus, thank you for the explanation. Can you fill us in on the big picture of what this critical section is protecting? I use the critical section as an alternative for mutex in order to decrease overhead. In the case described I use it inside a function that read ADC value which additionally ...
by ukrsms
Tue Jul 14, 2020 8:49 am
Forum: ESP-IDF
Topic: printf crashes within critical section
Replies: 5
Views: 7277

Re: printf crashes within critical section

Thank you, ets_printf() is the function I usually use to avoid problems within a critical section but is not convenient each time to predict whether the current procedure will or not be used within a critical section. I was hoping some more convenient practice exists. Nevertheless, is it possible to...