Search found 10 matches

by mad_b747
Mon Jul 27, 2020 2:50 pm
Forum: General Discussion
Topic: Turning off interrupts on core 1
Replies: 12
Views: 2536

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...
by mad_b747
Mon Jul 27, 2020 2:17 pm
Forum: General Discussion
Topic: Turning off interrupts on core 1
Replies: 12
Views: 2536

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...
by mad_b747
Mon Jun 22, 2020 4:40 am
Forum: ESP32 IDF
Topic: esp_timer_get_time() function performance
Replies: 3
Views: 330

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...
by mad_b747
Sun Jun 21, 2020 3:37 pm
Forum: ESP32 IDF
Topic: esp_timer_get_time() function performance
Replies: 3
Views: 330

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) {...
by mad_b747
Mon Jun 08, 2020 5:29 am
Forum: General Discussion
Topic: Turning off interrupts on core 1
Replies: 12
Views: 2536

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 ...
by mad_b747
Thu Jun 04, 2020 4:13 pm
Forum: ESP32 IDF
Topic: ESP IDF installation error: Unexpected end of archive
Replies: 5
Views: 981

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...
by mad_b747
Thu Jun 04, 2020 2:15 pm
Forum: General Discussion
Topic: Turning off interrupts on core 1
Replies: 12
Views: 2536

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. :)
by mad_b747
Wed Jun 03, 2020 4:47 pm
Forum: General Discussion
Topic: Turning off interrupts on core 1
Replies: 12
Views: 2536

Re: Turning off interrupts on core 1

Hi, did you get any progress on that?
by mad_b747
Mon Apr 20, 2020 2:10 pm
Forum: General Discussion
Topic: RTOS running on one core only
Replies: 33
Views: 12188

Re: RTOS running on one core only

Hello Mr. @HelWeb I found the time critical core 1 operations solution as described by you very suitable to my needs. In fact, I would like to make a bare metal in core 1 even if being inside a task called with no interrupts on that core; no other tasks or O.S. However I seen in some answers in this...
by mad_b747
Sun Apr 12, 2020 1:30 pm
Forum: General Discussion
Topic: ESP32 - GPIO speed lower than expected
Replies: 10
Views: 85998

Re: ESP32 - GPIO speed lower than expected

Not sure for the expressif toolchain, but since many years ago, when one puts an instruction in the code that is a fixed math or logical expression, usually the compiler converts it to the resulting value, so should be no difference in writing 1<<3 or writing 8 or 0x8 or 0x08.

Go to advanced search