Search found 2 matches

by dmydmy
Thu Feb 13, 2025 11:33 am
Forum: ESP32 Arduino
Topic: ESP32S3 FSM ULP Code Question
Replies: 1
Views: 1056

Re: ESP32S3 FSM ULP Code Question

Found the solution.

Code: Select all

M_LABEL(),
does NOT count as an instruction. So it needs to be

Code: Select all

I_BL(2, 100),
for the code to work.
by dmydmy
Tue Feb 11, 2025 3:08 pm
Forum: ESP32 Arduino
Topic: ESP32S3 FSM ULP Code Question
Replies: 1
Views: 1056

ESP32S3 FSM ULP Code Question

Hi all, I have a question regarding my ESP32S3 FSM ULP program. This one here works, when I periodically read out address 130 in the Arduino code I can see the counter increasing const ulp_insn_t ulp_prog[] = { M_LABEL(0), I_MOVI(R1, 130), I_LD(R0, R1, 0), I_ADDI(R0, R0, 1), I_ST(R0, R1, 0), M_BX(0)...