Search found 77 matches

by chromebin
Sat Aug 31, 2019 4:53 pm
Forum: General Discussion
Topic: time measurement error in (xTaskGetTickCount() * portTICK_PERIOD_MS)
Replies: 5
Views: 9387

Re: time measurement error in (xTaskGetTickCount() * portTICK_PERIOD_MS)

About interrupts: everything is handled using FreeRTOS, except for a post-SPI transfer interrupt, active for 2us (on the slower project). Both projects/devices use SPI-transfers using spi_device_transmit(). In other words, I see no reason for xTaskGetTickCount() to vary. Totally unexpected. I'll be ...
by chromebin
Fri Aug 30, 2019 7:29 pm
Forum: General Discussion
Topic: time measurement error in (xTaskGetTickCount() * portTICK_PERIOD_MS)
Replies: 5
Views: 9387

Re: time measurement error in (xTaskGetTickCount() * portTICK_PERIOD_MS)

So now I inserted a delay to avoid CPU hogging in the worst case scenario, and surprisingly I'm back to a relation where one CPU/project sees time passing 11..18% faster than the other.

Weird.
by chromebin
Fri Aug 30, 2019 7:16 pm
Forum: General Discussion
Topic: time measurement error in (xTaskGetTickCount() * portTICK_PERIOD_MS)
Replies: 5
Views: 9387

Re: time measurement error in (xTaskGetTickCount() * portTICK_PERIOD_MS)

To avoid sdkconfig related issues I recreated those files from scratch. The only differences between the projects: - 80MHz vs 40MHz CPU base frequency - 240MHz vs 160MHz CPU clock frequency - 80MHz vs 40MHz SSPI flash frequency It is the slower CPU that trails behind the faster CPU (but nowhere near...
by chromebin
Fri Aug 30, 2019 5:27 pm
Forum: General Discussion
Topic: time measurement error in (xTaskGetTickCount() * portTICK_PERIOD_MS)
Replies: 5
Views: 9387

time measurement error in (xTaskGetTickCount() * portTICK_PERIOD_MS)

Simple question: what could affect the result of this code? uint32_t FreeRTOS::getTimeSinceStart() { return (uint32_t) (xTaskGetTickCount() * portTICK_PERIOD_MS); } I have 2 projects and one sees time passing about 20% faster than the other. I am asking because no matter what I configure in menuconf...
by chromebin
Thu Aug 01, 2019 2:42 pm
Forum: General Discussion
Topic: all IDF header files are found, except the files in ~\esp\esp-idf\components\lwip\include
Replies: 2
Views: 5033

Re: all IDF header files are found, except the files in ~\esp\esp-idf\components\lwip\include

Did you try #include "dhcpserver/dhcpserver.h" WiFive, you're my hero, that works! Now I'm scratching my head, as the IDF actually seems to follow a different rule than the instruction that says to add the `include` folders, like `${IDF_PATH}/components/lwip/include`, to the Eclipse paths. So I sti...
by chromebin
Wed Jul 31, 2019 3:12 pm
Forum: General Discussion
Topic: all IDF header files are found, except the files in ~\esp\esp-idf\components\lwip\include
Replies: 2
Views: 5033

all IDF header files are found, except the files in ~\esp\esp-idf\components\lwip\include

I added a line to my list of include files: #include "wifi-task.h" #include "esp_event_loop.h" #include "esp_wifi.h" #include "tcpip_adapter.h" #include "lwip/ip4_addr.h" #include "apps/dhcpserver/dhcpserver.h" // <== added The added line fails with `fatal error: apps/dhcpserver/dhcpserver.h: No suc...
by chromebin
Tue Jul 16, 2019 2:03 pm
Forum: General Discussion
Topic: Different esp_ota_ops.h from 'git clone' and github .zip download
Replies: 6
Views: 8440

Re: Different esp_ota_ops.h from 'git clone' and github .zip download

Well, the .exe doesn't seem to know anything about (my existing) MSYS32, and wishes to install in some user folder, so I aborted it. For now. So I guess I'm stuck. Again. What does this .exe do?? The linking page says "To quickly setup the toolchain and other tools in standard way, using the ESP-IDF...
by chromebin
Tue Jul 16, 2019 1:44 pm
Forum: General Discussion
Topic: Different esp_ota_ops.h from 'git clone' and github .zip download
Replies: 6
Views: 8440

Re: Different esp_ota_ops.h from 'git clone' and github .zip download

Now I'm instructed to update the toolchain, so I found: https://www.esp32.com/viewtopic.php?t=7400, which deals with the v2 update, but the links no longer work. Then I found https://docs.espressif.com/projects/esp-idf/en/latest/get-started/windows-setup.html, not quite an update tutorial, but downl...
by chromebin
Tue Jul 16, 2019 1:06 pm
Forum: General Discussion
Topic: Different esp_ota_ops.h from 'git clone' and github .zip download
Replies: 6
Views: 8440

Re: Different esp_ota_ops.h from 'git clone' and github .zip download

So git clone terminated and then I got an error: "No rule to make target 'check_python_dependencies', needed by 'all'." Decoding the error message vomit I find it says to run (as I have no pacman): C:/msys32/mingw32/bin/python.exe -m pip install --user -r C:/msys32/home/user/esp/esp-idf/requirements...
by chromebin
Tue Jul 16, 2019 12:45 pm
Forum: General Discussion
Topic: Different esp_ota_ops.h from 'git clone' and github .zip download
Replies: 6
Views: 8440

Re: Different esp_ota_ops.h from 'git clone' and github .zip download

Thanks for the replies. Well, as stated, I followed the instructions in the getting started section on the page I linked to, which now (as an apparently direct consequence of my question) suddenly (and without comment here ;) redirects to https://www.espressif.com/en/support/download/documents. As a...