CodeWarrior U-Boot debug
Sorry, no direct help on CodeWarrior but... stuck in the FP exception would tend to indicate a memory, probably a SDRAM, problem. This is a classic
problem: SDRAM appears to work, but is misconfigured and cache burst reading doesn't work properly. This causes a lot of 0xFFs in the instruction stream and these map into FP instructions, causing the FP exception.
Reading and writing RAM using your CodeWarrior is NOT a good test of SDRAM. Most often you need to do a burst read for it to fail. Burst reads occur (at this point in the game) only when doing an instruction fetch with the instruction cache enabled.
Try running with instruction cache turned off. If it runs slowly but steady :-), you are in the 99% probability it is a SDRAM initialization issue.
gvb
Quoted 23 lines · RL at prodrive.nl
Hello,
Has anyone of you ever used MetroWerks CodeWarrior to debug U-Boot?
After I've succesfuly compiled the u-boot ELF and binairy I've programmed my flash with the binairy.
Next, I've made a CodeWarrior project using the ELF file output of the GNU Compiler.
I can connect to the PPC and I can view memory, but when I break the running process, the cpu is always stuck at address
0x800(floating point exception).Also I cannot view the code in CodeWarrior??
Can someone help me?
Thx Roel
Quoted 8 lines
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
**********************************************************************
This e-mail and any files transmitted with it may be confidential and may be legally privileged or otherwise exempt from disclosure under applicable law. This e-mail and its files are intended solely for the individual or entity to whom they are addressed and their content is the property of Smiths Aerospace. If you are not the intended recipient, please do not read, copy, use or disclose this communication. If you have received this e-mail in error please notify the e-mail administrator at postmaster at smiths-aerospace.com and then delete this e-mail, its files and any copies.
This footnote also confirms that this e-mail message has been scanned for the presence of known computer viruses.
Smiths addresses are changing! The new addresses are of the form firstname.lastname at smiths-aerospace.com. Please update your address books! Please begin using the new form immediately.
***********************************************************************
Hi,
Yes, most of debuggers will have a problem
(randomly) if you turn on the cache. And also, you may check the MMU table if it is correct or not. Although you can read/ write the memory, it doesn't mean that the memory can burst.
If you want to see the code in CW, you need to
re-compile the program with CW compiler to generate a symbol table. I tried to do it but it failed. Some of the inline command are not supported by CW and there are a lot of syntax warning.
Wilson
--- Jerry Van Baren
<[email protected]> ??????> Sorry, no direct help on CodeWarrior but... stuck in
Quoted 58 lines
the FP exception would
tend to indicate a memory, probably a SDRAM, problem. This is a classic
problem: SDRAM appears to work, but is misconfigured and cache burst
reading doesn't work properly. This causes a lot of 0xFFs in the
instruction stream and these map into FP instructions, causing the FP
exception.Reading and writing RAM using your CodeWarrior is NOT a good test of
SDRAM. Most often you need to do a burst read for it to fail. Burst reads
occur (at this point in the game) only when doing an instruction fetch with
the instruction cache enabled.Try running with instruction cache turned off. If it runs slowly but
steady :-), you are in the 99% probability it is a SDRAM initialization issue.gvb
Quoted 3 lines · RL at prodrive.nl
Hello,
Has anyone of you ever used MetroWerks CodeWarrior
to debug U-Boot?
Quoted 2 lines
After I've succesfuly compiled the u-boot ELF and
binairy I've programmed my
Quoted 3 lines
flash with the binairy.
Next, I've made a CodeWarrior project using the ELF
file output of the GNU
Quoted 3 lines
Compiler.
I can connect to the PPC and I can view memory, but
when I break the running
Quoted 1 line
process, the cpu is always stuck at address
0x800(floating point
Quoted 11 lines
exception).
Also I cannot view the code in CodeWarrior??
Can someone help me?
Thx Roel
-------------------------------------------------------
Quoted 12 lines
Quoted 6 lines
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
**********************************************************************
Quoted 22 lines
This e-mail and any files transmitted with it may be confidential and
may be legally privileged or otherwise exempt from disclosure under
applicable law. This e-mail and its files are intended solely for
the individual or entity to whom they are addressed and their content
is the property of Smiths Aerospace. If you are not the intended
recipient, please do not read, copy, use or disclose this communication.
If you have received this e-mail in error please notify the e-mail
administrator at postmaster at smiths-aerospace.com and then delete this
e-mail, its files and any copies.This footnote also confirms that this e-mail message has been scanned
for the presence of known computer viruses.
Quoted 6 lines
Smiths addresses are changing! The new addresses are of the form
firstname.lastname at smiths-aerospace.com. Please update your address
books! Please begin using the new form immediately.
***********************************************************************
Quoted 3 lines
-------------------------------------------------------
Quoted 7 lines
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
_________________________________________________________
???(???)?????(???)???(???)...
Yahoo! ????
http://ringtone.yahoo.com.hk