Search found 94 matches

by newsettler_AI
Fri Apr 26, 2019 10:30 am
Forum: General Discussion
Topic: ADC: how to configure different attenuations for channels? (solved)
Replies: 2
Views: 244

Re: ADC: how to configure different attenuations for channels?

WiFive wrote:
Thu Apr 25, 2019 7:14 am
You should do

Code: Select all

adc_chars_vref = calloc(1, sizeof(esp_adc_cal_characteristics_t));
esp_adc_cal_characterize(ADC_UNIT_1, ADC_ATTEN_DB_11, ADC_WIDTH_BIT_12, DEFAULT_VREF, adc_chars_vref);
Then you have 2 sets of chars
Thanks a lot, this helped
by newsettler_AI
Wed Apr 24, 2019 7:28 pm
Forum: General Discussion
Topic: ADC: how to configure different attenuations for channels? (solved)
Replies: 2
Views: 244

ADC: how to configure different attenuations for channels? (solved)

Hi, I need measure 2.5V voltage at IO_35 and 0...2V and pins 33,36,39. So, problem is that values I've got from IO_35 is wrong... channels & attenuation : static const adc_channel_t bat = ADC1_CHANNEL_5; // IO33 static const adc_channel_t one = ADC1_CHANNEL_0; // IO36 static const adc_channel_t two ...
by newsettler_AI
Mon Apr 22, 2019 7:18 pm
Forum: General Discussion
Topic: wear leveling: How to create image?
Replies: 0
Views: 180

wear leveling: How to create image?

Hello, Is there a way to create binary image (similar as mkspiffs https://github.com/igrr/mkspiffs ) for wear_leveling? I have found 3rd part tools, but all of them looks very deprecaded https://github.com/TobleMiner/mk_esp32fat https://github.com/lllucius/esp32_fatfsimage https://github.com/jkearin...
by newsettler_AI
Wed Apr 10, 2019 11:23 am
Forum: General Discussion
Topic: Encrypted flash and SPIFFS storage together?
Replies: 7
Views: 573

Re: Encrypted flash and SPIFFS storage together?

ESP_Angus , Thank you for information. Looks like SPIFFS not suitable for my task. Actually, I'm using SPIFFS because it have wrappers for creating bin file from PC folder (mkspiffs). This makes uploading DATA files( those I want to secure ) pretty easy to use for multiple devices, which require to...
by newsettler_AI
Tue Apr 09, 2019 5:57 pm
Forum: General Discussion
Topic: UART receive failure after 120 bytes
Replies: 3
Views: 767

Re: UART receive failure after 120 bytes

Try this: if (xQueueReceive(UARTqueue, (void *)&event, (portTickType)portMAX_DELAY)) { switch (event.type) { case UART_DATA: //ESP_LOGE(TAG, "serialTask: uart data break\n"); int len = uart_read_bytes(uart_num, dtmp, event.size, (portTickType) portMAX_DELAY); ESP_LOGI(TAG, "uart read: %d", len); bre...
by newsettler_AI
Tue Apr 09, 2019 5:14 pm
Forum: General Discussion
Topic: Encrypted flash and SPIFFS storage together?
Replies: 7
Views: 573

Encrypted flash and SPIFFS storage together?

Hi, In my project I'm using SPIFFS storage, which contains files: DATA: some kind of read-only (not supposed to be edited after flashing, but have private info, txt files) CONF: files which will be modified from app (but not needed to be protected actually, binary files with some configurations) I n...
by newsettler_AI
Sun Apr 07, 2019 1:45 pm
Forum: General Discussion
Topic: ESP app versions question
Replies: 2
Views: 388

Re: ESP app versions question

Thank you for explanation :)
by newsettler_AI
Wed Apr 03, 2019 6:40 pm
Forum: General Discussion
Topic: ESP app versions question
Replies: 2
Views: 388

ESP app versions question

Hi, When ESP32 start I have this in log: I (558) boot: Loaded app from partition at offset 0x10000 I (559) boot: Disabling RNG early entropy source... I (559) cpu_start: Pro cpu up. I (563) cpu_start: Application information: I (567) cpu_start: Project name: My_project I (572) cpu_start: App version...
by newsettler_AI
Thu Mar 28, 2019 7:19 pm
Forum: General Discussion
Topic: Generic questions about secure boot & flash enc
Replies: 24
Views: 2485

Re: Generic questions about secure boot & flash enc

Hi, I've reading this topic, but still I' stuck with basics... After I enabled Security features - Enable flash encryption on boot , I have flashed my app with command "make flash". On first start it takes a while to run, but on next boots it starts as usual. I made minor change in app. Flashed agai...
by newsettler_AI
Thu Mar 07, 2019 3:38 pm
Forum: General Discussion
Topic: POSIX functions with spiffs works wrong? ("access" doest work)
Replies: 0
Views: 172

POSIX functions with spiffs works wrong? ("access" doest work)

Hi, I'm using spiffs and I have created binary file. I need check file existance. When I'm cheking with fopen(path, "rb") != NULL { // file exist } it works. But it takes about 300-400 ms to do this check for some reason :? So I want to try different - access function. if ( access(path, (F_OK) != -1...

Go to advanced search