Search found 12 matches

by Sheepling
Fri Apr 12, 2024 10:18 pm
Forum: ESP-IDF
Topic: Tsens ulp instruction
Replies: 4
Views: 3427

Re: Tsens ulp instruction

You're replying to a 4-year old thread; I was talking about the 'original' ESP32 (no -S or -C suffix). I think it's indeed supported again on later chips. I guess we didn't bother to implement it in the ULP toolchain yet, though. Oof, my mistake :( I'm assuming there's no other way to read the temp...
by Sheepling
Thu Apr 11, 2024 5:23 pm
Forum: ESP-IDF
Topic: Tsens ulp instruction
Replies: 4
Views: 3427

Re: Tsens ulp instruction

I've tried using this instruction as I was under the impression that it still worked, as per the latest datasheet: ESP32-S3 https://www.espressif.com/sites/default/files/documentation/esp32-s3_technical_reference_manual_en.pdf on page 317 and ESP32-S2 https://www.espressif.com/sites/default/files/do...
by Sheepling
Wed Apr 10, 2024 6:20 am
Forum: ESP Cloud 中文讨论版
Topic: ESP-S2 RainMaker 和 Deep-sleep 模式
Replies: 0
Views: 7193

ESP-S2 RainMaker 和 Deep-sleep 模式

我已在英文讨论版发了这个问题,但是没有什么回答。对不起我的中文不太好 QWQ:https://esp32.com/viewtopic.php?f=41&t=39217

开发环境:使用IDF-5.1.1,芯片为esp32s2
我使用的是ULP-FSM 协处理器和ESP Rainmaker。

我现在的问题是芯片进入了Deep-sleep 模式,过了几段电源循环(差不多十秒后)就没有任何反应了。请问下大家有经过这种问题吗,使用ULP-FSM 协处理器和ESP Rainmaker?

对这个问题有什么建议都好,多谢。 :|
by Sheepling
Thu Apr 04, 2024 12:45 am
Forum: ESP RainMaker
Topic: ESP-S2 RainMaker and Deep Sleep modes
Replies: 0
Views: 7080

ESP-S2 RainMaker and Deep Sleep modes

Hello all, I am currently working on a project where the esp32 works like an adaptive sensors, sensing data in deep-sleep and uploading data through the RainMaker in active mode at 4 second intervals. I'm having an issue where upon entering deep-sleep the ulp timer cannot wake-up the main processor ...
by Sheepling
Wed Mar 27, 2024 1:11 pm
Forum: ESP RainMaker
Topic: Enabling ESP Rainmaker Insights
Replies: 1
Views: 5311

Re: Enabling ESP Rainmaker Insights

Upon reading on the ESP Insights, it has come to my attention that this is because data is stored in the RTC memory. My code for the ULP is also stored here, hence the error.

https://github.com/espressif/esp-insigh ... /README.md

My mistake :(
by Sheepling
Mon Mar 25, 2024 5:25 pm
Forum: ESP RainMaker
Topic: Enabling ESP Rainmaker Insights
Replies: 1
Views: 5311

Enabling ESP Rainmaker Insights

Hello all, I have an issue with enabling the ESP-Rainmaker insights. I currently work with the ESP-IDF on the ESP32S2 and am using it with the ULP ADC sensors for a project. Upon enabling insights in menuconfig (component config->ESP Insights->Enable ESP Insights), the project can no longer flash du...
by Sheepling
Tue Mar 19, 2024 3:32 pm
Forum: ESP-IDF
Topic: ESP32-S2 ULP Adding values into an array within a loop
Replies: 7
Views: 2294

Re: ESP32-S2 ULP Adding values into an array within a loop

According to https://docs.espressif.com/projects/esp-idf/en/v5.2.1/esp32s2/api-reference/system/ulp_instruction_set.html#st-store-data-to-the-memory ST does: Mem[Rdst + offset / 4]{31:0} = {PC[10:0], 3'b0, Rdst, Rsrc[15:0]} where 'offset' can be a (signed) 13-bit value - coincidentally just enough ...
by Sheepling
Mon Mar 18, 2024 2:57 pm
Forum: ESP-IDF
Topic: ESP32-S2 ULP Adding values into an array within a loop
Replies: 7
Views: 2294

Re: ESP32-S2 ULP

st r0, r3, sample_counter Note that the 3rd argument to the ST instruction must be a constant. The assembler takes the 'address' of the label 'sample_counter' as the constant value. Maybe try something like this: move r3, sample_counter ld r3, r3, 0 // load sample counter value into r3 st r0, r3, a...
by Sheepling
Mon Mar 18, 2024 2:37 pm
Forum: ESP-IDF
Topic: ESP32-S2 ULP Adding values into an array within a loop
Replies: 7
Views: 2294

Re: ESP32-S2 ULP

By which value do you increment the sample_counter? I think you need to increment it by 4. The third argument of the ST command is a number of bytes, not words. See https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/ulp_instruction_set.html#ulp-fsm-addressing I've set ...
by Sheepling
Sat Mar 16, 2024 7:59 pm
Forum: ESP-IDF
Topic: ESP32-S2 ULP Adding values into an array within a loop
Replies: 7
Views: 2294

ESP32-S2 ULP Adding values into an array within a loop

This code is based off the existing adc threshold example for the ESP32S2 (https://github.com/espressif/esp-idf/tree/58283e385a7cbd04b8f628af15b5acf633aac2f3/examples/system/ulp_fsm/ulp_adc). I need to store ADC values into an array in the ULP FSM mode so that the chip can undergo multiple deep-slee...