Notifications
Clear all

ESP32-S3 Issues with Arduino Libraries used in the Videos

3 Posts
2 Users
1 Reactions
1,923 Views
(@hopworks)
Member
Joined: 1 year ago
Posts: 3
Topic starter  

Hi All, 

First time poster and I hope I got the subforum right!!

I was following Bill in the YouTube video IR Remotes & Microcontrollers - Arduino & ESP32 and have my Arduino IDE setup exactly as prescribed. The problem I have is that my ESP32-S3 throws an error and it repeats. The example is the SimpleSend example from the library mentioned. 

The actual error is...

assert failed: prvSelectHighestPriorityTaskSMP tasks.c:3645 (xTaskScheduled == ( ( BaseType_t ) 1 ))

I researched this a lot because it has happened to me a lot with other libraries that are suppose to work with the ESP32 and found that it has something to do with the FreeRTOS scheduler and priority levels and how they are set up, etc. etc. And since this has happened on and off with other libraries, I wanted to know what I can do to fix it. 

I realize this goes WAY beyond editing a library to change a default GPIO pin used. But I do not know where to go in the library to configure it to where it manages the scheduler that will work with my flavor of ESP32. 

It's important to me because I have quite a few ESP32-S3's, from a number of manufacturers, and would LOVE to use them in everything I want to do. Including Infrared Remote detection and control.

I hope I was not too vague. But if so, please let me know what I am missing and I will include it. 

Also, my ESP32 crash decoder I installed in Arduino IDE was there, worked (kinda) but after an update, it disappeared. Is this normal? Is there an online equivalent?

THANKS!

Ready to analyze NEC IR signal at pin 15

assert failed: prvSelectHighestPriorityTaskSMP tasks.c:3645 (xTaskScheduled == ( ( BaseType_t ) 1 ))

Backtrace: 0x403856c3:0x3fca0bc0 0x4037f0f7:0x3fca0be0 0x4037407d:0x3fca0d20 0x4037df6c:0x3fca0d50 0x4037df62:0xa5a5a5a5 |<-CORRUPTED

ELF file SHA256: ffa8fdb62


   
Quote
SkiddieNomad
(@skiddienomad)
Member
Joined: 12 months ago
Posts: 14
 

Posted by: @hopworks

Hi All, 

First time poster and I hope I got the subforum right!!

I was following Bill in the YouTube video IR Remotes & Microcontrollers - Arduino & ESP32 and have my Arduino IDE setup exactly as prescribed. The problem I have is that my ESP32-S3 throws an error and it repeats. The example is the SimpleSend example from the library mentioned. 

The actual error is...

assert failed: prvSelectHighestPriorityTaskSMP tasks.c:3645 (xTaskScheduled == ( ( BaseType_t ) 1 ))

I researched this a lot because it has happened to me a lot with other libraries that are suppose to work with the ESP32 and found that it has something to do with the FreeRTOS scheduler and priority levels and how they are set up, etc. etc. And since this has happened on and off with other libraries, I wanted to know what I can do to fix it. 

I realize this goes WAY beyond editing a library to change a default GPIO pin used. But I do not know where to go in the library to configure it to where it manages the scheduler that will work with my flavor of ESP32. 

It's important to me because I have quite a few ESP32-S3's, from a number of manufacturers, and would LOVE to use them in everything I want to do. Including Infrared Remote detection and control.

I hope I was not too vague. But if so, please let me know what I am missing and I will include it. 

Also, my ESP32 crash decoder I installed in Arduino IDE was there, worked (kinda) but after an update, it disappeared. Is this normal? Is there an online equivalent?

THANKS!

Ready to analyze NEC IR signal at pin 15

assert failed: prvSelectHighestPriorityTaskSMP tasks.c:3645 (xTaskScheduled == ( ( BaseType_t ) 1 ))

Backtrace: 0x403856c3:0x3fca0bc0 0x4037f0f7:0x3fca0be0 0x4037407d:0x3fca0d20 0x4037df6c:0x3fca0d50 0x4037df62:0xa5a5a5a5 |<-CORRUPTED

ELF file SHA256: ffa8fdb62

 



   
ReplyQuote
SkiddieNomad
(@skiddienomad)
Member
Joined: 12 months ago
Posts: 14
 

Hey man I'm kinda a little new but when you state that it keeps doing it I'm assuming you mean it continues to run that same couple of lines in the serial monitor every couple of seconds or so.  If so check for a brownout detector or some resistor issues you may need to use one which I believe is already on the board and you can just add it to your code.  Also it could be a memory issue which seems also likely with the backtrace (though it could also be other things) so ensure you have psram enabled and make sure you try a bigger partition scheme if not a custom one if possible.  lastly, check the stack overflow by throwing somthing like this into your code,

#define configCHECK_FOR_STACK_OVERFLOW 2

void vApplicationStackOverflowHook(TaskHandle_t xTask, char *pcTaskName)
{
printf("Stack overflow detected in task: %s\n", pcTaskName);
// Optional: add your own error handling, reset, or halt
abort(); // Halt execution (optional)
}

as for the resistor it would likely be similar to

#if defined(CAMERA_MODEL_ESP_EYE)
  pinMode(13, INPUT_PULLUP);
  pinMode(14, INPUT_PULLUP);
#endif

 

don't use that though as that is more specific to my code but you'll have to do a little research if you need to enable/disable a brownout detector or resistors.  I'd probably check for memory issues first as that would be quicker to find out.

chatgpt or another ai can help you out a bit but check out some forums specifically for the board as they can be much more helpful and save lots of time sometimes as well.

 



   
ReplyQuote