ESP32-S2 ULP compiling in C

deandob
Posts: 22
Joined: Sun Dec 02, 2018 5:21 am

ESP32-S2 ULP compiling in C

Postby deandob » Thu Jun 10, 2021 2:14 am

All,

From the S2 IDF SDK:
"The main difference from the FSM ULP is this variant can be programmed in C using standard GNU tools"

Can someone explain exactly how to program and compile in C the RISC-V based ULP versus the main Tensilica core. Can all the SDK C commands be treated the same way as we would use them when programming the main core? Any differences?

I could not find any documentation apart from the API guides in github, but its all in assembly.

Thanks.

ESP_Sprite
Posts: 9711
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-S2 ULP compiling in C

Postby ESP_Sprite » Thu Jun 10, 2021 2:37 pm

There's documentation here, does that answer your questions?

deandob
Posts: 22
Joined: Sun Dec 02, 2018 5:21 am

Re: ESP32-S2 ULP compiling in C

Postby deandob » Sat Jun 12, 2021 3:38 am

Hi ESP_Sprite,

That documentation was easy to find but wasn't explicit about how to program the ULP in C especially accessing the SDK functions and registers, however from running this sample https://github.com/espressif/esp-idf/tr ... /ulp_riscv and updating it was easy to conclude you can program the ULP the same way as the main core. Nice!

Who is online

Users browsing this forum: No registered users and 90 guests