Search found 231 matches
- 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: 4706
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); static ...
- 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: 4706
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_flash.h" ...
- 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: 4706
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 is tha...
- 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: 4706
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_PERIOD_MS); ...
- 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: 4706
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, sonarlint compla...
- 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: 1703
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 becom...
- Wed Dec 20, 2023 1:22 pm
- Forum: IDEs for ESP-IDF
- Topic: VSCode SonarLint detecting errors
- Replies: 3
- Views: 17231
Re: VSCode SonarLint detecting errors
You can check this for the #include error : https://stackabuse.com/bytes/troubleshooting-include-errors-detected-in-vs-code/ I have tried to restart vscode as shown in the link that you have provided. Additionally, I have tried the following: iclude_path.png But clicking on the lightbulb does not d...
- Tue Dec 19, 2023 12:29 pm
- Forum: IDEs for ESP-IDF
- Topic: VSCode SonarLint detecting errors
- Replies: 3
- Views: 17231
VSCode SonarLint detecting errors
I an running a simple sample project on VSCode (esp-idf v5.0.3) /* * SPDX-FileCopyrightText: 2010-2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: CC0-1.0 */ #include <stdio.h> #include <inttypes.h> #include "sdkconfig.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h"...
- Fri Dec 15, 2023 5:31 am
- Forum: General Discussion
- Topic: Executing merge_bin using Gitlab CI/CD
- Replies: 3
- Views: 88443
Re: Executing merge_bin using Gitlab CI/CD
I have managed to achieve this. See the full CI script: stages: # List of stages for jobs, and their order of execution - build - release build-esp-idf-5.0.4: image: espressif/idf:v5.0.4 variables: GIT_SUBMODULE_STRATEGY: normal stage: build rules: - if: $CI_COMMIT_TAG # Run this job when a tag is c...
- Thu Dec 14, 2023 9:27 am
- Forum: General Discussion
- Topic: Executing merge_bin using Gitlab CI/CD
- Replies: 3
- Views: 88443
Re: Executing merge_bin using Gitlab CI/CD
Hey limpens. Thanks for your response. You were right. I was missing idf.py build. My .gitlab-ci.yml file looks like: stages: # List of stages for jobs, and their order of execution - build - release build-esp-idf-5.1: image: espressif/idf:release-v5.1 variables: GIT_SUBMODULE_STRATEGY: normal stage...