Search found 8 matches

by alsaleem00
Sat Feb 20, 2021 7:10 pm
Forum: ESP-IDF
Topic: re-flashing factory partition
Replies: 1
Views: 2592

Re: re-flashing factory partition

I was able to re-flash the factory partition using the API

Code: Select all

esp_partition_erase_range();
esp_partition_write();
Thanks!
by alsaleem00
Sat Feb 20, 2021 2:33 am
Forum: ESP-IDF
Topic: re-flashing factory partition
Replies: 1
Views: 2592

re-flashing factory partition

I configured my partition table with
- factory partition.
- one ota partition
(also using - custom bootloader)

The reason for not having two ota's is that my ota app is large and the 4MB flash can not hold ota0+ota1 (ota app ~ 2.1MB). Thus, created a factory app (~1MB) to re-flash the ota app ...
by alsaleem00
Mon Feb 01, 2021 5:22 pm
Forum: ESP-IDF
Topic: Appending version number to project bin file
Replies: 4
Views: 6993

Re: Appending version number to project bin file

I came up with a compromise solution:


set(PROJECT_VER "4.0.1")
set(PROJECT_VERU ${PROJECT_VER})
set(PROJECT_PREF "myproject")

string (REPLACE "\." "_" PROJECT_VERU ${PROJECT_VERU})
set(PROJECT_BIN "${PROJECT_PREF}_${PROJECT_VERU}")

include($ENV{IDF_PATH}/tools/cmake/project.cmake)

project ...
by alsaleem00
Mon Feb 01, 2021 12:25 pm
Forum: ESP-IDF
Topic: Appending version number to project bin file
Replies: 4
Views: 6993

Re: Appending version number to project bin file

It looks that this is a problem with cmake.
If i replace dots with underscore 1_0_1, it works.
.map & .elf files are produced correctly (with dots)

Any further suggestion?

Thanks.
by alsaleem00
Mon Feb 01, 2021 11:49 am
Forum: ESP-IDF
Topic: Appending version number to project bin file
Replies: 4
Views: 6993

Re: Appending version number to project bin file

Hi @chegewara,
this is smart approach.
Indeed, it will produce {projectname}_1.bin for (1.0.1) PROJECT_VER.

I tried to concat the two strings out side like

set(PROJECT_VER "3.0.1")
set(PROJECT_PREF "myproject")
set(PROJECT_BIN "${PROJECT_PREF}_${PROJECT_VER}")

project(${PROJECT_BIN})
but same ...
by alsaleem00
Sun Jan 31, 2021 10:46 am
Forum: ESP-IDF
Topic: Appending version number to project bin file
Replies: 4
Views: 6993

Appending version number to project bin file

I managed to set app version number to project using PROJECT_VER in " CMakeLists.txt ".

If I compile the project, it will produce {projectname}.bin.
I can read the version using code. However, all versions have same bin name.

Is there a config variable i can use to make build produces distinctive ...
by alsaleem00
Sun Jan 31, 2021 10:28 am
Forum: ESP-IDF
Topic: Enable double precision trigonometric functions
Replies: 6
Views: 13010

Re: Enable double precision trigonometric functions

I changed to float per recommendation. Now both platforms produce same result.
Yes, I experienced slow processing so I opted to go to float.

Thanks for support.
by alsaleem00
Tue Dec 29, 2020 10:06 pm
Forum: ESP-IDF
Topic: Enable double precision trigonometric functions
Replies: 6
Views: 13010

Enable double precision trigonometric functions

Hi,
I have a code that uses "double precision" sin/cos/asin/acos/atan/fabs functions.
I get different results when running same code on PC and ESP32 (IDF 4.0).

Is there a compiler/config settings or external lib that I should use to get same results?

Thanks.

Go to advanced search