Hi,
I am using DM6437 EVM board. In that I need to flash my application to NOR flash, and execute from NOR.
I can able to create ais file and flashed *.ais file into NOR, but I dont know whether my code is executing from NOR or not. For NOR execution confirmation, I have called LED blinkin API's into my application, with that I have created ais file and flashed into NOR with NOR writer utility.
Its flashed properly but LED's are not blinking.
The sequence I have called API's are:
EVMDM6437_init();
EVMDM6437_LED_init( );
// Clear all First two LEDS
EVMDM6437_LED_off(0);
EVMDM6437_LED_off(1);
EVMDM6437_LED_off(2);
EVMDM6437_LED_off(3);
myDataPtr = &myData1;
while(myDataPtr != &endMyData1) {
if (*myDataPtr != 0xFEEDBABEu) {
errCount--;
EVMDM6437_LED_on(0);
EVMDM6437_waitusec(20000);
}
else {
EVMDM6437_LED_on(1);
EVMDM6437_waitusec(20000);
++myDataPtr;
}
}
if (*myDataPtr != 0x12345678) {
EVMDM6437_LED_on(2);
EVMDM6437_waitusec(20000);
EVMDM6437_LED_off(0);
EVMDM6437_waitusec(20000);
--errCount;
}
else
EVMDM6437_LED_on(3);
EVMDM6437_waitusec(20000);
myDataPtr = &myData2;
while(myDataPtr != &endMyData2) {
if (*myDataPtr != 0xBABEFACEu) {
errCount--;
}
++myDataPtr;
}
if (*myDataPtr != 0x12345678) {
--errCount;
}
Batch File:
genAIS.pl -otype ascii -i myapp.out -o outfile.ais -bootmode emif -datawidth 8 -cfg evmdm6437.cfg
pause
Please suggest how to execute this code from NOR with AIS scripting, is there is any thing missing?
In my second trial
I have created ais file with -debug option,and the size of file is almost 39KB, have tried to flash the data into NOR, but in this case NOR writer is failing.I am attaching the following log file.
Starting NORWriter.
NOR Initialization:
Command Set: AMD
Manufacturer: AMD
Size: 16 MB
Enter the binary AIS application file name:
BlinkEVMDM6437.hex
Erasing the NOR Flash
Erased through 0x42020000
Erase Completed
Writing the NOR Flash
NOR Write OK through 0x42002000
NOR Write OK through 0x42004000
NOR Write OK through 0x42006000
NOR Write OK through 0x42008000
Normal write also failed
NOR Write Failed...Aborting!
ERROR: Writing NOR failed.
NOR flashing failed!
Is there is any size limitation? I am using SRAM size is 128KB,DDR2 with 64MB.
At one moment of time I have tried to execute from DDR2, In this I have faced some kind of memory overlap errors.
Can you provide detailed information on AIS file Generation.
Please suggest me with suitable solutions.
Thanks & Regards,
Subramanyam
