Hi,
Here is my project:
when I press continue, it always stop at the same place, but I didn't set any breakpoint.
How can I fix that?
Reguards,
Alex
HI Alex,
The breakpoint is most likely the semihosting breakpoint, which are intended to be taken over by the debugger or debug target... look at the disassembly and see the generated code.
Are you running with one of the supplied Fixed Virtual Platforms (FVP)? In those cases, semihosting is handled by the FVP itself, not the debugger. Therefore you need to disable debugger semihosting, with the command:
set semihosting enabled off
This must be run before the code executes... it is easiest to put this in a .ds script text file, and run as a Target initialization script. See some of the supplied examples, such as 'calendar_Armv8-A_AC6' below.
Regards, Ronan
I'm running the real platform called "Cyclone V SOC dev kit",
And I wrote the .ds to help me enter the preloader.
So basically I must 1.link the preloader debug script,2.disconnnect the script and 3.run my code debug service.
I have three followed questions:
1. Can step 1,2,3 finish at one step?
2. In step one, I added a breakpoint to where the preloader loaded the u-boot(for I want to use bare-metal),then I disconnect the debugger to do step 3, the issue occures even when I enable the breakpoint off mode,how can I fix that?
3. Is there a way to monitor the variables dynamically while debugging?
Thank you for your help,
Please have a nice day.
I'm not familiar with this workflow... you may get a better answer if you post your query to Intel or Rocketboard forums.https://forum.rocketboards.org/
For #3, there is a Variables view (in other thread you are looking at the Stack view). You can also view them in the Expressions view.
Use Windows > Show View, to open any debug views
For example I created a 50us timer and its callback function is to add a cnt from 0 to 360 and repeat, so I got a sawtooth wave from 0 to 360 degree.
How can I observe during and after the debug?
If using Expressions view then what should I put in the Expression window? cnt? or its address?
Is there any other tools that can monitor and collect all the data?(For I want to moniter the Wave in that period)
And from your expertee experience, is that possible to monitor a variable change every 50 us by RS232?
If not, can Dstream achieve this goal?
How to pick DSTREAM if that can achieve that goal?
Sorry for
That's a lot of questions.
Thank you for your help.
Reguards.
Hi Alex
My name is Stephen and I work at Arm.
Sorry, Arm DS does not provide any graphical data visualization capability like this.
The DSTREAM-ST family of debug probes offer debug and instruction trace of Arm targets, but again, with no graphical data visualization capability.
If using the Expression view in Arm Debugger, then enter the variable name ("cnt"). The Expressions view will be updated with the new value of the variable the next time the target stops. For global variables held in RAM (as opposed to local variables held in registers), you can use the auto timed-update feature of the Memory view to show continuously changing variables, even if the target is still running. You can do this by telling the debugger (in the Address field in the Memory view) which memory bus to access the variable on, by prefixing the variable name with the "address-of" operator and a bus name, e.g. "AHB:&cnt". However, the auto timed-update feature is really intended to much lower frequencies (~1 sec) than the 50uS you need.
Hope this helps
Stephen