Trying to use core 0 on TTGO Lilygo v1.6

I tried to use FreeRTOS on ttgo v1.6 board embedding an ESP32 microcontroller.

I'm using xCreateTaskPinnedToCore() to create 2 tasks, one to drive a:servo motor and the other one to debug, send data via WiFi or store on SDCard.

Everything is OK when I create the tasks on core 1, the défaut one, but if I try to pin a task to core 0, this one behave strangely or even freezes.

I read that core 0 is used by WiFi and Lora stacks, but I'm not really sure having well understood the architecture.
Does it explain we cannot execute any task on core 0?

Does the serial monitor print out any RTOS related error messages?

I don't think so, but I'll have to recheck and I couldn't do it before the end of week.
Anyway when I assign the debug task on core 0, driving an old display connected to i2c, I can't drive the display correctly.
And when I
Assign the high speed task on core 0 which drives a servo motor based on ICM20948 infos at a cycle time of 1.5 ms l, everything is freezed.

Choose Verbose error reporting in upload options

I'll try it

I enabled core verbosity and is what I get, seems to not output any error!

configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5856
entry 0x400806a8
[D][WiFiGeneric.cpp:374] _eventCallback(): Event: 0 - WIFI_READY
[D][WiFiGeneric.cpp:374] _eventCallback(): Event: 2 - STA_START
ESP-NOW initialized : 30:83:98:DC:CD:1C
Sending to Peer 0C:DC:7E:62:D5:48

Initializing SD card...initialization failed!
Enable DLPF for Accelerometer returned: All is well.
Enable DLPF for Gyroscope returned: All is well.

Configuration complete!

But this is the unsynchronised display I get, when it's on core 0:


instead of this on core 1:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.