-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
程式只有单独SPI读取并没有问题,但在另一个核心执行不同任务时,却会影响到SPI的读取 (IDFGH-12894) #13855
Comments
What happens if you adjust the priority of SPI reading tasks and other tasks? What happens if you use xTaskCreate instead of xTaskCreatePinnedToCore? |
Core 1 only one task, its function is read data by spi, its priority is the highest. I have used xTaskCreatePinnedToCore to create task to assign cpu core. |
Enabling WiFi will add a tiT task. And note that the core number for this task is -1 (Not pinned). Just by enabling WiFi, tasks running on core #1 will be affected.
|
thank you for your informatiom. |
Thanks for reporting, glad to hear that the issue was resolved, feel free to reopen. |
Answers checklist.
IDF version.
esp-idf-v5.0.4
Espressif SoC revision.
ESP32S3
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32-S3-WROOM-1U-N4
Power Supply used.
USB
What is the expected behavior?
我使用FreeRTOS(xTaskCreatePinnedToCore)进行多核分工,core 1做SPI高速的读取不间断,core 0做WiFi的连结与传输。希望两个线程之间相互不影响
What is the actual behavior?
如果程式只有单独SPI读取并没有问题,但在另一个核心执行不同任务时,却会影响到SPI的读取,造成读的资料错误,这是什么原因呢?
明明是在不同核心下工作,怎么会互相影响到?尤其是在wifi连接瞬间,SPI读到错误值越多。
SPI是master,CLK速率40M
ESP32_CPU_Freq为240M,160M时错误更多
Steps to reproduce.
参见上面的说明
Debug Logs.
No response
More Information.
No response
The text was updated successfully, but these errors were encountered: