ULP ADC undefined reference to _binary_ulp_main_bin_start

dacitt
Posts: 5
Joined: Thu Dec 20, 2018 4:53 pm

ULP ADC undefined reference to _binary_ulp_main_bin_start

Postby dacitt » Thu Dec 20, 2018 5:03 pm

Hi all,
i'm trying to add to my iot project the ultra low power coprocessor but it doesn't compile.
This is my component.mk file:

Code: Select all



ULP_APP_NAME ?= ulp_KnobMonitor

ULP_S_SOURCES = $(addprefix $(COMPONENT_PATH)/ULP/, \
	KnobMonitor.S \
	)

ULP_EXP_DEP_OBJECTS = ULP_KnobMonitor.o 

include $(IDF_PATH)/components/ulp/component_ulp_common.mk

COMPONENT_SRCDIRS := . Sleep Application  Application/SerialMonitor Application/UserManager Hmi Hmi/Display Hmi/Sound Hmi/Touch Lsi Lsi/ACInput System System/DataProtection System/DataStorage System/MathTools System/RTOSMonitor System/SWTimer System/Version IoT
Compiler error is the following:

Code: Select all

[..]/build/main\libmain.a(ULP_KnobMonitor.o):(.literal.ULP_KnobMonitor__Initialize+0x0): undefined reference to `_binary_ulp_main_bin_end'
[..]/build/main\libmain.a(ULP_KnobMonitor.o):(.literal.ULP_KnobMonitor__Initialize+0x4): undefined reference to `_binary_ulp_main_bin_start'
collect2.exe: error: ld returned 1 exit status
make: *** [C:\msys32\home\esp-idf/make/project.mk:407:[..]/build/E0SW.elf] Error 1
ULP ADC example provided in espidf works well but this not. Basically I copy and paste that example in my project.. where is the error?

Thank you

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: ULP ADC undefined reference to _binary_ulp_main_bin_start

Postby ESP_igrr » Fri Dec 21, 2018 1:27 am

Can you please run 'make clean' and then 'make V=1', and then attach the output you get from the latter?

Who is online

Users browsing this forum: Majestic-12 [Bot] and 81 guests