Large ULP project build problem IDF V4.0 beta1

ginodecock
Posts: 30
Joined: Thu Jun 29, 2017 7:10 pm

Large ULP project build problem IDF V4.0 beta1

Postby ginodecock » Mon Nov 11, 2019 1:48 pm

Hi,

I have a project that compiles fine under IDF V3.3.

When building under IDF V4.0 beta 1 I got the following error:
e/GitHub/esp-idf-v4.0-beta1/components/unity/include -IY:/VM/Share/GitHub/esp-idf-v4.0-beta1/components/ulp/cmake/-IY:/VM/Share/GitHub/esp-idf-v4.0-beta1/components/unity/unity/src -IY:/VM/Share/GitHub/esp-idf-v4.0-beta1/components/ulp/cmake/-IY:/VM/Share/GitHub/esp-idf-v4.0-beta1/components/wifi_provisioning/include -IY:/VM/Share/GitHub/esp-idf-v4.0-beta1/components/ulp/cmake/-IY:/VM/eclipse-workspace/tmp108logger/components/esp-si7021/include -o CMakeFiles/ulp_main.dir/sensor.ulp.S.obj -c sensor.ulp.S
sensor.ulp.S: Assembler messages:
sensor.ulp.S:230: Error: rel too far BFD_JUMPR_STEP
sensor.ulp.S:236: Error: rel too far BFD_JUMPR_STEP
sensor.ulp.S:251: Error: rel too far BFD_JUMPR_STEP
sensor.ulp.S:260: Error: rel too far BFD_JUMPR_STEP
sensor.ulp.S:271: Error: rel too far BFD_JUMPR_STEP
sensor.ulp.S:280: Error: rel too far BFD_JUMPR_STEP
sensor.ulp.S:293: Error: rel too far BFD_JUMPR_STEP
sensor.ulp.S:307: Error: rel too far BFD_JUMPR_STEP
ninja: build stopped: subcommand failed.
[641/687] Building CXX object esp-idf/asio/CMakeFiles/__idf_asio.dir/asio/asio/src/asio.cpp.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1


Is there a way under IDF V4.0 to build ULP code using seperate assembler files?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Large ULP project build problem IDF V4.0 beta1

Postby WiFive » Mon Nov 11, 2019 11:04 pm

Are you using latest ulp toolchain?

ginodecock
Posts: 30
Joined: Thu Jun 29, 2017 7:10 pm

Re: Large ULP project build problem IDF V4.0 beta1

Postby ginodecock » Tue Nov 12, 2019 5:32 pm

When using the cmake idf v4.0 the ulp toolchain is embedded.
If you have already set up ESP-IDF with CMake build system according to the Getting Started Guide, then the ULP toolchain is already installed.
Building using legacy GNU make build is older and works.

Any idea how to use multiple assembler files using CMake? That could also solve the problem.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Large ULP project build problem IDF V4.0 beta1

Postby WiFive » Wed Nov 13, 2019 1:58 am

Code: Select all

rel too far BFD_JUMPR_STEP
message only exists in the old toolchain. It was removed here https://github.com/espressif/binutils-e ... 8bff1e18e1 Do you have an older version installed that may still be in PATH?

https://github.com/espressif/esp-iot-so ... xt#L17-L22

ginodecock
Posts: 30
Joined: Thu Jun 29, 2017 7:10 pm

Re: Large ULP project build problem IDF V4.0 beta1

Postby ginodecock » Wed Nov 13, 2019 5:52 pm

Hi,

Yes the esp32ulp toolchain was configured twice in PATH.

I builds now using CMake.

Thanks

Who is online

Users browsing this forum: Bing [Bot] and 324 guests