DSPRelated.com
Forums

Re: problem in use of external memory

Started by Jeff Brower April 25, 2006
Megha-

> Should I change anything in
> settings or something to enable the external memory. As per as I know we dont have
> EMIF settings in C5416 as in c55x. Right?

Not exactly. There are memory-related registers you have to set for 5416, such as
wait-states, BSCR, etc.

Question: what .gel file are you giving CCS prior to use when it first opens? The
initial .gel file should be set in your CCS Setup wizard, which is a separate icon
from CCS and should be run at least once prior to running CCS. The .gel file
contents should instruct CCS to set some 5516 ext mem registers, and also initialize
the CCS memory map. If it's not doing that, then no way can you see ext mem upon
entering CCS.

Suggestion: start with a very small program that *does not* use external memory, for
example just does an ultra simple loop and writes some internal mem locations with an
obvious pattern. No print statements, no other interaction with JTAG, not even a
.gel file is needed. Make sure that works first, then worry about ext mem, making
the program bigger, etc.

-Jeff

PS. Please always post to the group. You are more likely to get answers.

megha daga wrote:
>
> Dear Jeff
> I mailed you regarding my error in use of external address. I have to use external
> memory to allocate my data and code (because of the size). But because of this I am
> getting following error:
> Can't Remove Breakpoint at 0x3000: Error 0x00000008/-1076 Error during: Break
> Point, Cannot set/verify breakpoint at 0x00003000 Sequence ID: 8 Error Code:
> -1076 Error Class: 0x00000008
> My main() is located at the addr 0x3000. I dont understand why its giving this
> error when i click Go Main in debug menu. I understand that device internally puts
> a breakpoint at main() when I click Go Main, but then it should remove it when it
> gets executed. So I dont understand why its not executing it.
> I think there is some problem in addressing of external memory. One thing which I
> noticed is that I am not able to see the addr after FFFF in my disassembly window,
> whereas there is allocation after that. Do you have any idea why its so? Is my
> memory taking all information in external memory. Should I change anything in
> settings or something to enable the external memory. As per as I know we dont have
> EMIF settings in C5416 as in c55x. Right? What I think is if its reading code in
> external memory, it should show it in disassembly window.
> Kindly have a look at the attached code. i have also attached the liabrary to be
> used. Kindly reply if you have any idea.
> Thanking You
> Megha Daga
>
> -----------
> Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
>
> Name: pep5416bslf.lib
> Type: OrCAD Capture
> pep5416bslf.lib 9.20 (application/x-unknown-content-type-OrCADCapture9.20)
> Encoding: base64
> Description: 1113648303-pep5416bslf.lib
> Download Status: Not downloaded with message
>
> Name: acousticV1.zip
> Type: Zip Compressed Data
> acousticV1.zip (application/x-zip-compressed)
> Encoding: base64
> Description: 2274976745-acousticV1.zip
> Download Status: Not downloaded with message
Dear Jeff
Thanks for replying. I am using sdpep5416.gel fro the device and c5416sim.gel for simulator. I am attaching both of them. Well in both the files memory is declared after FFFF.
Well I have already ran a program on the device. It was a simple audio input output program. I was taking in the input signal and transmitting it to the output port without any processing. Now i am working on processing and am facing the error.
Well you said something about running the gel file. Do i need to run it seperately. what i thought was that it automatically runs when i load the program and start debugging. thats what i am doing. I load my program and after that click on Go Mian. Kindly have a look at the gel files i am using.
Waiting for a reply.
Thanking You
Megha daga

Jeff Brower wrote: Megha-

> Should I change anything in
> settings or something to enable the external memory. As per as I know we dont have
> EMIF settings in C5416 as in c55x. Right?

Not exactly. There are memory-related registers you have to set for 5416, such as
wait-states, BSCR, etc.

Question: what .gel file are you giving CCS prior to use when it first opens? The
initial .gel file should be set in your CCS Setup wizard, which is a separate icon
from CCS and should be run at least once prior to running CCS. The .gel file
contents should instruct CCS to set some 5516 ext mem registers, and also initialize
the CCS memory map. If it's not doing that, then no way can you see ext mem upon
entering CCS.

Suggestion: start with a very small program that *does not* use external memory, for
example just does an ultra simple loop and writes some internal mem locations with an
obvious pattern. No print statements, no other interaction with JTAG, not even a
.gel file is needed. Make sure that works first, then worry about ext mem, making
the program bigger, etc.

-Jeff

PS. Please always post to the group. You are more likely to get answers.

megha daga wrote:
>
> Dear Jeff
> I mailed you regarding my error in use of external address. I have to use external
> memory to allocate my data and code (because of the size). But because of this I am
> getting following error:
> Can't Remove Breakpoint at 0x3000: Error 0x00000008/-1076 Error during: Break
> Point, Cannot set/verify breakpoint at 0x00003000 Sequence ID: 8 Error Code:
> -1076 Error Class: 0x00000008
> My main() is located at the addr 0x3000. I dont understand why its giving this
> error when i click Go Main in debug menu. I understand that device internally puts
> a breakpoint at main() when I click Go Main, but then it should remove it when it
> gets executed. So I dont understand why its not executing it.
> I think there is some problem in addressing of external memory. One thing which I
> noticed is that I am not able to see the addr after FFFF in my disassembly window,
> whereas there is allocation after that. Do you have any idea why its so? Is my
> memory taking all information in external memory. Should I change anything in
> settings or something to enable the external memory. As per as I know we dont have
> EMIF settings in C5416 as in c55x. Right? What I think is if its reading code in
> external memory, it should show it in disassembly window.
> Kindly have a look at the attached code. i have also attached the liabrary to be
> used. Kindly reply if you have any idea.
> Thanking You
> Megha Daga
>
> -----------
> Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
>
> Name: pep5416bslf.lib
> Type: OrCAD Capture
> pep5416bslf.lib 9.20 (application/x-unknown-content-type-OrCADCapture9.20)
> Encoding: base64
> Description: 1113648303-pep5416bslf.lib
> Download Status: Not downloaded with message
>
> Name: acousticV1.zip
> Type: Zip Compressed Data
> acousticV1.zip (application/x-zip-compressed)
> Encoding: base64
> Description: 2274976745-acousticV1.zip
> Download Status: Not downloaded with message
Hi
I can see the external memory mapping in my disassembly window. I mean I can see the commands I have allocated in the external memory. Its not the external memory issue.
But still I am getting the following error
Can't Remove Breakpoint at 0x3000: Error 0x00000008/-1076 Error during: Break Point, Cannot set/verify breakpoint at 0x00003000 Sequence ID: 8 Error Code: -1076 Error Class: 0x00000008
I am not getting why this error is coming.
I have checked the forum and many people have faced this error. But I couldnt find any solution to this.
If any one of you have faced the above error, kindly reply with a solution or a suggestion.
Waiting for reply
Thanking You
Megha Daga
Jeff Brower wrote: Megha-

> Should I change anything in
> settings or something to enable the external memory. As per as I know we dont have
> EMIF settings in C5416 as in c55x. Right?

Not exactly. There are memory-related registers you have to set for 5416, such as
wait-states, BSCR, etc.

Question: what .gel file are you giving CCS prior to use when it first opens? The
initial .gel file should be set in your CCS Setup wizard, which is a separate icon
from CCS and should be run at least once prior to running CCS. The .gel file
contents should instruct CCS to set some 5516 ext mem registers, and also initialize
the CCS memory map. If it's not doing that, then no way can you see ext mem upon
entering CCS.

Suggestion: start with a very small program that *does not* use external memory, for
example just does an ultra simple loop and writes some internal mem locations with an
obvious pattern. No print statements, no other interaction with JTAG, not even a
.gel file is needed. Make sure that works first, then worry about ext mem, making
the program bigger, etc.

-Jeff

PS. Please always post to the group. You are more likely to get answers.

megha daga wrote:
>
> Dear Jeff
> I mailed you regarding my error in use of external address. I have to use external
> memory to allocate my data and code (because of the size). But because of this I am
> getting following error:
> Can't Remove Breakpoint at 0x3000: Error 0x00000008/-1076 Error during: Break
> Point, Cannot set/verify breakpoint at 0x00003000 Sequence ID: 8 Error Code:
> -1076 Error Class: 0x00000008
> My main() is located at the addr 0x3000. I dont understand why its giving this
> error when i click Go Main in debug menu. I understand that device internally puts
> a breakpoint at main() when I click Go Main, but then it should remove it when it
> gets executed. So I dont understand why its not executing it.
> I think there is some problem in addressing of external memory. One thing which I
> noticed is that I am not able to see the addr after FFFF in my disassembly window,
> whereas there is allocation after that. Do you have any idea why its so? Is my
> memory taking all information in external memory. Should I change anything in
> settings or something to enable the external memory. As per as I know we dont have
> EMIF settings in C5416 as in c55x. Right? What I think is if its reading code in
> external memory, it should show it in disassembly window.
> Kindly have a look at the attached code. i have also attached the liabrary to be
> used. Kindly reply if you have any idea.
> Thanking You
> Megha Daga
> Name: pep5416bslf.lib
> Type: OrCAD Capture
> pep5416bslf.lib 9.20 (application/x-unknown-content-type-OrCADCapture9.20)
> Encoding: base64
> Description: 1113648303-pep5416bslf.lib
> Download Status: Not downloaded with message
>
> Name: acousticV1.zip
> Type: Zip Compressed Data
> acousticV1.zip (application/x-zip-compressed)
> Encoding: base64
> Description: 2274976745-acousticV1.zip
> Download Status: Not downloaded with message