Search found 11 matches

by AloyseTech
Mon Jan 27, 2020 12:02 am
Forum: General Discussion
Topic: Include header from main into components with CMake
Replies: 0
Views: 254

Include header from main into components with CMake

Hi, I have a project with the following structure : esp_project ├── CMakeLists.txt ├── components │   └── my_comp │   ├── CMakeLists.txt │   ├── my_comp.c │   └── my_comp.h └── main ├── CMakeLists.txt ├── main.c └── my_conf.h How can I tell CMake to include my_conf.h when building my_comp components ?
by AloyseTech
Fri Nov 22, 2019 9:26 pm
Forum: General Discussion
Topic: How to use the 64bit timer as a 32bit counter (overflow at 0xFFFFFFFF), but keep alarm function available
Replies: 3
Views: 557

Re: How to use the 64bit timer as a 32bit counter (overflow at 0xFFFFFFFF), but keep alarm function available

I don't understand the advantage of the 32-bit rollover I’m connected to a system which expect 32bit timestamp and send me 32bit alarm. I can send a 32bit timestamp easily from the 64bit timer, but I can’t set a 64bit alarm from a 32bit one. The remote system expect that my time base rollover at 32...
by AloyseTech
Fri Nov 22, 2019 3:22 pm
Forum: General Discussion
Topic: How to use the 64bit timer as a 32bit counter (overflow at 0xFFFFFFFF), but keep alarm function available
Replies: 3
Views: 557

How to use the 64bit timer as a 32bit counter (overflow at 0xFFFFFFFF), but keep alarm function available

Hi, For a time constrained application I need a freerunning 32bit microsecond time base timer to trigger alarm at given 32bit timestamp. Currently I use the two 64bit timers of a timer group as follow : The first timer is used to generate one shot alarm at a given absolute 32bit timestamp. The secon...
by AloyseTech
Fri Nov 15, 2019 6:51 pm
Forum: General Discussion
Topic: Set an alarm with the same time base as returned by esp_timer_get_time()
Replies: 1
Views: 284

Re: Set an alarm with the same time base as returned by esp_timer_get_time()

The esp_timer common components has a function called esp_timer_start_once(timer, relative_time_from_now) It could be great to have a similar API called esp_timer_start_alarm(timer, absolute_time) Implementation would be : esp_err_t IRAM_ATTR esp_timer_start_alarm(esp_timer_handle_t timer, uint64_t ...
by AloyseTech
Fri Nov 15, 2019 4:19 pm
Forum: General Discussion
Topic: Set an alarm with the same time base as returned by esp_timer_get_time()
Replies: 1
Views: 284

Set an alarm with the same time base as returned by esp_timer_get_time()

Hi, How can I set an alarm to a given timestamp in microseconds with the same base as esp_timer_get_time() ? It seems that esp_timer_get_time does not use timer group so they do not share the same time base. Here is a pseudo code of what I need: void app_main() { execAt = postParam(esp_timer_get_tim...
by AloyseTech
Sun Oct 06, 2019 11:51 am
Forum: General Discussion
Topic: Append an incremented version/build number to compiled firmware binary name
Replies: 5
Views: 751

Re: Append an incremented version/build number to compiled firmware binary name

I'm one windows and I use the CMake build system. Do you plan to put your component on github?
by AloyseTech
Fri Oct 04, 2019 12:08 pm
Forum: General Discussion
Topic: Append an incremented version/build number to compiled firmware binary name
Replies: 5
Views: 751

Re: Append an incremented version/build number to compiled firmware binary name

I was hoping for a way to use the current cmake build system to do it.
I'm getting the version from the generated sdkconfig.h (it is set using menuconfig). I could also use the sdkconfig.json intermediate file.
by AloyseTech
Thu Oct 03, 2019 3:08 pm
Forum: General Discussion
Topic: Append an incremented version/build number to compiled firmware binary name
Replies: 5
Views: 751

Append an incremented version/build number to compiled firmware binary name

Hi, I would like my binary executable firmware to have the version and build number appended to the filename automatically. How can I do that? For example, if I have a project "myProject", currently the binary generated is always "myProject.bin". I would like to append a version (which is defined us...
by AloyseTech
Tue Sep 03, 2019 10:36 am
Forum: Hardware
Topic: Proper EMAC/PHY design: RMII Timing Documentation Missing
Replies: 1
Views: 695

Re: Proper EMAC/PHY design: RMII Timing Documentation Missing

From the latest documentation ( https://docs.espressif.com/projects/esp-idf/en/latest/hw-reference/get-started-ethernet-kit.html ) : Note GPIO2 is used to enable external oscillator of the PHY. GPIO0 is a source of 50 MHz reference clock for the PHY. The clock signal is first inverted, to account fo...
by AloyseTech
Thu Aug 01, 2019 10:33 am
Forum: General Discussion
Topic: Maximum deep sleep duration using esp_sleep_enable_timer_wakeup(uint64 ms) in Arduino package
Replies: 1
Views: 1113

Maximum deep sleep duration using esp_sleep_enable_timer_wakeup(uint64 ms) in Arduino package

Hi,

What is the maximum deep sleep duration when using timer wakeup with the esp32-arduino function

Code: Select all

esp_sleep_enable_timer_wakeup
? Is it UINT64_MAX microseconds?

Go to advanced search