The syntax for the instruction ULP "jumpr eq" is not correct.

Andy Korg
Posts: 4
Joined: Sat Jan 04, 2020 2:25 pm

The syntax for the instruction ULP "jumpr eq" is not correct.

Postby Andy Korg » Sat Jan 04, 2020 2:58 pm

Good afternoon!
Trying to compile code:
move r3, tics_count
ld r0, r3, 0
sub r0, r0, 1
jumpr one_second, 10, eq
But I get the error:
...
[1/5] Building ASM object CMakeFiles/ulp_main.dir/adc.ulp.S.obj
FAILED: CMakeFiles/ulp_main.dir/adc.ulp.S.obj
esp32ulp-elf-as .../ulp/cmake/-IC:/esp-idf/components/wifi_provisioning/include -o CMakeFiles/ulp_main.dir/adc.ulp.S.obj -c adc.ulp.S
...
adc.ulp.S: Assembler messages:
adc.ulp.S:87: Error: syntax error. Input text was eq.
adc.ulp.S:87: Error:
ninja: build stopped: subcommand failed.
...
At the same time, such code is compiled and executed without errors:
move r3, tics_count
ld r0, r3, 0
sub r0, r0, 1
jumpr one_second, 10, lt
Please tell me what could be the matter?
System:
Executing C:\Programs\Python\Python37\python.exe C:\esp-idf\tools\idf_tools.py list
* xtensa-esp32-elf: Toolchain for Xtensa (ESP32) based on GCC
- esp-2019r2-8.2.0 (recommended, installed)
* xtensa-esp32s2-elf: Toolchain for Xtensa (ESP32-S2) based on GCC
- esp-2019r2-8.2.0 (recommended, installed)
* esp32ulp-elf: Toolchain for ESP32 ULP coprocessor
- 2.28.51.20170517 (recommended, installed)
* cmake: CMake build system
- 3.13.4 (recommended, installed)
* openocd-esp32: OpenOCD for ESP32
- v0.10.0-esp32-20190708 (recommended)
* ninja: Ninja build system
- 1.9.0 (recommended, installed)
* idf-exe: IDF wrapper tool for Windows
- 1.0.1 (recommended, installed)
* ccache: Ccache (compiler cache)
- 3.7 (recommended, installed)

chegewara
Posts: 2207
Joined: Wed Jun 14, 2017 9:00 pm

Re: The syntax for the instruction ULP "jumpr eq" is not correct.

Postby chegewara » Sat Jan 04, 2020 11:12 pm

https://docs.espressif.com/projects/esp ... ased-on-r0

VS

https://docs.espressif.com/projects/esp ... ased-on-r0

Its either change in latest ULP version and you are using older version of esp-idf and/or xtensa toolchain or its mistake in docs latest version.

Andy Korg
Posts: 4
Joined: Sat Jan 04, 2020 2:25 pm

Re: The syntax for the instruction ULP "jumpr eq" is not correct.

Postby Andy Korg » Sun Jan 05, 2020 8:09 am

chegewara wrote:
Sat Jan 04, 2020 11:12 pm
...Its either change in latest ULP version and you are using older version of esp-idf and/or xtensa toolchain or its mistake in docs latest version...
Thank you very much.
There was an old version of the tool, downloaded and installed a fresh one. The problem is gone.

Who is online

Users browsing this forum: No registered users and 151 guests