I have a cw10.2 project with a 5282 target and Win 7 64-bit hostmachine. Nothing but headaches.
When I debug and step through source instructions, I always crash at the same line which happens to be a function call.
When I turn on instruction mode stepping and step through the assembly, I do not crash as long as I use step into. If I use step over I crash???
I have reinstalled Cw10.2 and the PE micro 10 drivers. This behavior has had me hung up and going in circles. Any help would be greatly appreciated.
Here is what the debug window looks like after I "step over" instead of "step into" a function call in instruction stepping mode:
Thread [ID: 0x0] (Suspended: Signal 'Exception 12' received. Description: Exception vector name: Address Error.)
100 0xFFFF091C (0xFFFF091C)() 0xffff091c
99 0x44082610 (0x44082610)() 0x44082610
98 0xFFFF0918 (0xFFFF0918)() 0xffff0918
97 0x44082610 (0x44082610)() 0x44082610
96 0xFFFF0918 (0xFFFF0918)() 0xffff0918
95 0x44082610 (0x44082610)() 0x44082610
94 0xFFFF0918 (0xFFFF0918)() 0xffff0918
93 0x44082610 (0x44082610)() 0x44082610
92 0xFFFF0918 (0xFFFF0918)() 0xffff0918
91 0x44082610 (0x44082610)() 0x44082610
90 0xFFFF0918 (0xFFFF0918)() 0xffff0918
89 0x44082610 (0x44082610)() 0x44082610
88 0xFFFF0918 (0xFFFF0918)() 0xffff0918
87 0x44082610 (0x44082610)() 0x44082610
86 0xFFFF0918 (0xFFFF0918)() 0xffff0918
85 0x44082610 (0x44082610)() 0x44082610
84 0xFFFF0918 (0xFFFF0918)() 0xffff0918
83 0x44082610 (0x44082610)() 0x44082610
82 0xFFFF0918 (0xFFFF0918)() 0xffff0918
81 0x44082610 (0x44082610)() 0x44082610
80 0xFFFF0918 (0xFFFF0918)() 0xffff0918
79 0x44082610 (0x44082610)() 0x44082610
78 0xFFFF0918 (0xFFFF0918)() 0xffff0918
77 0x44082610 (0x44082610)() 0x44082610
76 0xFFFF0918 (0xFFFF0918)() 0xffff0918
75 0x44082610 (0x44082610)() 0x44082610
74 0xFFFF0918 (0xFFFF0918)() 0xffff0918
73 0x44082610 (0x44082610)() 0x44082610
72 0xFFFF0918 (0xFFFF0918)() 0xffff0918
71 0x44082610 (0x44082610)() 0x44082610
70 0xFFFF0918 (0xFFFF0918)() 0xffff0918
69 0x44082610 (0x44082610)() 0x44082610
68 0xFFFF0918 (0xFFFF0918)() 0xffff0918
67 0x44082610 (0x44082610)() 0x44082610
66 0xFFFF0918 (0xFFFF0918)() 0xffff0918
65 0x44082610 (0x44082610)() 0x44082610
64 0xFFFF0918 (0xFFFF0918)() 0xffff0918
63 0x44082610 (0x44082610)() 0x44082610
62 0xFFFF0918 (0xFFFF0918)() 0xffff0918
61 0x44082610 (0x44082610)() 0x44082610
60 0xFFFF0918 (0xFFFF0918)() 0xffff0918
59 0x44082610 (0x44082610)() 0x44082610
58 0xFFFF0918 (0xFFFF0918)() 0xffff0918
57 0x44082610 (0x44082610)() 0x44082610
56 0xFFFF0918 (0xFFFF0918)() 0xffff0918
55 0x44082610 (0x44082610)() 0x44082610
54 0xFFFF0918 (0xFFFF0918)() 0xffff0918
53 0x44082610 (0x44082610)() 0x44082610
52 0xFFFF0918 (0xFFFF0918)() 0xffff0918
51 0x44082610 (0x44082610)() 0x44082610
50 0xFFFF0918 (0xFFFF0918)() 0xffff0918
49 0x44082610 (0x44082610)() 0x44082610
48 0xFFFF0918 (0xFFFF0918)() 0xffff0918
47 0x44082610 (0x44082610)() 0x44082610
46 0xFFFF0918 (0xFFFF0918)() 0xffff0918
45 0x44082610 (0x44082610)() 0x44082610
44 0xFFFF0918 (0xFFFF0918)() 0xffff0918
43 0x44082610 (0x44082610)() 0x44082610
42 0xFFFF0918 (0xFFFF0918)() 0xffff0918
41 0x44082610 (0x44082610)() 0x44082610
40 0xFFFF0918 (0xFFFF0918)() 0xffff0918
39 0x44082610 (0x44082610)() 0x44082610
38 0xFFFF0918 (0xFFFF0918)() 0xffff0918
37 0x44082610 (0x44082610)() 0x44082610
36 0xFFFF0918 (0xFFFF0918)() 0xffff0918
35 0x44082610 (0x44082610)() 0x44082610
34 0xFFFF0918 (0xFFFF0918)() 0xffff0918
33 0x44082610 (0x44082610)() 0x44082610
32 0xFFFF0918 (0xFFFF0918)() 0xffff0918
31 0x44082610 (0x44082610)() 0x44082610
30 0xFFFF0918 (0xFFFF0918)() 0xffff0918
29 0x44082610 (0x44082610)() 0x44082610
28 0xFFFF0918 (0xFFFF0918)() 0xffff0918
27 0x44082610 (0x44082610)() 0x44082610
26 0xFFFF0918 (0xFFFF0918)() 0xffff0918
25 0x44082610 (0x44082610)() 0x44082610
24 0xFFFF0918 (0xFFFF0918)() 0xffff0918
23 0x44082610 (0x44082610)() 0x44082610
22 0xFFFF0918 (0xFFFF0918)() 0xffff0918
21 0x44082610 (0x44082610)() 0x44082610
20 0xFFFF0918 (0xFFFF0918)() 0xffff0918
19 0x44082610 (0x44082610)() 0x44082610
18 0xFFFF0918 (0xFFFF0918)() 0xffff0918
17 0x44082610 (0x44082610)() 0x44082610
16 0xFFFF0918 (0xFFFF0918)() 0xffff0918
15 0x44082610 (0x44082610)() 0x44082610
14 0xFFFF0918 (0xFFFF0918)() 0xffff0918
13 0x44082610 (0x44082610)() 0x44082610
12 0xFFFF0918 (0xFFFF0918)() 0xffff0918
11 0x44082610 (0x44082610)() 0x44082610
10 0xFFFF0918 (0xFFFF0918)() 0xffff0918
9 0x44082610 (0x44082610)() 0x44082610
8 0xFFFF0918 (0xFFFF0918)() 0xffff0918
7 0x44082610 (0x44082610)() 0x44082610
6 0xFFFF0918 (0xFFFF0918)() 0xffff0918
5 0x44082610 (0x44082610)() 0x44082610
4 0xFFFF0918 (0xFFFF0918)() 0xffff0918
3 0x44082610 (0x44082610)() 0x44082610
2 0xFFFF0918 (0xFFFF0918)() 0xffff0918
1 0x44082610 (0x44082610)() 0x44082610
Hello,
just a speculation, maybe there is a problem with the debugger and disabled interrupts while stepping?
Maybe have a look at the setting in the launch configuration
(launch config > Debugger > Interrupts)
if that has any impact.
Just a guess.
Otherwise from the stack trace it looks like somehow the CPU has received an access error.
BK
BK,
I'm not sure what you mean by "problem with debugger and disabled interrupts while stepping". At this this point in the program, I am just running through some system setup routines and no interrupts should be firing off. It is shortly after main().
The address error is causing CodeWarrior to crash.
------------------------
The connection with the debugger was interrupted, probably due to a crash. Would you like to export diagnostic information and send it to freescale?
Description: CORBA connection error
Timestamp: 02.15.2012 12:55
Details: Connection test failed. Reason: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 208 completed: Maybe
----------------------------------------------
I have sent buckets of these to freescale, hopefully they are looking into it. CW10.1/2 do not seem to be very stable at all at this point.
Again, if i try to have the debugger run to line, or step over more than 1 instruction, I crash. but going 1 instruction at a time I stay alive and function as i should.
Hello,
I have contacted engineering so they could have a look. Please send to Freescale the diagnostic information as this could be very useful to track down the problem.
Thanks!
DiagnosticInfo Attached.
Thank you!
Engineering is looking into it.
thank you,
BK
Hello,
we were not able to reproduce the problem.
So could you file a service request so we can officially track it?
Few things and questions which came out of the analysis so far:
- maybe a problem with the board? Does the problem happen with a new project wizard (File > New > Bareboard) project too?
- It could be as well that there might be a problem with the P&E drivers installed that they go wild.
- is it a plain MCU10.2 installation or something on top of this?
- is your application for RAM or for Flash?
- in the report there is an indication that you use a EPPCAUTOSAR_KernelAware plugin? This might be the root of this problem. Could you disable using it in the debugger launch configuration/settings?
- Could you check your flash configuration in the debug launch configuration (launch configuration > Debugger > Download) and if the correct flash configuration is used (is it MCF5282_INTFLASH or MCF5282EVB_INTFLASH): looks like it needs to be MCF5282EVB_INTFLASH.xml). You can set up the flash used in the Target Task view.
- if you can, please submit your project.
Otherwise send me a private message and we take it from there.
Hope this helps,
BK
BlackNight,
My responses are below. Thank you,
Few things and questions which came out of the analysis so far:
- maybe a problem with the board? Does the problem happen with a new project wizard (File > New > Bareboard) project too?
There is no problem with the board/Hardware. The project can be flashed and debugged without issue using CW4 and 7.
A project created with the wizzard works correctly, however it is just incrimenting a counter.
- It could be as well that there might be a problem with the P&E drivers installed that they go wild.
Yes, that is very possible! So how do I resolve that?! I have reinstalled the drivers and CW10.2 many times. Does P&E acknowledge the instability. I have been to their forums as well and I see many users have the same instability issue while flashing and debugging.
- is it a plain MCU10.2 installation or something on top of this?
Plain MCU10.2 Build Id:120126
- is your application for RAM or for Flash?
Application runs out of flash.
- in the report there is an indication that you use a EPPCAUTOSAR_KernelAware plugin? This might be the root of this problem. Could you disable using it in the debugger launch configuration/settings?
I wasn't able to find this. How do I navigate to this setting?
- Could you check your flash configuration in the debug launch configuration (launch configuration > Debugger > Download) and if the correct flash configuration is used (is it MCF5282_INTFLASH or MCF5282EVB_INTFLASH): looks like it needs to be MCF5282EVB_INTFLASH.xml). You can set up the flash used in the Target Task view.
Why do you believe it should be an EVB project? I should not be. MCF5282_INTFLASH is correct.
- if you can, please submit your project.
Unfortunatly I am unable to submit my project.
Thanks again for looking into this,
Steve
Hello,
about the AUTOSAR thing: see attached screenshot: make sure it shows 'none'.
About the flash configuration: It might be worthwile to try it with the EVB one.
Apart of that: if the thing with the wizard generated project works (I assume this, as the stepping works), then it would be worthwile to know what is the difference between the two. I asssume that the problem happens for your project after a certain stage (maybe after changing the CPU clock speed). Just my guess. I still think it might have something to do with your project (as the hardware seems not to be the issue).
BK
Hello,
no luck to reproduce this on our end. I suggest that you open an service request. Please make a reference to MTWX52620.
What would be helpful:
- linker .lcf file and the linker map file generated so we could check where is code/data
- the .elf file (so no sources) so we can try to download this to our hardware
- the .mem file used in the project
- a screenshot showing where the problem occurs so we could get there.
hope with this we can get reproduced and resolved.
BK
Thanks BK.
Well, based on recommendations from other users having issues with CW10x on Win7 64-bit, I installed CW10.2 on a 32-bit XP machine. I copied the project over and imported it. It worked with out issue on my first attempt.
There are definitely issues with CW10.x on win7 64-bit.
I will provide as much as I can so that you guys have what you to fix the issues with win7.
Thanks,
Steve
Hi Steve,
Can you attach a picture of the Disassembly view rigth before making the step over?Or save the Disassembly view contents to a text file.
Also, please attach the console log from the point where you are doing the step.
Is the crash reproducible on your machine if you add to a wizard project a simple function call?
Is it a C or C++ project?
Did you change some debugger settings from the launch configuration?
How many breakpoint (code or data) are you using before the step?
Is your current project imported from an existing CW for ColdFire 7.x project?
Is you system a Windows 7 Professional or Home edition? AMD or Intel machine?
Thanks.
Good to know that you are unblocked.
Appreciate your help on this one.
BK