FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [October 2013 Threads]
Hi,
vPortStartFirstTask crashes in cortex m0p controller
void vPortStartFirstTask( void )
{
__asm volatile(
" movs r0, #0x00 n" /* Locate the top of stack. /
" ldr r0, [r0] n"
" msr msp, r0 n" / Set the msp back to the start of the stack. /
" cpsie i n" / Globally enable interrupts. /
" svc 0 n" / System call to start first task. */
" nop n"
);
}
Inorder to call the svc instruction inorder to start the scheduler we are enabling the interrupt.
since basepri is not implemented will this cause an issue...
is there any solution for this...
is there any steps to be taken care...
thanks in advance
Please don't duplicate threads. It's really not helpful. I've been working on a solution, which I now have working, and will post it to your original thread once I have tested it.
Regards.
[in the mean time, I would guess that you can get around this by ensuring all peripheral interrupts are disabled until after the scheduler has been started]
thanks for your reply richard
thanks in advance
thanks for your reply richard
thanks in advance
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.