ULP via upython & what language is 'gpio_dump_io_configuration()'? #12869
-
The ULP repro shows how to embed ULP code in a upython program & have it assembled & run. In the examples some of the instructions (like #define DR_REG_RTCIO_BASE 0x3ff48400) look a bit C++ like to me while others (like move r1, state; st r0, r1, 0) are clearly ULP code. Anyway I was reading https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/gpio.html & saw gpio_dump_io_configuration() which won't run if I insert it into the ULP examples.
Is this an espressiff IDE command? Is it a language (like upython or C+) or something else? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It's assembly language (for the riscv-based cpu in the ULP). Like C, it also supports directives like The documentation you're looking at is the C api for the sdk for the main esp32 processor. You can't use this from rhe ULP. You should look at |
Beta Was this translation helpful? Give feedback.
-
Huh. Wrong processor, wrong chip architecture. I need to improve my
situational awareness.
…On Fri, 3 Nov 2023, 7:56 pm Jim Mussared, ***@***.***> wrote:
It's assembly language (for the riscv-based cpu in the ULP). Like C, it
also supports directives like #define, but it's assembly language.
The documentation you're looking at is the C api for the sdk for the main
esp32 processor. You can't use this from rhe ULP.
You should look at
https://github.com/micropython/micropython-esp32-ulp/blob/master/docs/index.rst
—
Reply to this email directly, view it on GitHub
<#12869 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AV562M5MECXPUNUMKBIM5LTYCSWT5AVCNFSM6AAAAAA64BHUP2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TINRUG4YTI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
It's assembly language (for the riscv-based cpu in the ULP). Like C, it also supports directives like
#define
, but it's assembly language.The documentation you're looking at is the C api for the sdk for the main esp32 processor. You can't use this from rhe ULP.
You should look at
https://github.com/micropython/micropython-esp32-ulp/blob/master/docs/index.rst