Search found 29 matches

by william.ferguson.au
Tue Jul 23, 2019 7:05 pm
Forum: ESP32 IDF
Topic: Using CMake add_custom_command() to perform POST_BUILD action
Replies: 18
Views: 4543

Re: Using CMake add_custom_command() to perform POST_BUILD action

Hi Angus, I'm using the esp-idf release/v3.3 branch 91f29bef172a082cbd8f0208ed1757ede0e1d635 (which still identifies as -- IDF_VER: v3.3-beta1-864-g91f29bef1 during the build for some reason). I tried adding a custom command to the app target (in both the project folder and main folder) but it keeps...
by william.ferguson.au
Sun Jul 21, 2019 2:03 am
Forum: ESP32 IDF
Topic: Using CMake add_custom_command() to perform POST_BUILD action
Replies: 18
Views: 4543

Re: Using CMake add_custom_command() to perform POST_BUILD action

Anyone know how I can target the bin file?
Surely someone has already done this.
by william.ferguson.au
Sat Jul 20, 2019 3:42 am
Forum: ESP32 IDF
Topic: Using CMake add_custom_command() to perform POST_BUILD action
Replies: 18
Views: 4543

Re: Using CMake add_custom_command() to perform POST_BUILD action

OK, this at least gets executed. But $TARGET_FILE:${IDF_PROJECT_EXECUTABLE}> resolves to foo-bar.elf And I need foo-bar.bin project(foo-bar) add_custom_command( TARGET ${IDF_PROJECT_EXECUTABLE} POST_BUILD COMMAND ${CMAKE_COMMAND} -E echo idf_project_executable=${IDF_PROJECT_EXECUTABLE} target_file=$...
by william.ferguson.au
Sat Jul 20, 2019 3:08 am
Forum: ESP32 IDF
Topic: Using CMake add_custom_command() to perform POST_BUILD action
Replies: 18
Views: 4543

Using CMake add_custom_command() to perform POST_BUILD action

I want to be able to copy the main binary (and eventually the other binaries) to another folder post build. Note: I don't want to generate the output in this other folder. Taking a copy is a necessarily separate and discrete step. I tried using CMake "add_custom_command" add_custom_command( TARGET e...
by william.ferguson.au
Wed Jun 05, 2019 12:24 pm
Forum: ESP32 IDF
Topic: Using the same button for deep sleep and waking from deep sleep
Replies: 2
Views: 713

Re: Using the same button for deep sleep and waking from deep sleep

Thanks, that was what I was considering, glad to have it confirmed.
And it seems to have worked a treat.
by william.ferguson.au
Wed Jun 05, 2019 3:49 am
Forum: ESP32 IDF
Topic: Using the same button for deep sleep and waking from deep sleep
Replies: 2
Views: 713

Using the same button for deep sleep and waking from deep sleep

I am using a button to put the ESP32 into deep sleep and have also configured that button to wake the ESP32 from deep sleep. The problem is that when powered up, unless the button press is extremely quick, the ESP32 will go into deep sleep and then immediately wake up. What options do I have to ensu...
by william.ferguson.au
Mon May 13, 2019 10:07 am
Forum: ESP32 IDF
Topic: Best way to configure a library only project
Replies: 0
Views: 542

Best way to configure a library only project

I have a ESP32 library component that I want to use in multiple ESP32 projects. I plan to include it as a git submodule in the components folder of the client projects and have crafted the library's CMakeLists.txt to reflect that it is a component of another project. This works well when compiling t...
by william.ferguson.au
Sun Apr 28, 2019 11:45 am
Forum: ESP32 IDF
Topic: Setting CPPFLAGS with CMake and idf.py
Replies: 5
Views: 2162

Setting CPPFLAGS with CMake and idf.py

I've included an external library (ArduinoWebSockets) as a component by including it as a git submodule. The component define various macros depending upon the value of a compiler option that is normally set via CPPFLAGS. This is building fine using make under MSYS32, but want to transition to CMake...
by william.ferguson.au
Tue Apr 23, 2019 5:02 am
Forum: General Discussion
Topic: CMake / CLion
Replies: 11
Views: 8597

Re: CMake / CLion

OK, I'm still having trouble configuring the toolchain within CLion. I can build the hello_world example using cmake from the command line, but I can't seem to configure it to build from within CLion. http://http://www.xandar.com.au/CLion-Toolchains.PNG In the Build,Execution,Deployment->Toolchains ...
by william.ferguson.au
Wed Apr 03, 2019 8:11 am
Forum: General Discussion
Topic: CMake / CLion
Replies: 11
Views: 8597

Re: CMake / CLion

Yes, I should have mentioned I am using Windows.

Thanks for the link.