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

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

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

Jump to solution
1,842 Views
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?

Labels (1)
0 Kudos
1 Solution
592 Views
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.

View solution in original post

0 Kudos
4 Replies
592 Views
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 Kudos
593 Views
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 Kudos
592 Views
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 Kudos
592 Views
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 Kudos