Search found 12 matches

by lotharyx
Wed May 07, 2025 7:49 pm
Forum: General Discussion
Topic: VFS Semihost causes core panic
Replies: 0
Views: 55

VFS Semihost causes core panic

I'm working on a webservice for my embedded project. Using the example provided here , I set up the code to use semihosting while I work on the content.

I'm using the ESP32-C3-MINI-1U dev kit, with a micro-USB connector connected to the D+/D- pins to take advantage of JTAG functionality. I flash ...
by lotharyx
Wed May 07, 2025 3:33 pm
Forum: General Discussion
Topic: FreeRTOS unexpected notifications / notify values
Replies: 5
Views: 199

Re: FreeRTOS unexpected notifications / notify values

*facepalm* And I'm an idiot. A lucky idiot. Sometimes it just takes talking it out to get my head around the right concept. :oops:

There is one place where my code does use a variable to hold the argument sent to xTaskNotify, that I had forgotten about. The intent of that variable is to defer ...
by lotharyx
Wed May 07, 2025 2:41 pm
Forum: General Discussion
Topic: FreeRTOS unexpected notifications / notify values
Replies: 5
Views: 199

Re: FreeRTOS unexpected notifications / notify values

inclined to suspect a bug in ESP's FreeRTOS Unlikely.
I'll readily admit I sometimes write some very bad code, but in this case it's a port of an existing, functional codebase from an STM32 project that does not suffer the same problem. Of course, with heap corruption, seemingly unrelated code can ...
by lotharyx
Tue May 06, 2025 9:30 pm
Forum: General Discussion
Topic: FreeRTOS unexpected notifications / notify values
Replies: 5
Views: 199

FreeRTOS unexpected notifications / notify values

Working with ESP32-C3-MINI-1U.

A communication receive task sits on an xTaskNotifyWait until a wire protocol task notifies it that something has come in on the wire. Various bits get set in the notify value to indicate what has arrived.

More often than not, at application startup, the ...
by lotharyx
Wed Apr 30, 2025 3:40 pm
Forum: ESP-IDF
Topic: -Werror=format= warnings about identical types
Replies: 1
Views: 197

-Werror=format= warnings about identical types

I'm not sure if this is an ESP-IDF thing or a GCC thing, but I sometimes get printf format warnings about congruent types. Most commonly it's long unsigned int vs unsigned int , which are the same size, proven at runtime:

ESP_LOGI("main", "sizeof(unsigned int) = %d", sizeof(unsigned int));
ESP ...
by lotharyx
Tue Apr 29, 2025 8:55 pm
Forum: ESP-IDF
Topic: Freertos task, required large stack for one ESP_LOG printout
Replies: 2
Views: 1392

Re: Freertos task, required large stack for one ESP_LOG printout

Bumping this old thread because the Espressif staff response from Sprite is not helpful.

What is the stack requirement for ESP_LOGx macros? I am also encountering stack overflows caused by the ESP_LOGx calls if the stack is under 2048 (maybe less; I have not tried to determine the exact ...
by lotharyx
Tue Apr 29, 2025 3:59 pm
Forum: ESP-IDF
Topic: Only Flash Changed Partitions
Replies: 1
Views: 135

Only Flash Changed Partitions

I'm developing against ESP32-C3-MINI-1 with Visual Studio Code in Windows 10.

My project involves providing a captive Wi-Fi portal that presents a control interface for a device. This, of course, means my ESP32 project involves httpd and web content.

Following some suggestions I've seen around, I ...
by lotharyx
Tue Apr 29, 2025 3:41 pm
Forum: IDEs for ESP-IDF
Topic: Flash And Monitor ESP32-C3 via USB Serial/JTAG in VSCode in Windows 10
Replies: 1
Views: 1299

[SOLVED] Flash And Monitor ESP32-C3 via USB Serial/JTAG in VSCode in Windows 10

Figured it out. It was definitely the wrong drivers with Zadig.

The correct set is:

USB JTAG/serial debug unit (Interface 0 ) should be USB Serial (CDC) (usbser 1.0.0.0)
USB JTAG/serial debug unit (Interface 2 ) should be WinUSB (v6.1.7600.16385)

With this setup, OpenOCD can find the JTAG adapter ...
by lotharyx
Tue Apr 29, 2025 3:28 pm
Forum: IDEs for ESP-IDF
Topic: Flash And Monitor ESP32-C3 via USB Serial/JTAG in VSCode in Windows 10
Replies: 1
Views: 1299

Flash And Monitor ESP32-C3 via USB Serial/JTAG in VSCode in Windows 10

Hello everyone. I'm working with an ESP32-DevKitM-1 with the C3-MINI-1U module. In order to replicate the final design, I have connected a USB Micro-B connector to the proper pins on the devkit to use the C3's internal USB Serial/JTAG peripheral. I am able to flash via this interface, having ...
by lotharyx
Sat Dec 14, 2019 1:20 am
Forum: ESP-IDF
Topic: Link an external static object archive (.a)
Replies: 3
Views: 6768

Re: Link an external static object archive (.a)

So, after banging my head against it for more hours today, I finally got it working. Here's the magic:

In components/freetype is libfreetype.a and a CMakeLists.txt which only contains this:
idf_component_register()
(yep, no arguments)

In the component that depends on it, this is its CMakeLists ...

Go to advanced search