Thanks for the answer!!
In fact, i saw this video https://www.youtube.com/watch?v=XGTtMYa7IiMand i was able to debug finally.
Search found 18 matches
- Mon Nov 03, 2025 4:07 pm
- Forum: General Discussion
- Topic: Debugging esp32c3 in windows
- Replies: 2
- Views: 2405
- Fri Oct 31, 2025 11:47 am
- Forum: General Discussion
- Topic: Creating ESP32C3 custom panic handler for "ecall" calls
- Replies: 9
- Views: 2486
Re: Creating ESP32C3 custom panic handler for "ecall" calls
Hi again:
Just to inform you (and if someone can help me, is much thanked). There has been changes in panic.c that make this implementation troublesome with write-on-terminal versions.
In other words: My ecall implementation has a case like this
case 5: { // Read int
int number_read = read_int ...
Just to inform you (and if someone can help me, is much thanked). There has been changes in panic.c that make this implementation troublesome with write-on-terminal versions.
In other words: My ecall implementation has a case like this
case 5: { // Read int
int number_read = read_int ...
- Tue Oct 14, 2025 10:44 am
- Forum: General Discussion
- Topic: Debugging esp32c3 in windows
- Replies: 2
- Views: 2405
Debugging esp32c3 in windows
Hi.
I'm trying to seta debugging environment outside Ubuntu, that works really fine.
I tried using Windows, WsL and even docker and i have problems..
1. In Docker, when i try to create a gdbgui environment with monitor output (that's to say, i use idf.py gdbgui monitor), devices go crazy and my ...
I'm trying to seta debugging environment outside Ubuntu, that works really fine.
I tried using Windows, WsL and even docker and i have problems..
1. In Docker, when i try to create a gdbgui environment with monitor output (that's to say, i use idf.py gdbgui monitor), devices go crazy and my ...
- Thu Sep 25, 2025 11:45 am
- Forum: General Discussion
- Topic: ESP32-C3 and GDBGUI: breaks when enters my custom ecall
- Replies: 1
- Views: 1296
Re: ESP32-C3 and GDBGUI: breaks when enters my custom ecall
Hi, i finally solved it.
For instance, if you try to make the CPU wait for longer than 1 seg, it crashes in GDB. For instance, y made a "busy wait"
Here is an example
char read_buffer_char(){
unsigned char c = '\0';
//esp_rom_printf("Value: %c",c);
uart_rx_one_char(&c);
if (c != '\0') {
esp ...
For instance, if you try to make the CPU wait for longer than 1 seg, it crashes in GDB. For instance, y made a "busy wait"
Here is an example
char read_buffer_char(){
unsigned char c = '\0';
//esp_rom_printf("Value: %c",c);
uart_rx_one_char(&c);
if (c != '\0') {
esp ...
- Thu Sep 25, 2025 11:42 am
- Forum: General Discussion
- Topic: ESP32-C3 creaking bare-metal interruptions
- Replies: 2
- Views: 1043
Re: ESP32-C3 creaking bare-metal interruptions
Hi
Thanks for replying
After a certain time trying to follow up the guide, i came up with this code
#include <stdint.h>
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_task_wdt.h"
#define LED_GPIO 2
#define BUTTON_GPIO 4
#define INTERRUPT_MATRIX_BASE ...
Thanks for replying
After a certain time trying to follow up the guide, i came up with this code
#include <stdint.h>
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_task_wdt.h"
#define LED_GPIO 2
#define BUTTON_GPIO 4
#define INTERRUPT_MATRIX_BASE ...
- Wed Sep 17, 2025 11:12 am
- Forum: General Discussion
- Topic: ESP32C3 Trying to light up a led in assembly
- Replies: 1
- Views: 380
ESP32C3 Trying to light up a led in assembly
Hi
I'm learning to use registers in assembly. I made this code assuming TRM chapter 5.3 and some ChatGPT
.section .text
.global app_main
.type app_main, @function
.equ GPIO, 0x60004000
.equ GPIO_OUT_FUNC, 341
.equ IO_MUX_BASE, 0x60000000
.equ IO_MUX_GPIO4_REG, IO_MUX_BASE + 0x0004 + 4*4 ...
I'm learning to use registers in assembly. I made this code assuming TRM chapter 5.3 and some ChatGPT
.section .text
.global app_main
.type app_main, @function
.equ GPIO, 0x60004000
.equ GPIO_OUT_FUNC, 341
.equ IO_MUX_BASE, 0x60000000
.equ IO_MUX_GPIO4_REG, IO_MUX_BASE + 0x0004 + 4*4 ...
- Tue Sep 16, 2025 7:34 am
- Forum: General Discussion
- Topic: ESP32-C3 and GDBGUI: breaks when enters my custom ecall
- Replies: 1
- Views: 1296
ESP32-C3 and GDBGUI: breaks when enters my custom ecall
Hi
As you can see in my profile, i'm trying to add a debug program in a board with a custom panic handler
Some of this entries make the CPU wait. For example this one
int read_int(){
unsigned char c;
char buffer[16];
int idx = 0;
while(1){
//while (!uart_rx_one_char(uart_no, &c)) { }
c ...
As you can see in my profile, i'm trying to add a debug program in a board with a custom panic handler
Some of this entries make the CPU wait. For example this one
int read_int(){
unsigned char c;
char buffer[16];
int idx = 0;
while(1){
//while (!uart_rx_one_char(uart_no, &c)) { }
c ...
- Mon Sep 15, 2025 6:57 am
- Forum: ESP-IDF
- Topic: ESP32-C3 resets and shows 'gdb_exception_error'
- Replies: 4
- Views: 950
Re: ESP32-C3 resets and shows 'gdb_exception_error'
Hi
I found a more elegant way to solve this modifying openocd
I just really copy the board/esp32c3-builtin.cfg in my proyect (called openocdscript.cfg) and added a reset
## Source the JTAG interface configuration file
source [find interface/esp_usb_jtag.cfg]
# Source the ESP32-C3 configuration ...
I found a more elegant way to solve this modifying openocd
I just really copy the board/esp32c3-builtin.cfg in my proyect (called openocdscript.cfg) and added a reset
## Source the JTAG interface configuration file
source [find interface/esp_usb_jtag.cfg]
# Source the ESP32-C3 configuration ...
- Mon Sep 08, 2025 9:10 am
- Forum: General Discussion
- Topic: ESP32-C3 creaking bare-metal interruptions
- Replies: 2
- Views: 1043
ESP32-C3 creaking bare-metal interruptions
Hi
I would like to learn how can i attach interrupts in my ESP32-C3 (for example, light a led when i press a button) using bare-metal assembly in an ESP-IDF environment
I saw there is this man some years ago asking the same question: https://forum.allaboutcircuits.com/threads/gpio-interrupt-in-esp32 ...
I would like to learn how can i attach interrupts in my ESP32-C3 (for example, light a led when i press a button) using bare-metal assembly in an ESP-IDF environment
I saw there is this man some years ago asking the same question: https://forum.allaboutcircuits.com/threads/gpio-interrupt-in-esp32 ...
- Mon Sep 08, 2025 8:54 am
- Forum: General Discussion
- Topic: Creating ESP32C3 custom panic handler for "ecall" calls
- Replies: 9
- Views: 2486
Re: Creating ESP32C3 custom panic handler for "ecall" calls
Hi
Two moths after i saw the error. I'm boo boo the fool.
In the outside CMakeList file, you chould add this:
# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH ...
Two moths after i saw the error. I'm boo boo the fool.
In the outside CMakeList file, you chould add this:
# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH ...