Search found 12 matches
- Mon Aug 07, 2023 1:21 pm
- Forum: ESP-IDF
- Topic: How fast can I transmit another SPI frame calling spi_device_polling_transmit() again?
- Replies: 3
- Views: 1138
Re: How fast can I transmit another SPI frame calling spi_device_polling_transmit() again?
[Edit] Thanks, this seems to have solved the issue. I presume that, for the compiler, when the next example statement is made, the non mentioned fields are by default initialized to zero spi_bus_config_t buscfg={ .miso_io_num = -1, .mosi_io_num = MOSI_PIN, .sclk_io_num = CLK_PIN, .quadwp_io_num = -1...
- Mon Aug 07, 2023 8:53 am
- Forum: ESP-IDF
- Topic: How fast can I transmit another SPI frame calling spi_device_polling_transmit() again?
- Replies: 3
- Views: 1138
How fast can I transmit another SPI frame calling spi_device_polling_transmit() again?
I have been experimenting with SPI; Set and init for VSPI ok, then considering the code below: (Ignoring that it will trigger watchdog in some seconds and etc.) -Or working dedicated without interrupts enabled. // SPI configuration #define PIN_NUM_MISO GPIO_NUM_19 #define PIN_NUM_MOSI GPIO_NUM_23 #d...
- Mon Jul 27, 2020 2:50 pm
- Forum: General Discussion
- Topic: Turning off interrupts on core 1
- Replies: 13
- Views: 20440
Re: Turning off interrupts on core 1
Below excerpt from my test, stripped out my particular code, in essence the core working is below. There may be unuised variables or other minor issues, but the idea is to provide the essence of what I made based on McLeod's Github code. #pragma GCC optimize ("O3") extern "C" void app_main(void); Ta...
- Mon Jul 27, 2020 2:17 pm
- Forum: General Discussion
- Topic: Turning off interrupts on core 1
- Replies: 13
- Views: 20440
Re: Turning off interrupts on core 1
Hello. I based my tests on this https://github.com/MacLeod-D/ESp32-Fast-external-IRQs I needed to install and configure Espressif IDE for that. Followed the online instructions. Maybe a bit of trial and error. Basically the code is the same. You will of course replace most or all of the inner code o...
- Mon Jun 22, 2020 4:40 am
- Forum: ESP-IDF
- Topic: esp_timer_get_time() function performance
- Replies: 3
- Views: 14772
Re: esp_timer_get_time() function performance
Hello. I searched and found this function that returns the value of a clock counter register; it's just 32 bits so it overflows each ~17.9 seconds, however is fast to give a more precise delay. Tested making a call and saving values before and after 100 asm(" nop"); statements. It returned a differe...
- Sun Jun 21, 2020 3:37 pm
- Forum: ESP-IDF
- Topic: esp_timer_get_time() function performance
- Replies: 3
- Views: 14772
esp_timer_get_time() function performance
Hello. Consider having a task pinned to core 1, running with no interrupts. Inside of it, a routine is called, basically as the example below: ... unsigned long IRAM_ATTR myLoop(int64_t us) { register unsigned long count = 0L; int64_t m = esp_timer_get_time() + us; while (esp_timer_get_time() < m) {...
- Mon Jun 08, 2020 5:29 am
- Forum: General Discussion
- Topic: Turning off interrupts on core 1
- Replies: 13
- Views: 20440
Re: Turning off interrupts on core 1
Well, after some hours during last days studying, setting up esp-idf and using code from Mr. Weber Github repo, It seems that it works. It starts core 0 normally, and set a task to run only on core 1, it ius running an endless testing loop that does a frequency sweep on a GPIO out, I wired it up to ...
- Thu Jun 04, 2020 4:13 pm
- Forum: ESP-IDF
- Topic: ESP IDF installation error: Unexpected end of archive
- Replies: 5
- Views: 8130
Re: ESP IDF installation error: Unexpected end of archive
Hi. Myself facing same install issue, I think the installer does not check correctly neither retry to download or warn the user if the esp-idf zip file is not correctly downloaded. After check the log and find the issue and where it downloads the idf zip file, I manually downlaoded same release into...
- Thu Jun 04, 2020 2:15 pm
- Forum: General Discussion
- Topic: Turning off interrupts on core 1
- Replies: 13
- Views: 20440
Re: Turning off interrupts on core 1
Thanks for your reply. I will seek if I find some solution on that too myself. If I succeed or partly succeed I let you know as well.
- Wed Jun 03, 2020 4:47 pm
- Forum: General Discussion
- Topic: Turning off interrupts on core 1
- Replies: 13
- Views: 20440
Re: Turning off interrupts on core 1
Hi, did you get any progress on that?