Hello, I’m trying to use FreeRTOS on my custom board with a Microchip dsPIC33FJ128GP802. The problem is that the demo that comes with the kernel is for the dsPIC33FJ256GP710 chip so it gives me linker errors.
I tried making a project from scratch following this tutorial but the program can´t create tasks unless I use the heap_4.c and even with that file it can’t run the scheduler, it gives me a target halted error. Debbuggin I noticed that the problem is in the xPortStartScheduler() function (inside vTaskStartScheduler()), when it reaches asm volatile ( “return” ) the program freezes.
Does anyone have any advice for this? Also if someone has a simple project for the dsPIC33FJ128GP802 that can share me it would be really helpful and I’d appreciate it a lot.
Thanks for reading. Best regards.
PD: additional information:
- MPLAB X IDE v5.40
- FreeRTOS 10.3.1
- PIC kit 4
- XC16 v1.50