FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > DSP

DSP comp.dsp newsgroup, mailing list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-11-2009, 12:40 PM
Alferd
Guest
 
Posts: n/a
Default help on F2812 using PP emulator

Hi,

Its an additional information to my previous mail. I am using sdtsrv.dl
in my application to test my code on F2812 without using CCS GUI. I a
stuck at a point where not able to findout already existing hardwar
breakpoint. Since am running the code from flash, I have to use hardware b
in the flash to debug it.

This driver allows me to set SW breakpoint in the DATA area but no
allowing to set HW BP in the flash.

Any hint would be appriciated.

Cheers,
Alferd
Reply With Quote
  #2 (permalink)  
Old 11-11-2009, 01:37 PM
Jerry Avins
Guest
 
Posts: n/a
Default Re: help on F2812 using PP emulator

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.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Reply With Quote
  #3 (permalink)  
Old 11-11-2009, 02:31 PM
Alferd
Guest
 
Posts: n/a
Default Re: help on F2812 using PP emulator

>Alferd wrote:
>> Hi,
>>
>> Its an additional information to my previous mail. I am usin

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 us

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/
breakpoint for Flash address. As I said earlier I can set S/W breakpoint a
RAM (data area) address using sdtsrv.dll file. I know we can set a singl
H/W breakpoint (checked using CCStudio GUI) but am not sure how to findou
if it is already been set and way to clear it.
I did peek into debug registers but am getting garbage.

--Alferd
Reply With Quote
  #4 (permalink)  
Old 11-11-2009, 03:16 PM
Jerry Avins
Guest
 
Posts: n/a
Default Re: help on F2812 using PP emulator

Alferd 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.


When you flash the code, you write an entire block (or the entire chip),
not a succession of individual cells as you would with RAM. Flash memory
behaves much like EEPROM -- electrically erasable and alterable, but
read-only nevertheless for opcodes. It helps to know what's under the hood.

Jerry
--
Engineering is the art of making what you want from things you can get.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Reply With Quote
  #5 (permalink)  
Old 11-11-2009, 03:44 PM
Korenje
Guest
 
Posts: n/a
Default 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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for Emulator (EZ-ICE® In-Circuit Emulator) justin1103 DSP 0 09-24-2008 10:33 PM
Recommend TI DSP emulator [email protected] DSP 4 05-20-2007 08:30 PM
ARM Emulator morpheus FPGA 2 04-17-2006 02:49 AM
TMS320VC5502 emulator RobertP DSP 1 10-20-2005 02:01 PM
do I need emulator? deadflower DSP 3 11-26-2003 04:27 PM


All times are GMT +1. The time now is 02:24 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved