ΣSigmaStudio Ask AI Русский Log in

1452 program&parameter ram

SigmaDSP & SigmaStudio zhou Jan 7, 2015 00:00 2 replies Original on forum ↗
Subscribe
zhou Question
Jan 7, 2015 00:00

Hi,
I use 1452 on my target board.In order to check whether the data 1452 received is right,I use the microcontroller to read
the program ram and the parameter ram after sending the program data and parameter data.But the parameter data MCU read
back is different from that MCU send.What is more,the programis all zeros. The method I read is like the level detector.
Can you tell me what is wrong with it?

Best Regards,
Alex

JohnTo Reply
Jan 9, 2015 00:00

Hello Alex,

The datasheet suggests that when transferring a large block of data to put the part in hibernate mode. I did some testing and found that you cannot do burst reads from program instruction memory while the ADAU145x core is running. But it seems you will still be able to read parameter data or audio data from DM0 or DM1 memories while the core is enabled (obviously this makes sense since the peripherals like serial ports or aux ADCs transfer data to DM memory addresses).

When I try to read program memory data after downloading a program without disabling the core, only 0x00 bytes are transmitted back to the USBi.

To read program RAM you first must stop the core and enter hibernate mode. I copied these register writes from the capture window which were displayed during a download after compilation over into the sequencer window. You can do the same operation in your microcontroller code.

After reading/writing program RAM, exit hibernate mode and start the core. Here are the sequencer window register commands to do this(also copied from a SigmaStudio download). You can do the same order with your host microcontroller code:

Notice now there is valid read SPI data of Program Memory when the same SPI PM read command executed after stalling the core:

This PM data can also be confirmed in the capture window after the read result is captured.

Hope this helps!

-JT

0092ea05744dc0263ffc2e5ae2661f5e.png
0092ea05744dc0263ffc2e5ae2661f5e.png
0092ea05744dc0263ffc2e5ae2661f5e.png-620x66.png
0092ea05744dc0263ffc2e5ae2661f5e.png-620x66.png
5d0d6ce6d15d219b09efd65026291503.png
5d0d6ce6d15d219b09efd65026291503.png
5d0d6ce6d15d219b09efd65026291503.png-620x87.png
5d0d6ce6d15d219b09efd65026291503.png-620x87.png
20604e149cf57b2d4ea2feec09354f8c.png
20604e149cf57b2d4ea2feec09354f8c.png
20604e149cf57b2d4ea2feec09354f8c.png-620x140.png
20604e149cf57b2d4ea2feec09354f8c.png-620x140.png
6d131675468a831fd752353c47090002.png
6d131675468a831fd752353c47090002.png
6d131675468a831fd752353c47090002.png-620x147.png
6d131675468a831fd752353c47090002.png-620x147.png
6285c23f1187df99474dabcd446022eb.png
6285c23f1187df99474dabcd446022eb.png
6285c23f1187df99474dabcd446022eb.png-620x79.png
6285c23f1187df99474dabcd446022eb.png-620x79.png
b2412c12597b9a095f76de36ff04b3c6.png
b2412c12597b9a095f76de36ff04b3c6.png
b2412c12597b9a095f76de36ff04b3c6.png-620x261.png
b2412c12597b9a095f76de36ff04b3c6.png-620x261.png
EZAdministrator Reply
Aug 2, 2018 00:00

This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

Thank you,
EZ Admin