EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Trace32 problem

Started by JY Kim July 23, 2007
Currently my trace32 has curious problem.
Flash download is fine, but when I have set breakpoint, T32 doesn't
stop there.
I have confirmed code works fine, but trace32 doesn't stop.
I have two pod(?) for ARM7/9, 9. both has same problem on ARM7 and
ARM9 board.
And for external memory CPU, instruction is not displayed correctly
after running board once. 1st and 2nd byte is same and 3rd and 4th
byte is same.
I am having problem in woking for this.
Please let me solve this problem.
Thanks.

In article <fbl8a3d49du57ckoemi9kksnk66ln9gmco@4ax.com>, JY Kim 
<jkim747.n0zpam@paran.com> writes
>Currently my trace32 has curious problem. >Flash download is fine, but when I have set breakpoint, T32 doesn't >stop there. >I have confirmed code works fine, but trace32 doesn't stop. >I have two pod(?) for ARM7/9, 9. both has same problem on ARM7 and >ARM9 board. >And for external memory CPU, instruction is not displayed correctly >after running board once. 1st and 2nd byte is same and 3rd and 4th >byte is same. >I am having problem in woking for this. >Please let me solve this problem. >Thanks.
Have you thought about asking Lauterbach? -- \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/ /\/\/ chris@phaedsys.org www.phaedsys.org \/\/\ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
JY Kim <jkim747.n0zpam@paran.com> schrieb:

>Currently my trace32 has curious problem. >Flash download is fine, but when I have set breakpoint, T32 doesn't >stop there.
Where is the BP ? In flash, or in RAM and the code is loaded into RAM? Try a HW BP.
"JY Kim" <jkim747.n0zpam@paran.com> wrote in message 
news:fbl8a3d49du57ckoemi9kksnk66ln9gmco@4ax.com...
> Currently my trace32 has curious problem. > Flash download is fine, but when I have set breakpoint, T32 doesn't > stop there.
When do you set the breakpoint, before or after the download?
> I have confirmed code works fine, but trace32 doesn't stop. > I have two pod(?) for ARM7/9, 9. both has same problem on ARM7 and > ARM9 board. > And for external memory CPU, instruction is not displayed correctly > after running board once. 1st and 2nd byte is same and 3rd and 4th > byte is same.
I have seen this before, unfortunately I forget what the problem was. Try increasing your memory wait states (but I don't think it was that). But as has aleady been said asking Lauterbach is the way to go here. tim
Hi man,


   I never have worked with a satisfatory debugger. It's easier you
able a trace (/var/log/messages for instace) and probe the bug
visually. I never work with trace32. If you prove that it is good,
I'll use it too. Have a nice day.

On Jul 23, 4:24 am, JY Kim <jkim747.n0z...@paran.com> wrote:
> Currently my trace32 has curious problem. > Flash download is fine, but when I have set breakpoint, T32 doesn't > stop there. > I have confirmed code works fine, but trace32 doesn't stop. > I have two pod(?) for ARM7/9, 9. both has same problem on ARM7 and > ARM9 board. > And for external memory CPU, instruction is not displayed correctly > after running board once. 1st and 2nd byte is same and 3rd and 4th > byte is same. > I am having problem in woking for this. > Please let me solve this problem. > Thanks.
I have tried  both BP in flash and RAM.
I have tried on-chip BP and H/W bp isn't set.

On Mon, 23 Jul 2007 11:40:31 +0200, 42Bastian Schick
<bastian42@yahoo.com> wrote:

>JY Kim <jkim747.n0zpam@paran.com> schrieb: >....
>Where is the BP ? In flash, or in RAM and the code is loaded into RAM? > >Try a HW BP.
On Mon, 23 Jul 2007 10:57:26 +0100, "tim....."
<tims_new_home@yahoo.co.uk> wrote:

>"JY Kim" <jkim747.n0zpam@paran.com> wrote in message >news:fbl8a3d49du57ckoemi9kksnk66ln9gmco@4ax.com... >> Currently my trace32 has curious problem. >> Flash download is fine, but when I have set breakpoint, T32 doesn't >> stop there. > >When do you set the breakpoint, before or after the download?
After download.
> >> I have confirmed code works fine, but trace32 doesn't stop. >> I have two pod(?) for ARM7/9, 9. both has same problem on ARM7 and >> ARM9 board. >> And for external memory CPU, instruction is not displayed correctly >> after running board once. 1st and 2nd byte is same and 3rd and 4th >> byte is same. > >I have seen this before, unfortunately I forget what the problem >was. Try increasing your memory wait states (but I don't think it >was that). But as has aleady been said asking Lauterbach is >the way to go here.
How can I increase 'memory wait state'?
On Jul 23, 7:36 pm, JY Kim <jkim747.n0z...@paran.com> wrote:
> On Mon, 23 Jul 2007 10:57:26 +0100, "tim....." > > <tims_new_h...@yahoo.co.uk> wrote: > >"JY Kim" <jkim747.n0z...@paran.com> wrote in message > >news:fbl8a3d49du57ckoemi9kksnk66ln9gmco@4ax.com... > >> Currently my trace32 has curious problem. > >> Flash download is fine, but when I have set breakpoint, T32 doesn't > >> stop there. > > >When do you set the breakpoint, before or after the download? > > After download. > > > > >> I have confirmed code works fine, but trace32 doesn't stop. > >> I have two pod(?) for ARM7/9, 9. both has same problem on ARM7 and > >> ARM9 board. > >> And for external memory CPU, instruction is not displayed correctly > >> after running board once. 1st and 2nd byte is same and 3rd and 4th > >> byte is same. > > >I have seen this before, unfortunately I forget what the problem > >was. Try increasing your memory wait states (but I don't think it > >was that). But as has aleady been said asking Lauterbach is > >the way to go here. > > How can I increase 'memory wait state'?
This isn't a problem that this newsgroup can solve.
"JY Kim" <jkim747.n0zpam@paran.com> wrote in message 
news:37paa35b4c3t87iu1q80beijmrfqfk3f9b@4ax.com...
>I have tried both BP in flash and RAM. > I have tried on-chip BP and H/W bp isn't set.
Are you sure? Do you mean it isn't reached? Are you setting the BP at a source line or at an ASM line? If the former, I would guess that you are suffering an 'optimisation' quirk. tim
"JY Kim" <jkim747.n0zpam@paran.com> wrote in message 
news:4bpaa3difmbvlse41o9jl5sp639g3j6bkk@4ax.com...
> On Mon, 23 Jul 2007 10:57:26 +0100, "tim....." > <tims_new_home@yahoo.co.uk> wrote: > >>"JY Kim" <jkim747.n0zpam@paran.com> wrote in message >>news:fbl8a3d49du57ckoemi9kksnk66ln9gmco@4ax.com... >>> Currently my trace32 has curious problem. >>> Flash download is fine, but when I have set breakpoint, T32 doesn't >>> stop there. >> >>When do you set the breakpoint, before or after the download? > > After download. > >> >>> I have confirmed code works fine, but trace32 doesn't stop. >>> I have two pod(?) for ARM7/9, 9. both has same problem on ARM7 and >>> ARM9 board. >>> And for external memory CPU, instruction is not displayed correctly >>> after running board once. 1st and 2nd byte is same and 3rd and 4th >>> byte is same. >> >>I have seen this before, unfortunately I forget what the problem >>was. Try increasing your memory wait states (but I don't think it >>was that). But as has aleady been said asking Lauterbach is >>the way to go here. > > How can I increase 'memory wait state'?
By changing the value programmed into the memory controller. tim

Memfault Beyond the Launch