MCF52235EVB - Exception vector name : address error

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

MCF52235EVB - Exception vector name : address error

1,766 次查看
paddy
Contributor I
Hi,
 
I have written code for UART to display in the hyperterminal, this code can be able to flash on the internal flash memory. it is working fine but i tried with debug for the same code it shows the above error, i had tried by erasing the existing code. the error shows in the startcf.c -- asm void _startup(),  * Pre-init SP, in case memory for stack is not valid it should be setup using
    MEMORY_INIT before __initialize_hardware is called
 */
 lea __SP_AFTER_RESET,a7;
 /* it points this line as error */
 
 i am not familar with this memory segement could please suggest me.
 
To modify the startup code, what all the scenarios should be taken care
 
Thanks & Regards,
标签 (1)
0 项奖励
回复
2 回复数

848 次查看
RichTestardi
Senior Contributor II
Hi,
 
If I understand correctly, when you run the code from flash, not under the debugger, all is fine, but when you run it under the debugger, you receive the error above?
 
Are you trying to debug from flash or RAM?
 
You can easily get this error if attempt to debug from flash, but don't (manually) program the flash first.
 
You can also get the error if you attempt to debug from RAM, but don't set the debugger to (automatically) download the code, I believe.
 
Beyond this, you'll want to make sure the VBR you set in your debugger cfg file matches the location of your VBR indicated in your xMAP file, but unless you went and changed something, they should be set correctly by default.
 
-- Rich
0 项奖励
回复

848 次查看
paddy
Contributor I
Hi Rich,
 
You are correct, when i debug from flash it shows the error if i debug from RAM there is no error.
thank you very much
 
But i am not understand the concept, could you please explain me
 
 
Thanks & Regards,
0 项奖励
回复