Search found 18 matches

by ESP_renz
Mon Mar 08, 2021 7:36 am
Forum: ESP-IDF
Topic: howto enable -Werror
Replies: 1
Views: 2590

Re: howto enable -Werror

Hi anthony,

Can you post the snippet on how you are doing it currently?
by ESP_renz
Wed Jan 27, 2021 12:55 pm
Forum: ESP-IDF
Topic: Call component function from another component
Replies: 5
Views: 4984

Re: Call component function from another component

for missing REQUIRES the error will be "No such file or Directory" error in the header include. You can check if the directory that contains the missing header is specified in the `INCLUDE_DIRS` argument to `idf_component_register` of the component that contains it. It might also be possible that t...
by ESP_renz
Tue Jun 16, 2020 11:56 pm
Forum: ESP-IDF
Topic: building a 3rd party library
Replies: 23
Views: 18144

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: ESP-IDF
Topic: one project to produce two bins
Replies: 1
Views: 2658

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: ESP-IDF
Topic: Can't tell linker to exclude stripping several functions
Replies: 3
Views: 3836

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: ESP-IDF
Topic: Can't tell linker to exclude stripping several functions
Replies: 3
Views: 3836

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: ESP-IDF
Topic: [Solved] EXTRA_COMPONENT_DIRS not working for me
Replies: 2
Views: 12283

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: ESP-IDF
Topic: undefined reference
Replies: 3
Views: 6047

Re: undefined reference

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

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: ESP-IDF
Topic: [IDFGH-2941] ELF file is in wrong place after running cmake --build .
Replies: 6
Views: 7910

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...