ESP32S3 : How to access ULP RISC-V variables ?

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

ESP32S3 : How to access ULP RISC-V variables ?

Postby ThomasESP32 » Fri Dec 08, 2023 3:04 pm

Good afternoon,

I am working on Esp32S3 and I am using the ULP RISC-V coprocessor.
In the ULP Copro Firmware, I have defined a table like this :

uint8_t Table[10][10] = {{......}};

And a variable like this :
uint8_t Variable = 0;

When the program is compiled, the following extern variables appear in the "ulp_main.h" this way :
extern uint32_t Table;
extern uint32_t Variable;

Now, I would like to access the table in the Esp32S3 firmware like this :
Table[0][1] = XXX; // To change the value of the table.

Do you know how to do it ?
I do not manage to access the table, I get an error (StoreProhibited) when doing this...
Do you know why ? How the write the line of code in order to access the table please ?
I do not find the answer.

However, I can access the variable this way : ulp_Variable = X; and this works.

Please I need some help on the subject.
Best regards,

Thomas TRUILHE

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 125 guests