Search found 9 matches
- Mon May 22, 2023 12:35 pm
- Forum: General Discussion
- Topic: Printing 32 bit data using ESP_LOG or printf
- Replies: 3
- Views: 2954
Re: Printing 32 bit data using ESP_LOG or printf
Thanks for the hint. %lx works!
- Sun May 21, 2023 1:35 pm
- Forum: General Discussion
- Topic: Printing 32 bit data using ESP_LOG or printf
- Replies: 3
- Views: 2954
Printing 32 bit data using ESP_LOG or printf
I am reading a data from a device, the data is 32bit long and i want to print it using ESP_LOG. Here is my code void app_main(void) { esp_err_t ret = nvs_flash_init(); if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) { ESP_ERROR_CHECK(nvs_flash_erase()); ret = nvs_flash_...
- Sun May 21, 2023 1:27 pm
- Forum: General Discussion
- Topic: ESP32 C3 delay between SPI transactions
- Replies: 2
- Views: 1431
Re: ESP32 C3 delay between SPI transactions
Thanks for the response, the issue was the esp logs that i was printing before and after each transaction, removing them solved the issue.
- Sat May 20, 2023 1:27 pm
- Forum: General Discussion
- Topic: ESP32 C3 delay between SPI transactions
- Replies: 2
- Views: 1431
ESP32 C3 delay between SPI transactions
I am using ESP32 C3 Wroom 02 Dev kit to communicate to V9203 chip using SPI. I already tested the communication using Raspberry pi 3 and it works. For a successul write opertaion, i have to send 3 * 32bit frames. but the ESP32 takes quite a long time between each SPI frame. Between the first two fra...
- Sat May 20, 2023 1:22 pm
- Forum: General Discussion
- Topic: Not able to set GPIO level
- Replies: 2
- Views: 1214
Re: Not able to set GPIO level
Great, thanks it worked!
- Thu May 11, 2023 8:34 pm
- Forum: General Discussion
- Topic: Not able to set GPIO level
- Replies: 2
- Views: 1214
Not able to set GPIO level
I have ESP32-C3-wroom-02 dev kit and i want to use a GPIO to set it high or low based on my requirement. I tried the following code, but the GPIO18 is not changing #include <stdio.h> #include "driver/gpio.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include <unistd.h> #define LED_PI...
- Sun Sep 04, 2022 5:25 pm
- Forum: ESP32 Arduino
- Topic: ESP32C3 internal flash memory
- Replies: 4
- Views: 4558
Re: ESP32C3 internal flash memory
There's multiple ways to do that; if all you want to do is store a float then nvs seems to be the most applicable. Nvs has examples in the esp-idf directory if you need them. I believe the Arduino equivalent would be the 'preferences' library. Thanks, i was able to write data and read after power l...
- Thu Sep 01, 2022 1:23 pm
- Forum: ESP32 Arduino
- Topic: ESP32C3 internal flash memory
- Replies: 4
- Views: 4558
Re: ESP32C3 internal flash memory
it is quad SPI flash It is rated for about 10000 cycles. It is not appropriate for storing highly volatile data. It will likely work for most uses, even to the point of storing somewhat ephemeral data like authentication cookies, particularly if you use a write method with wear leveling (eg fatfs o...
- Sun Aug 21, 2022 10:48 pm
- Forum: ESP32 Arduino
- Topic: ESP32C3 internal flash memory
- Replies: 4
- Views: 4558
ESP32C3 internal flash memory
Hello, I am new to espressif and bought a devkit based on esp32 with 4MB embedded flash. i have some questions. What type of flash is included in the SOC? What are the maximum number of write cycles for this flash? I cannot find example code on how to access this flash, i want to store a float value...