Search found 16 matches

by ESP_renz
Tue Jun 16, 2020 11:56 pm
Forum: ESP32 IDF
Topic: building a 3rd party library
Replies: 23
Views: 1035

Re: building a 3rd party library

Can you give us a snippet of how you are including the third-party project? The behavior you are seeing is weird, since the top-level project should dictate the target and toolchain.
by ESP_renz
Wed Jun 10, 2020 4:12 am
Forum: ESP32 IDF
Topic: one project to produce two bins
Replies: 1
Views: 208

Re: one project to produce two bins

Unfortunately, there is no easy way to do this at the moment - however this is a use case we are looking into. If you're comfortable with CMake and duplicating code in some components, it is possible to do so. For example: ... project(hello-world) add_executable(exe2 other_main.c) # other_main.c has...
by ESP_renz
Tue Jun 09, 2020 12:01 am
Forum: ESP32 IDF
Topic: Can't tell linker to exclude stripping several functions
Replies: 3
Views: 223

Re: Can't tell linker to exclude stripping several functions

On the contrary, it means that the `-u` argument for `SpiInOut` works, since you're forcing the linker to not drop `SpiInOut` but it is not finding it. Is the source file containing definition for `SpiInOut` is included in the build?
by ESP_renz
Thu Jun 04, 2020 10:45 pm
Forum: ESP32 IDF
Topic: Can't tell linker to exclude stripping several functions
Replies: 3
Views: 223

Re: Can't tell linker to exclude stripping several functions

Can you try enclosing them in quotes?

Code: Select all

target_link_options(
	${COMPONENT_LIB} 
	PUBLIC
	"-u SpiInOut" "-u memcpy1"
	)

P.S. Note `target_link_options` requires at least a CMake version > 3.13.
by ESP_renz
Tue Jun 02, 2020 2:00 am
Forum: ESP32 IDF
Topic: [Solved] EXTRA_COMPONENT_DIRS not working for me
Replies: 2
Views: 295

Re: EXTRA_COMPONENT_DIRS not working for me

Hi, it seems that the component in the directory above 'thingx' is rightfully not pulled in, since `main` in your snippet does not seem to do so?
by ESP_renz
Tue Apr 07, 2020 3:02 am
Forum: ESP32 IDF
Topic: undefined reference
Replies: 3
Views: 1807

Re: undefined reference

Can you post the build log?
by ESP_renz
Thu Apr 02, 2020 2:26 am
Forum: ESP32 IDF
Topic: undefined reference
Replies: 3
Views: 1807

Re: undefined reference

You need to populate the REQUIRES , PRIV_REQUIRES argument to idf_component_register with the proper dependency relationships. For example, you mentioned that I2CKeypad depends on I2CPeripheral for I2CPeripheral.h, I2CKeypad should be: idf_component_register(SRCS "I2CKeypad.cpp" INCLUDE_DIRS "." REQ...
by ESP_renz
Mon Mar 30, 2020 1:08 am
Forum: ESP32 IDF
Topic: [IDFGH-2941] ELF file is in wrong place after running cmake --build .
Replies: 6
Views: 1419

Re: [IDFGH-2941] ELF file is in wrong place after running cmake --build .

Why might the build.make be incorrectly generated or my ELF placed in the wrong place? It's not that the ELF file is in the wrong place, but rather the process that creates a bin out of the elf file wrongly assumes it to be in the top level build directory. Can you create an issue for this in the E...
by ESP_renz
Wed Mar 25, 2020 7:11 am
Forum: ESP32 IDF
Topic: [IDFGH-2940] sdkconfig not defining values used in component
Replies: 6
Views: 1150

Re: [IDFGH-2940] sdkconfig not defining values used in component

Since you specified that '${CMAKE_HOME_DIRECTORY}/components/i2c_self_test' is a component directory, the IDF build expects, Kconfig.projbuild to be there, i.e. '.../i2c_self_test/Kconfig.projbuild'. I guess the thing here is that in the examples, 'i2c_self_test' is not a component, it is a project ...
by ESP_renz
Thu Oct 10, 2019 8:08 am
Forum: ESP32 IDF
Topic: Parrallel compiling with CMake
Replies: 3
Views: 723

Re: Parrallel compiling with CMake

CMake automatically does parallel builds. Even faster build times can be achieved by using ccache. This can be done by: 1. passing argument `--ccache` to idf.py everytime you build 2. set CCACHE_ENABLE=1 before project() call in project CMakeLists.txt like so ... set(CCACHE_ENABLE 1) project(...) Yo...

Go to advanced search