context switching for LPC 1769

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

context switching for LPC 1769

787 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by venkateshkuppan on Mon Feb 18 11:58:28 MST 2013
I am writing a code for context switching in LPC 1769.
I changed the mode to User/PSP by writing appropriately to the CONTROL register.Next I made use of SVC. But here I get a Hard Fault and error stating ----[COLOR=Red]No source available for "g_pfnVectors() at 0x0"[/COLOR]



I wrote a C program, switched to assembly for changing mode to User/PSP and here I use SVC.
Could you please tell how I can get back to Privileged/MSP and what exactly the error means.

Thankyou.
0 Kudos
Reply
2 Replies

758 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by venkateshkuppan on Tue Feb 19 01:28:58 MST 2013
Fall Guy,

Yes, I did read the book partly.Its a great book for Cortex M3.
But I am a little confused on how to get back to privileged/MSP directly from the SVC which is called from the User/PSP. Am I interpreting anything wrong?Please correct me.I am attaching my code for reference.




Thankyou.
0 Kudos
Reply

758 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Mon Feb 18 12:12:10 MST 2013
Have you read this book - it is very helpful when you are doing low-level stuff on the Cortex-M3
The Definitive Guide to the ARM Cortex-M3, Second Edition
by Joseph Yiu
0 Kudos
Reply