I had a hard time to get to this point in my project, and I’ve been halted again.
My simple code compiles fine, yet when I upload it to my microcontroller it won’t do anything it is supposed to do.
I am using a dsPIC33FJ128MC802 microcontroller with MPLABx xc16 compiler and microstick2 test board. I managed to configure one of the PIC24 sample project to my dsPIC. Also I can blink leds on their own and I included my own UART functions that send characters to the console and that also works fine under the RTOS.
The problem starts when I want to start making tasks. I have no idea how to even start looking for the source of the error. Any help would be really appreciated!
So here is my line of code:
void send_task(void *p)
unsigned char data='k'; UART1PutChar(data); }
int main (void)
pll_setup(); // makes 40 MIPS init_UART1(); // Initialize UART1 for 9600,8,N,1 TX/RX prvSetupHardware(); //make task xTaskCreate(send_task, "send_task", 4096, 0, 1, 0); vTaskStartScheduler(); //UART TEST, this works by itself
/* while (1)
}*/ return 0;