Exception Vector Name: address error in 2nd line of asm_startmeup

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

Exception Vector Name: address error in 2nd line of asm_startmeup

跳至解决方案
3,091 次查看
ademaure
Contributor II

Hello all

 

We have work on a project for a while with an MCF52223

 

We are trying to add LED control to our design

We have added only few lines of known reliability in order to control the GPIO .

 

when we debug the code from flash the code freeze and diplay the error message "Exception Vector Name: address error" the error occurs in the 2nd line of asm_startmeup. (move D0, D6)

we replaced the line by NOP and the program falls over this instruction.

 

We have check the memory and we have space left.

 

Please Help! What is happening we cannot make sense of it? is this a common problem?

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,841 次查看
ademaure
Contributor II

Thank you for your time and advice.

 

We found out what went wrong today.  Surprisingly it did not fail in previous version of our software only when some lines of code were added in the main() function. 

 

The RAM and FLASH memory map files were inconsistent.

The space in memory left for vector tables were 0X500 and 0X400 respectively. I do not know how the 4 was replace by a 5 in the RAM memory map file but the consequences were problematic.

 

Thank you again for your help.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,841 次查看
CrasyCat
Specialist III

Hello

 

I would recommend you to submit a service request for that.

Click here to submit a service request.

Make sure to attach a reproducible project and installed product information to the service request.
To generate the required information:
- Start CodeWarrior
- Open the project
- Select "Help" -> "Pack and Go" and follow instructions on the screen.

Attach the generated .zip file to the SR.

CrasyCat

0 项奖励
回复
1,842 次查看
ademaure
Contributor II

Thank you for your time and advice.

 

We found out what went wrong today.  Surprisingly it did not fail in previous version of our software only when some lines of code were added in the main() function. 

 

The RAM and FLASH memory map files were inconsistent.

The space in memory left for vector tables were 0X500 and 0X400 respectively. I do not know how the 4 was replace by a 5 in the RAM memory map file but the consequences were problematic.

 

Thank you again for your help.

0 项奖励
回复
1,841 次查看
lel_chen
Contributor I

Hi,

    Iam a beginner and Iam facing the same issue. The address error is thrown after I have introduced few lines of code to main task. 

   How exactly did you solve the issue? Which fields in the intflash.lcf file should I modify? Based on  what? I have attached my intflash.elf - map file for reference.

 

    RAm capacity: 64KB

 

 

Thanks,

Chen

 

intflash_d.elf.doc

Message Edited by t.dowe on 2009-08-31 10:31 AM
0 项奖励
回复
1,841 次查看
ademaure
Contributor II

Hello

 

FLASH and RAM *.lcf files are there to tell the Compiler how you are using the memory that you have.

The 2 files must be consistent for step by step debugging. Check your mapping of memory in both files and see if they are the same. In our case we had the vector table for RAM taking 0x500 addresses of space in the (...)RAM.lcf file and 0x400 in the (...)FLASH.lcf file.

 

Good luck

0 项奖励
回复