Search found 24 matches

by vinimac
Thu Aug 04, 2022 9:41 pm
Forum: General Discussion
Topic: OTA to uptate other partitions
Replies: 0
Views: 823

OTA to uptate other partitions

Hello.

Is it possible to use the OTA function "esp_https_ota()" to update other partitions types as spiffs used for webpages?
by vinimac
Tue Oct 05, 2021 12:48 pm
Forum: ESP-IDF
Topic: nvs_flash_init make the firmware constantly reboot
Replies: 2
Views: 2198

Re: nvs_flash_init make the firmware constantly reboot

The code I am using: 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_init(); } ESP_ERROR_CHECK(ret); printf("nvs_flash_init ok\n"); And the flash partitions: # Name, Type, SubType, Offset, Siz...
by vinimac
Mon Oct 04, 2021 10:11 pm
Forum: ESP-IDF
Topic: nvs_flash_init make the firmware constantly reboot
Replies: 2
Views: 2198

nvs_flash_init make the firmware constantly reboot

Hello, I updated the SDK to latest version and my code is not booting. It is stopping in nvs_flash_init() function, but no error is printed. SDK version: commit 3e370c4296247b349aa3b9a0076c05b9946d47dc (HEAD -> master, origin/master, origin/HEAD) Merge: 8d74bf87e 0f7b90d20 Author: morris <maoshengro...
by vinimac
Thu Aug 12, 2021 2:50 am
Forum: ESP-IDF
Topic: Change CPU frequency without PM API
Replies: 7
Views: 4400

Re: Change CPU frequency without PM API

Alright, thanks for your reply.

But what options do we have for a timer with no jitter and low power?
by vinimac
Wed Aug 11, 2021 9:38 pm
Forum: ESP-IDF
Topic: Change CPU frequency without PM API
Replies: 7
Views: 4400

Re: Change CPU frequency without PM API

esp_timer_handle_t timer1; void init_timer(int timer_period_us) { int64_t t_end; esp_timer_create_args_t args = { .callback = &timer_func, .arg = &t_end, .name = "timer1" }; //---- esp_timer_create(&args, &timer1); esp_timer_start_periodic(timer1, timer_period_us); //esp_timer_delete(timer1); } // ...
by vinimac
Tue Aug 10, 2021 11:11 pm
Forum: ESP-IDF
Topic: Change CPU frequency without PM API
Replies: 7
Views: 4400

Re: Change CPU frequency without PM API

We are using the PM api function esp_pm_configure() with 10Mhz and 80Mhz clock speed and the 40Mhz oscillator and we are satisfied with the power consumption when running on 10MHz. However when we enable the PM our timer is running 1.5 second fast over a minute so that timing accuracy is not accepta...
by vinimac
Mon Aug 09, 2021 11:29 pm
Forum: ESP-IDF
Topic: Change CPU frequency without PM API
Replies: 7
Views: 4400

Change CPU frequency without PM API

Hello. I would like to change CPU frequency but without power manager API because I am having problems with timer accuracy when PM is enabled.
by vinimac
Sat Oct 17, 2020 2:30 am
Forum: General Discussion
Topic: Uart ISR getting trigger and crashing program
Replies: 8
Views: 8012

Re: Uart ISR getting trigger and crashing program

I had same issue, so I wrote my own transmit function and that solved the issue. #include "esp32/rom/uart.h" // for WRITE_PERI_REG int uart_write(uint8_t uartN, char *datarx, int size) { int i; for (i = 0; i < size; i++) WRITE_PERI_REG(UART_FIFO_REG(uartN), datarx[i]); return i; }
by vinimac
Wed Aug 19, 2020 5:54 pm
Forum: General Discussion
Topic: [Solved]UART rx ISR not working
Replies: 16
Views: 30890

Re: [Solved]UART rx ISR not working

Dont forget to call usr_isr_free before uart_isr_register

Code: Select all

// release the pre registered UART handler/subroutine
    ESP_ERROR_CHECK(uart_isr_free(EX_UART_NUM));