Search found 10 matches
- Mon Mar 04, 2019 3:24 am
- Forum: General Discussion
- Topic: Ways to make binary smaller?
- Replies: 19
- Views: 38059
Re: Ways to make binary smaller?
Howdy John,
Lets imagine the problem in the small. Imagine you have two C source files ... let us call one "idf.c" and the other "app.c". Now imagine inside idf.c you have the following:
void myFunc() {
printf("Hello world!\n");
}
now imagine that in app.c we want to call the function ...
- Fri Dec 28, 2018 8:48 am
- Forum: ESP-IDF
- Topic: ESP32 OTA with encrypted firmware
- Replies: 3
- Views: 6037
ESP32 OTA with encrypted firmware
https://docs.espressif.com/projects/esp-idf/en/latest/security/flash-encryption.html
In ESP document for flash encryption i found
OTA updates to encrypted partitions will automatically write encrypted, as long as the esp_partition_write function is used.
And in esp_ota_write we use esp ...
In ESP document for flash encryption i found
OTA updates to encrypted partitions will automatically write encrypted, as long as the esp_partition_write function is used.
And in esp_ota_write we use esp ...
- Wed Dec 26, 2018 9:05 am
- Forum: ESP-IDF
- Topic: Support DFU for main chip
- Replies: 5
- Views: 8362
Re: Support DFU for main chip
So think that i will set the subtype of dfu_app to ota_2.
And the i will custom ota process.
I don't use esp_ota_get_next_update_partition
I will use:
esp_partition_find
esp_partition_find_first
to get the ota partition i want to update.
It's mean when i'm in ota_0, i update to ota_1, when i'm ...
And the i will custom ota process.
I don't use esp_ota_get_next_update_partition
I will use:
esp_partition_find
esp_partition_find_first
to get the ota partition i want to update.
It's mean when i'm in ota_0, i update to ota_1, when i'm ...
- Wed Dec 26, 2018 8:49 am
- Forum: ESP-IDF
- Topic: Support DFU for main chip
- Replies: 5
- Views: 8362
Re: Support DFU for main chip
You probably need to use another subtype, such as 'test'. I think the partition table generator will also accept other integer values which are not used by defined subtypes.
I tried with subtype 'test' and 0xFF and failed.
This is my partition table
https://drive.google.com/file/d ...
- Wed Dec 26, 2018 8:37 am
- Forum: ESP-IDF
- Topic: Setting wifi configuration
- Replies: 20
- Views: 32069
- Tue Dec 25, 2018 10:30 am
- Forum: ESP-IDF
- Topic: Support DFU for main chip
- Replies: 5
- Views: 8362
Re: Support DFU for main chip
Instead of modifying the bootloader to use the drivers, you may create a separate small application which will handle the DFU, and place it into one of the app partitions. Then in the main app, use esp_ota_set_boot_partition function to boot the DFU application, and call "esp_restart". Bootloader ...
- Tue Dec 25, 2018 7:11 am
- Forum: ESP-IDF
- Topic: Setting wifi configuration
- Replies: 20
- Views: 32069
Re: Setting wifi configuration
I think it just like using wifi on mobile phone. When use want to connect to another wifi, you just disconnect and reconnect. And calling esp_wifi_start(); esp_wifi_stop() is the same with disable and enable wifi on mobile phone and doing this periodically is not good.
So in my opinion, if you just ...
So in my opinion, if you just ...
- Tue Dec 25, 2018 4:04 am
- Forum: ESP-IDF
- Topic: Setting wifi configuration
- Replies: 20
- Views: 32069
Re: Setting wifi configuration
How about just disconnect wifi, set up new config and reconnect to wifi again?
- Tue Dec 25, 2018 3:26 am
- Forum: ESP-IDF
- Topic: Support NanoPb
- Replies: 1
- Views: 4811
Support NanoPb
Hi all,
I want to use protobuf in my esp32 project with nanopb.
About nanopb https://github.com/nanopb/nanopb
Anyone can help me to add this to esp32 build system?
Thanks.
I want to use protobuf in my esp32 project with nanopb.
About nanopb https://github.com/nanopb/nanopb
Anyone can help me to add this to esp32 build system?
Thanks.
- Tue Dec 25, 2018 3:17 am
- Forum: ESP-IDF
- Topic: Support DFU for main chip
- Replies: 5
- Views: 8362
Support DFU for main chip
In my production, I have to support DFU for main chip over I2C communication by ESP32.
But I don't want to do it in ESP32 main app. I want main app just downloading firmware from server and save to flash. After that, ESP32 reboot, boot loader will read firmware from flash and connect to main chip to ...
But I don't want to do it in ESP32 main app. I want main app just downloading firmware from server and save to flash. After that, ESP32 reboot, boot loader will read firmware from flash and connect to main chip to ...