What do I have to do to see the DSP's memory in CW?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What do I have to do to see the DSP's memory in CW?

1,806 Views
jeypi
Contributor I
Hello,
 
I'm using CodeWarrior version 8.0(IDE version 5.6.1.1658) and DSP 56F8346. I have a DSP
never used before. I want to see the bootloader in bootflash memory. I saw in CodeWarrior
that you can see the memory using the command connect(Debug -> Connect). I used
this command and the cpu stopped, but I didn't see anything in program memory.
In Data memory I saw some data. What I have to do? Do I have to unlock the
flash memory?
 
Thanks in advance,
 
João Paulo.     
Labels (1)
Tags (1)
0 Kudos
3 Replies

318 Views
J2MEJediMaster
Specialist I
If the Flash memory is locked, you can't view it in the debugger unless you know the code to unlock it. The only thing you can do if it's locked is to mass erase the Flash, which then unlocks the memory and you can start over with blank Flash memory.

---Tom
0 Kudos

318 Views
jeypi
Contributor I
Hello guys,
 
What code are you talking about? How do I use this code to unlock flash?
 
Thanks,
 
João Paulo.
0 Kudos

318 Views
J2MEJediMaster
Specialist I
I know some Freescale processors allow you to lock the Flash memory using a security code so that it can't be read. You can then use this code to unlock the Flash so that it can be read again. I think that I am confusing these processors with the DSP's Flash lock. From the DSP56800E Targeting Manual, you can set the Flash memory to be locked, thereby inhibiting access to it. You can also unlock it, but in doing so, it erases the Flash.

From the Targeting Manual:

The Flash Unlock command disables the Flash security. This results in all the Flash
memory being erased.
NOTE The Flash Lock and Flash Unlock commands can only be enabled if the
debugger session is not running.

 To use the Flash Lock or Flash Unlock command:
1. Kill any open debugger sessions.
2. Select a DSP56800E project with a Flash target.
NOTE A Flash target is a target using an initialization file containing Flash
commands.
3. Select a Flash target.
4. Select either Debug > 56800E > Flash Lock or Debug > 56800E > Flash Unlock
command.

I apologize for the confusion.

---Tom
0 Kudos