cpq / mdk

A bare metal SDK for the ESP32 & ESP32C3
MIT License
188 stars 26 forks source link

Enable zicsr extension for ESP32-C3 #20

Open j0hax opened 3 weeks ago

j0hax commented 3 weeks ago

In the current state, attempting to access a CSR results in a message like main.c:13: Error: unrecognized opcode csrr s0,0x7e2, extension zicsr required.

The ESP32-C3 supports the _zicsr extension, which can be enable with the march compiler flag.