Search found 30 matches
- Fri Jan 13, 2023 8:21 pm
- Forum: ESP-IDF
- Topic: High-level interrupt doesn't work with IDF V5.0?
- Replies: 2
- Views: 1550
Re: High-level interrupt doesn't work with IDF V5.0?
Does anyone have any clue?
- Thu Jan 12, 2023 4:59 am
- Forum: ESP-IDF
- Topic: High-level interrupt doesn't work with IDF V5.0?
- Replies: 2
- Views: 1550
High-level interrupt doesn't work with IDF V5.0?
Hi There, I have a project which uses high-level (level 5) GPIO interrupt and high-level timer interrupt. Previously it works very well with ESP-IDF V4.4. This week I updated the IDF to V5.0 release, after compiling and flashing, neither GPIO interrupt nor timer interrupt works anymore. Does anyone ...
- Sat Aug 27, 2022 10:14 pm
- Forum: Hardware
- Topic: ESP32-S3 setup external jtag
- Replies: 2
- Views: 2792
Re: ESP32-S3 setup external jtag
To my understanding, "USB Serial/JTAG controller" is the on-chip JTAG via ESP USB D+ D- pin. PAD_JTAG is external JTAG which connects to ESP32 TMS, TDI, TDO...
set EFUSE_DIS_PAD_JTAG=1 will permanently disable external JTAG,
set EFUSE_DIS_USB_JTAG=1 will permanently disable on-chip JTAG via USB.
set EFUSE_DIS_PAD_JTAG=1 will permanently disable external JTAG,
set EFUSE_DIS_USB_JTAG=1 will permanently disable on-chip JTAG via USB.
- Mon Aug 01, 2022 3:48 am
- Forum: ESP-IDF
- Topic: How to reset the entire system? esp_restart() doesn't work sometimes
- Replies: 4
- Views: 5632
Re: How to reset the entire system? esp_restart() doesn't work sometimes
I see... Thank you Sprite!
I don't have any debugger for now, but I'll try it in the near future.
I don't have any debugger for now, but I'll try it in the near future.
- Sun Jul 31, 2022 11:55 pm
- Forum: ESP-IDF
- Topic: How to reset the entire system? esp_restart() doesn't work sometimes
- Replies: 4
- Views: 5632
Re: How to reset the entire system? esp_restart() doesn't work sometimes
In ' esptool.py ' there is a function hard_reset(...) , attached below. With this hard_reset everything works well. Can I do the same hard reset internally on ESP32, or it has to be done externally? def hard_reset(self): print('Hard resetting via RTS pin...') self._setRTS(True) # EN->LOW time.sleep(...
- Sun Jul 31, 2022 11:06 pm
- Forum: ESP-IDF
- Topic: How to reset the entire system? esp_restart() doesn't work sometimes
- Replies: 4
- Views: 5632
How to reset the entire system? esp_restart() doesn't work sometimes
Hi Everyone, In my project, I'm using ESP32-S3, IDF, and have 2 level-5 GPIO interrupts, 1 level-5 timer interrupt, as well as some uart, SPI, USB peripherals. It will have to restart after some parameter changes. Function esp_restart() is called to restart, but sometimes the program will be then st...
- Thu Jun 30, 2022 6:04 am
- Forum: ESP-IDF
- Topic: How to delay exact CPU cycles?
- Replies: 5
- Views: 4758
Re: How to delay exact CPU cycles?
The method works as expected, but didn't resolve the problem. It does execute a various number of nop. The problem is jitter happens when it executes the series of nop instructions(less than 32), making the final time not accurate. The time error of the method is attached below. Every 1.33 seconds t...
- Thu Jun 30, 2022 4:43 am
- Forum: ESP-IDF
- Topic: How to delay exact CPU cycles?
- Replies: 5
- Views: 4758
Re: How to delay exact CPU cycles?
Thank you Sprite, that's a brilliant idea! I'll try and let you know if it works
Best,
Wenpeng
Best,
Wenpeng
- Wed Jun 29, 2022 5:02 am
- Forum: ESP-IDF
- Topic: How to delay exact CPU cycles?
- Replies: 5
- Views: 4758
Re: How to delay exact CPU cycles?
I believe you are referring instruction loop, loopgtz or loopnez . They are zero-overhead loop instructions. I tried these 3 instructions this afternoon, but I can't get them working. One of the example code is attached below, I counted how many loops are executed, but it seems only executed 1 time....
- Tue Jun 28, 2022 9:19 pm
- Forum: ESP-IDF
- Topic: How to delay exact CPU cycles?
- Replies: 5
- Views: 4758
How to delay exact CPU cycles?
In the high-priority interrupt I tried to delay the command by exact CPU cycles. But it seems the best accuracy of CPU delay I can get is 7 CPU cycles. I have some code that requires low interrupt jitter. Even with level-5 interrupt jitter still exists, and the jitter can be 23 CPU cycles caused by ...