Getting "Exception vector name : Address error" when debugging application

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

Getting "Exception vector name : Address error" when debugging application

4,450 Views
FredT
Contributor II
I'm using CodeWarrior IDE version 5.7.0 and I was using a license that allowed me to compile application less than 128k, but I now need more. I've requested an Evaluation License and installed it, and now I can compile bigger application, but when I program the Internal Flash, the application doesn't seem to run.

When I'm using debug, it says "Exception vector name : Address error" like if I didn't programmed the flash. I was using conditionnal compilation to keep the program under 128k, and each part of the program was work fine independently.

I've done a Verify after the programmation and it succeed.

Thank you

Fred


Message Edited by CrasyCat on 2007-12-05 04:31 PM
Labels (1)
0 Kudos
7 Replies

647 Views
Technoman64
Contributor III
I have ran into this type of exception when I allocated to much RAM for the Heap and the Interrupt Vector table that is copied into RAM was corrupt. Not sure if RAM allocation is the cause in your case but might be worth looking into.
 
I NEVER recieved any type of warning messages when this happened. Codewarior 6.4 for Coldfire.
 
I just purchased the Standard version as I exceeded the 128k limit as well. Rumor has it that Version 7.0 with Processr Expert is just around the corner.


Message Edited by CrasyCat on 2007-12-05 04:32 PM
0 Kudos

647 Views
FredT
Contributor II
I've tried to release some memory. I was near 31 KBytes of RAM used but now I'm at 24 KBytes (huge log!) and it still doesn't work.


Message Edited by CrasyCat on 2007-12-05 04:32 PM
0 Kudos

647 Views
FredT
Contributor II
When the error appear, the debbuger show me part of my code. I assume that's where the error happen. I saw in another message with the same Adress Error, that "code is incorrectly trying to excecute on a non-aligned boundary (or accessing non-aligned memory).".

How can I detect non-aligned boundary or non-aligned memory"

PS: Here the entire message I'm talking about

http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&message.id=271

Thank you

Fred Talbot


Message Edited by CrasyCat on 2007-12-05 04:33 PM
0 Kudos

647 Views
FredT
Contributor II
the problem seem to come from this instruction:

move.l    #___SP_INIT,sp

When I'm having the full application, the move doesn't seem to work properly. I'll try to find where the move is done.

Fred Talbot


Message Edited by CrasyCat on 2007-12-05 04:33 PM
0 Kudos

647 Views
FredT
Contributor II
Finaly it's seem to be a RAM allocation problem, as said by Technoman. When I reduce some buffers size, it's working ok. The thing is the .map file is telling me that I'm using about 25 KBytes of memory, when the MCF52235 is suppose to have 32 KBytes of RAM, and I'm not using dynamic allocation of memory.

# Memory map:
  v_addr   p_addr   size     name
  00000000 00000000 00000000 .vectorrom vectorrom
  00000000 00000000 00000418 .vectors   vectorrom
  00000500 00000500 00000000 .code      code
  00000500 00000500 000295F8 .text      code
  20000000 20000000 00000000 .vectorram vectorram
  20000400 20000400 00000000 .userram   userram
  20000400 00029AF8 000009FC .data      userram
  20000DFC 20000DFC 00005A04 .bss       userram
  20006800 20006800 00000000 .custom    userram
  20006800 0002A4F4 00000018 .romp      userram

Fred Talbot


Message Edited by CrasyCat on 2007-12-05 04:33 PM
0 Kudos

647 Views
FredT
Contributor II
I finaly solve the case. The problem was that in the memory map, it doesn't count the heap and stack size, so I thought I was under the limit but there were an additionnal 8 KBytes use by the heap and stack. If you want to know the size of the heap and stack, it is written in the .lcf file you use (in the lcf repertory).

Fred Talbot


Message Edited by CrasyCat on 2007-12-05 04:33 PM
0 Kudos

647 Views
Black
Contributor I
I would recommend to submit a service request here. Please go to your CodeWarrior menu, choose Help->About...->Installed Products->Save as and attach the resulting text file. Also please attach the xml file containing the flash settings - save them to a file if you don’t have one : Flash Programmer->Save Settings - the Flash  Programmer’s  log - Flash Programmer->Show Log - obtained during your flash programming operations and an example project if possible.
 
Thank you.


Message Edited by CrasyCat on 2007-12-05 04:32 PM
0 Kudos