write into Program RAM

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

write into Program RAM

2,998 Views
MBC
Contributor II
Hi, All!

During the compilation I get an error:

"Error   : Illegal memory space specified - P:
DSP56F802_vector.asm line 116       move b0,P:smileysad:R0)+"

Why?
How to write into Program RAM?
Labels (1)
Tags (1)
0 Kudos
9 Replies

830 Views
trytohelp
NXP Employee
NXP Employee

Hi,

 

How are your application ?

 - in C,

 - in asm only.

 

With the project wizard (File ¦ New), you can create a project for your chip.

The project should contain all info to allow you to write in all memory.

 

If you meet problem, can you provide us the application ?

 

Thanks

Pascal

0 Kudos

830 Views
MBC
Contributor II
This Project in asm only.
Thanks, I have found this mistake: in this case it is impossible to use register B0, it is possible only B1
But now there was other problem: after the second record in PRAM the debugger incorrectly shows a condition of memory PRAM
For example:
                move    #$ffff,B1
                move    #$7c00,R0
                nop
                movem    B1,P:(R0)+
                move    #$7c00,R0
                nop
                movem    P:(R0)+,A1
;After that step to the address P:$7C00 in a window "memory" value $FFFF is shown
;In register A1 - $FFFF
;All is true
                move    #$aaaa,B1
                move    #$7c00,R0
                nop
                movem    B1,P:(R0)+
                move    #$7c00,R0
                nop
                movem    P:(R0)+,A1
;After that step to the address P:$7C00 in a window "memory" value $FFFF is shown
;In register A1 - $AAAA
;"refresh all data" does not change a picture, always displayed $FFFF

Probably debugger bug?

0 Kudos

830 Views
MBC
Contributor II
question has been logged with number 1-591380441
0 Kudos

830 Views
trytohelp
NXP Employee
NXP Employee

Thanks.

We will continue to discuss about it via CRM.

 

Regards

Pascal

0 Kudos

830 Views
trytohelp
NXP Employee
NXP Employee

Hi,

 

Sorry for the delay.

What is the tool version used ?

Start the IDE and click on Help | About Freescale CodeWarrior.

Click on Installed Products

Provide us all info displayed.

Or you can save them in a txt file.

 

Is it possible to have a project reproducing the problem ?

I mean full project.

 

Regards

Pascal

 

 

0 Kudos

830 Views
MBC
Contributor II

What is the tool version used ?

 See included files.

 

 

This small project do write/read in PRAM (see included files). Also found out, it does not work on a simulator. Contents of memory do not vary by the program, but possible manual editing of P-memory in a "memory" window. Reading of P-memory - worked.

 

test_pram.zip

installed_plugins.zip

Message Edited by t.dowe on 2009-10-19 10:26 AM
0 Kudos

830 Views
trytohelp
NXP Employee
NXP Employee

Hi,

 

In fact you can not update flash memory like that.

A protocol must be follow to change flash memory.

On the installation we've an example using Processor Expert.

  \Stationery\Processor_Expert_Examples\DemoApplications\HWBeans\56F80x\InFlash

This example is not assembly.

 

For details please refer to the user manual under the web site: DSP56F801-7UM.pdf 

 

Regards

Pascal

0 Kudos

830 Views
MBC
Contributor II
I ask to pay your attention, that writing is made not in flash, and in random acess memory.
0 Kudos

830 Views
trytohelp
NXP Employee
NXP Employee

Hi,

 

I think I reproduced the problem on my side.

I don't have DSC56F802 or 801 board.

I tried with a 56f803EVM board.

For the 803 chip, I changed the memory address 0x7C00 to 0x7E00.

for 803 the PRAM start at 0x7E00.

 

The Memory view will not update the 0x7e00 address but I can see the right value in A1 register.

This seems to be a debuger refresh problem.

I need to investigate the problem with the debugger team and probably will log a bug number.

To do that, it will be better to have a Service Request for reference.

Can I suggest you to create a SR for that and keep me informed on the SR number ?

See below how to do that ?

 

Please use Freescale on line support web page.
  - Go to following URL: http://www.freescale.com/TechSupport
  - Click on Submit a Service Request. You will come to a login page.
  - You can submit your request through the web from there.
 

Regards

Pascal

 

0 Kudos