Re: help on F2812 using PP emulator
On Nov 11, 2:31*pm, "Alferd" <surnat...@gmail.com> wrote:
> >Alferd wrote:
> >> Hi,
>
> >> Its an additional information to my previous mail. I am using
> sdtsrv.dll
> >> in my application to test my code on F2812 without using CCS GUI. I am
> >> stuck at a point where not able to findout already existing hardware
> >> breakpoint. Since am running the code from flash, I have to use
> hardware bp
> >> in the flash to debug it.
>
> >> This driver allows me to set SW breakpoint in the DATA area but not
> >> allowing to set HW BP in the flash.
>
> >> Any hint would be appriciated.
>
> >Can you write a single word to flash? I think not. Breakpoints are set
> >by temporarily replacing the target opcode with a BREAK instruction. It
> >helps to know what's under the hood.
>
> >Jerry
> >--
> >Engineering is the art of making what you want from things you can get.
>
> I am able to flash the code, no problem with that. Am not able set H/W
> breakpoint for Flash address. As I said earlier I can set S/W breakpoint at
> RAM (data area) address using sdtsrv.dll file. I know we can set a single
> H/W breakpoint (checked using CCStudio GUI) but am not sure how to findout
> if it is already been set and way to clear it.
> I did peek into debug registers but am getting garbage.
>
> --Alferd
Hi Alferd
As far as I can tell HW breakpoints are set-up using C28x analysis
block, e.g. if I set HW breakpoint in CCS, I can obser change in one
of the watch-point control, status, address and mask registers change
accordingly.
Thus setting the HW breakpoint is probably not part of the SD driver
but is mos probably part of application SW (you only need to set the
proper bits and addresses in watch-point registers).
The most detailed description of analysis unit I found in already
mentioned TI document "Online Stack Overflow Detection on the
TMS320C28x DSP" - SPRA820
Hope this helps
Regards, Mitja
|