Search found 8 matches

by DreadNaught
Sat Jul 06, 2024 10:51 pm
Forum: ESP-IDF
Topic: Flash Update using SD card & Flash Encryption
Replies: 1
Views: 1384

Re: Flash Update using SD card & Flash Encryption

After many hours of reading docs and testing code, as far as I can see, it is not possible to use a pre-encrypted flash bin file, using the same burned in flash encryption key that was saved to host, to update via SD card. This is due to the verification of the app image via the "magic number" check...
by DreadNaught
Tue Jul 02, 2024 2:27 pm
Forum: ESP-IDF
Topic: Bootloader Size Increase when Upgrading from ESP-IDF 4.3.1 to 5.1.1
Replies: 4
Views: 1032

Re: Bootloader Size Increase when Upgrading from ESP-IDF 4.3.1 to 5.1.1

In "menuconfig" look for "Offset of partition table" and change it from 0x8000 to 0x10000.
That will give you enough room for flash encryption and secure boot code on the bootloader.
by DreadNaught
Tue Jul 02, 2024 2:20 pm
Forum: ESP-IDF
Topic: [SOLVED]OTA over SD SPI
Replies: 3
Views: 3418

Re: OTA over SD SPI

I have solved it myself, the problem was too little ram. typedef struct binary_data_t { unsigned long size; unsigned long remaining_size; void *data; } binary_data_t; size_t fpread(void *buffer, size_t size, size_t nitems, size_t offset, FILE *fp) { if (fseek(fp, offset, SEEK_SET) != 0) return 0; r...
by DreadNaught
Tue Jul 02, 2024 2:18 pm
Forum: ESP-IDF
Topic: Flash Update using SD card & Flash Encryption
Replies: 1
Views: 1384

Flash Update using SD card & Flash Encryption

I'm using IDF v5.2.2 on an ESP32 rev1 dev kit C. I use the SD card to update the firmware and reboot. It works very well and is based on this code: https://www.esp32.com/viewtopic.php?t=19364 Thank you @minze25 ! I will be enabling flash encryption and want to be able to update via the SD card. The ...
by DreadNaught
Thu Jun 20, 2024 6:09 pm
Forum: ESP-IDF
Topic: Update from 4.4 to 5.2 leads to linker errors
Replies: 9
Views: 1602

Re: Update from 4.4 to 5.2 leads to linker errors

I am fairly new to IDF and just migrated a project from IDF 4.4 to 5.2. It also had many linking errors when the 4.4 project was opened in 5.2 My solution was to create a new project in IDF 5.2 using the template-app and copy over the source code. It did have a few different #include errors, but the...
by DreadNaught
Tue Jun 18, 2024 4:19 pm
Forum: ESP-IDF
Topic: IDF Arduino as a Component Error: "undefined reference to"
Replies: 4
Views: 1237

Re: IDF Arduino as a Component Error: "undefined reference to"

Thanks for this!
I've seen this on a few programs and will now spend some time to understand it better.
by DreadNaught
Fri May 10, 2024 2:48 pm
Forum: ESP-IDF
Topic: IDF Arduino as a Component Error: "undefined reference to"
Replies: 4
Views: 1237

Re: IDF Arduino as a Component Error: "undefined reference to"

Thanks for your suggestions.

I went back the next day and had a close look.
You were right, I missed CAN.c.
I renamed it CAN.cpp and added it to the CMakeLists.txt.

All is working well now!
Thanks you!
by DreadNaught
Thu May 09, 2024 1:40 am
Forum: ESP-IDF
Topic: IDF Arduino as a Component Error: "undefined reference to"
Replies: 4
Views: 1237

IDF Arduino as a Component Error: "undefined reference to"

I think this is a C/C++ difference issue, but don't know enough about C/C++ to know what to do :( I am working with the Arduino library: https://github.com/miwagner/ESP32-Arduino-CAN The example program in "esp32can_basic.ino" compiles without errors and runs in the Arduino IDE. I have brought this ...