I am using the DM365 with DVSDK3.10 & have to work with oneNAND on DM365 EVM.
I got an error during the serial_flash procedure. (sfh_DM36x.exe, - see below):
Waiting for SFT on the DM36x...
Target: Starting UART Boot...
Target: BOOTUBL
BOOTUBL commmand received. Returning CMD and command...
CMD value sent. Waiting for DONE...
Target: DONE
DONE received. Command was accepted.
Sending the UBL image
Waiting for SENDIMG sequence...
Target: CFI Query...failed.
Target: NOR_open() failed!Starting UART Boot...
Target: BOOTUBL
I changed the UBL and U-Boot according to the instruction in
http://processors.wiki.ti.com/index.php/NOR_Flash_support_on_DM365
after adding the following changes:
in function – DEVICE_EMIFInit() /* .../flash_utils/DM36x/Common/src/device.c */
{
AEMIF->AWCCR = 0xff;
// AEMIF->A1CR = 0x40400204; //NAND support
AEMIF->A1CR = 0x40400205; // oneNAND support
// AEMIF->NANDFCR |= 1; //NAND support
AEMIF->NANDFCR &= ~3; //oneNAND support
AEMIF->ONENANDCTL |= 1; //oneNAND support
AEMIF->A2CR = 0x00a00505;
return E_PASS;
}
and -> DEVICE_pinmuxControl(2,0xFFFFFFFF,0x00000155); // EMIFA
The builds outcomes (“ubl_DM36x_nor.bin” & “u-boot.bin”) are used as a parameter to the serial_flash procedure.
sfh_DM36x.exe -v -p COM3 -norflash ubl_DM36x_nor.bin u-boot.bin
Please let me know where is my fault.
Rgds, Rami