context switching for LPC 1769

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

context switching for LPC 1769

788 次查看
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 项奖励
回复
2 回复数

759 次查看
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 项奖励
回复

759 次查看
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 项奖励
回复