Skip to content

"Don't have the number of threads in FreeRTOS" and does not stop on main (OCD-1311) #387

@iampi31415

Description

@iampi31415
  • Development Kit: esp32c6-devkit
  • Module or chip used: esp32c6-wroom-1
  • Debug Adapter: jtag
  • OpenOCD version: Open On-Chip Debugger v0.12.0-esp32-20250707
  • Operating System: MacOS
  • Using an IDE ? No
  • OpenOCD command line: openocd -f board/esp32c6-builtin.cfg
  • JTAG Clock Speed: default
  • ESP-IDF version: Does not apply.

Problem Description

I'm flashing this program:

#![no_std]
#![no_main]

// ....

#[main]
fn main() -> ! {
    let config = esp_hal::Config::default().with_cpu_clock(CpuClock::_80MHz);
    let _peripherals = esp_hal::init(config);

    let delay = Delay::new();
    let mut a = 5;
    loop {
        a += 1;
        println!("hi");
        delay.delay_millis(1500);
        println!("{a}");
    }

}

with .gdbinit:

target extended-remote localhost:3333
b main
layout src

and openocd.cfg:

gdb breakpoint_override hard
source [find board/esp32c6-builtin.cfg]

It connects and after c I get:

Don't have the number of threads in FreeRTOS!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions