I have a very basic question, is it possible to Display and Read SDRAM value when a ez-kit board is running?
0x1 is an unaligned address for 32bit (int) accesses. you must use properly aligned addresses according to the type.
read the CPLB MMRs with the VDSP register window and correlate the values with the HRM to figure out exactly why the hardware is crashing.
Assuming you are connected via HP-USB ICE to the EZKIT, you can view, set and dump your mem contents from the "Memory..." pane of VDSP++. You have access to all of the memory space, including the SDRAM.
Is it possible to dump the memory data when the board is running, or
is it possible to put the memory data into a register like
#define pSDRAM ((volatile unsighed int*) 0x1)
valatile int test;
let me try to retype your question:
You want to dump (to a file? VisualDSP++ console output?) the content of the SDRAM memory while the processor is in Run mode (Debug->Run (F5))?
Is this correct?
yes, thats what I want.
Dump (to a file? VisualDSP++ console output?) the content of the SDRAM memory while the processor is in Run mode (Debug->Run (F5))
You can use the C standard file I/O routins from the C-runtime library to open a file on your PC and dump runtime data to that file. Note that file I/O is generally a slow process, so be patient if you need to dump large amount of data.
as mentioned by Yaniv, any fprint to a standard device (stdio, *fp) is very slow and gives you application lots of interruptions.
You can try the Backround Telemetry, examples can be found in you VisualDSP++ installation folder ( \Blackfin\Examples\ADSP-BF533 EZ-KIT Lite\Background_Telemetry\ ). Alternatively, you can use a different peripheral like the UART. EE-347 will give you some advice ( http://www.analog.com/en/embedded-processing-dsp/Blackfin/processors/application-notes/resources.html ).
Thanks alot. My target is trying to used the memory data in Run Mode to operate some mathematical calculations instead of printing it on a screen.
But everytime when I try to put the memory data to a register, then it goes to Halted status.
test=* pSDRAM; <---here is the step that it goes to halted status from run mode.
Thanks a lot. I can read the memory data right now by choosing the reading address as the multiple of 4, e.g. 0x0, 0x4, 0x8 etc. Thank you.
You may want to look at the Background Telemetry Channel. It allows for viewing and plotting memory locations while the processor is running. If you are using VisualDSP++, for the ADSP-BF533 refer to ./Blackfin/Examples/ADSP-BF533 EZ-KIT Lite/Background_Telemetry. There is also information in the VisualDSP++ documentation.
Product Manager - VisualDSP++
Retrieving data ...