Search found 235 matches

by zazas321
Fri Aug 08, 2025 12:25 pm
Forum: General Discussion
Topic: Understanding USB versus UART on ESP32-S3
Replies: 7
Views: 2386

Re: Understanding USB versus UART on ESP32-S3



I want my device to appear as Universal Serial Bus controller and I want to be able to communicate with it via my custom PC application not via COM port.

I think here may happen some complication. Apparently you want simple serial communication but don't want the device to appear as a COM port ...
by zazas321
Fri Aug 08, 2025 9:41 am
Forum: General Discussion
Topic: Understanding USB versus UART on ESP32-S3
Replies: 7
Views: 2386

Re: Understanding USB versus UART on ESP32-S3

Ok it turns out that when using https://github.com/espressif/esp-idf/tree/v5.5/examples/peripherals/usb/device/tusb_serial_device
example, the device appears both on Ports as USB Serial device and also appears as USB Composite Device in Universal Serial Bus controllers in device manager.

Few ...
by zazas321
Fri Aug 08, 2025 8:39 am
Forum: General Discussion
Topic: Understanding USB versus UART on ESP32-S3
Replies: 7
Views: 2386

Re: Understanding USB versus UART on ESP32-S3



4. Are there any ESP32-S3 examples where I could test USB and not USB Serial implementation if that even makes sense?


Sure: https://github.com/espressif/esp-idf/tree/master/examples/peripherals/usb/device


I see all those examples and none of them seem to be what I am looking for hence I ...
by zazas321
Fri Aug 08, 2025 6:23 am
Forum: General Discussion
Topic: Understanding USB versus UART on ESP32-S3
Replies: 7
Views: 2386

Understanding USB versus UART on ESP32-S3

Hello. I have been into MCU'S and programming for a while now, but never really used USB much. I have finally picked up a few ESP32-S3 Development boards and decided to try USB. The example I am currently running:
https://github.com/espressif/esp-idf/tree/v5.5/examples/peripherals/usb/device/tusb ...
by zazas321
Tue Mar 26, 2024 5:32 am
Forum: General Discussion
Topic: Make the type of this parameter a pointer-to-const warning when declaring a FreeRTOS task
Replies: 12
Views: 7181

Re: Make the type of this parameter a pointer-to-const warning when declaring a FreeRTOS task

Thanks for all the suggestions.

I will also make a post to sonar community regarding this, perhaps they can shed some light as this seems to be false warning in this particular case.

As have been suggested, a correct way to declare a task is as following:



static void HELLO_TASK(void *param ...
by zazas321
Mon Mar 25, 2024 3:38 pm
Forum: General Discussion
Topic: Make the type of this parameter a pointer-to-const warning when declaring a FreeRTOS task
Replies: 12
Views: 7181

Re: Make the type of this parameter a pointer-to-const warning when declaring a FreeRTOS task

@mbratch

It is a simple static declaration of a freertos task function in my main.c. The full code is as following (my main.c):




#include <stdio.h>
#include <inttypes.h>
#include "sdkconfig.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_chip_info.h"
#include "esp ...
by zazas321
Mon Mar 25, 2024 1:37 pm
Forum: General Discussion
Topic: Make the type of this parameter a pointer-to-const warning when declaring a FreeRTOS task
Replies: 12
Views: 7181

Re: Make the type of this parameter a pointer-to-const warning when declaring a FreeRTOS task


FreeRTOS has a macro with casting built in, `pdMS_TO_TICKS`. I use this all the time instead of literally putting the conversion in as `1000/period_in_ms`. So I would write:

vTaskDelay(pdMS_TO_TICKS(portTICK_PERIOD_MS));

Have you tried that and does it get rid of the warning?
The only caveat ...
by zazas321
Mon Mar 25, 2024 1:36 pm
Forum: General Discussion
Topic: Make the type of this parameter a pointer-to-const warning when declaring a FreeRTOS task
Replies: 12
Views: 7181

Re: Make the type of this parameter a pointer-to-const warning when declaring a FreeRTOS task

It is still not clear to me how can I avoid this warning.

I have tried to declare my task with const void* param as shown below:


static void HELLO_TASK(const void *param)
{
UNUSED(param);
for (;;)
{
printf("This is normal message1 without ANSI color code \n");
vTaskDelay(1000 / portTICK ...
by zazas321
Fri Mar 22, 2024 1:24 pm
Forum: General Discussion
Topic: Make the type of this parameter a pointer-to-const warning when declaring a FreeRTOS task
Replies: 12
Views: 7181

Make the type of this parameter a pointer-to-const warning when declaring a FreeRTOS task

We use SonarLint to analyze the code. The default way to create a simple FreeRTOS task is as shown below:

static void HELLO_TASK(void *param)
{
UNUSED(param);
for (;;)
{
printf("This is normal message1 without ANSI color code \n");
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
}

However ...
by zazas321
Wed Feb 14, 2024 1:07 pm
Forum: General Discussion
Topic: Using frameworks such as Vue or Node for web development on esp32
Replies: 2
Views: 3595

Using frameworks such as Vue or Node for web development on esp32

Hey. We have an ESP32 running a webserver (both in AP and station mode is supported). On the ESP32 we currently have index.html, scripts.js and styles.css that are stored in the flash memory.

Our webserver is scaling up quite rapidly, we are constantly adding more and more functions and it has ...

Go to advanced search