ESP32 dual cores application
Posted: Mon Feb 18, 2019 10:04 am
Hi,
I need to do a really fast acquisition system. I have an accelerometer and I am reading its FIFO 6 times per second. I am getting an interrupt when the FIFO is full and I check a flag boolean in while(1) in app_main. My problem is that I want to print a message every time I finish to read the FIFO, but sometimes the system reads just the first interrupt and then stops... I think that the fact that I am using printf may slow it down and I would like to know how I can do the printing from the second core only and leave the first one just with reading the FIFO using SPI. Then I will have to process the data a little bit and store it in a flash memory...
Regards,
Gabriel
I need to do a really fast acquisition system. I have an accelerometer and I am reading its FIFO 6 times per second. I am getting an interrupt when the FIFO is full and I check a flag boolean in while(1) in app_main. My problem is that I want to print a message every time I finish to read the FIFO, but sometimes the system reads just the first interrupt and then stops... I think that the fact that I am using printf may slow it down and I would like to know how I can do the printing from the second core only and leave the first one just with reading the FIFO using SPI. Then I will have to process the data a little bit and store it in a flash memory...
Regards,
Gabriel