I am using BF527 EZ kit and developing test codes.
I want to verify flash data retention.ie. flash data is there after a power cycle.
How can i do through code ?How can i load ldr file through code?
Regarding booting, VDK projects are no different from regular projects. Where this example might differ from other applications you have booted so far, it is an LwIP example, and the LwIP example uses significant amounts of SDRAM memory for both code and data for the stack.
Therefore, the EBIU must be appropriately configured before the application is loaded. This is done through an Initialization Code, of which we provide example projects at "...\Blackfin\Examples\ldr\Init_code\", and provide example DXEs in the "...\Blackfin\Examples\ldr\" directory. e.g.:
I would recommend consulting the readme for the POST example at "...\Blackfin\Examples\ADSP-BF527 EZ-KIT Lite\Power_on_self_test\" which details the steps to configure a loader file to include Init Code so that it can boot.
Q: How can i load ldr file through code?
Well before you start thinking about that, you need to first understand how the Blackfin loads and boots its program. When using the JTAG and USB-Debug, you actually are sending the executable binary via the JTAG/USB-Debugger. When developing a standalone emebedded system, that same program needs to live on some non-volatile memory device. At boot time, the Blackfin boot kernel loads the program (.ldr,.bin, ...etc) stored in non-volatile memory or FLASH and when complete runs the program. Any non-volatile variable can also be stored on this memory.
To verify that the flash is retaining data:
I would suggest that you start by using the Flash Programmer by selecting Tools-> Flash Programmer located at Blackfin\Examples\ADSP-BF527 EZ-KIT Lite\Flash Programmer. From there you should be able to read and write to specific memory locations, as well as program the device using your loader file. If all goes correctly, the program will boot from flash on power up. You want to make sure that you save your .ldr file with the appropriate settings. Under Project Options ->Load, Select Flash/PROM, Intel Hex Format, and 16-Bit (Might try 8 if 16 doesn't work). Keep in mind that when writing to flash memory, you need to first erase the block or sector before writing to ensure that data is correctly written.
It worked for me.
But one aplication TCPIP_Trace available at ........Program Files\Analog Devices\VisualDSP 5.0\Blackfin\Examples\ADSP-BF527 EZ-KIT Lite\LAN is not able to reboot.I mean the power retention is not working for that.I loaded ldr for that alone.
Is there anything specific for that.
I have already added init.dxe in project options
I think this issue is best directed to private support, now, so that we can take a look at your project and debug further. Please contact us using the form below, and include a link to this thread:
Retrieving data ...