Page 1 of 1

ESP32-S2 ULP compiling in C

Posted: Thu Jun 10, 2021 2:14 am
by deandob
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.

Re: ESP32-S2 ULP compiling in C

Posted: Thu Jun 10, 2021 2:37 pm
by ESP_Sprite
There's documentation here, does that answer your questions?

Re: ESP32-S2 ULP compiling in C

Posted: Sat Jun 12, 2021 3:38 am
by deandob
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!