Gast
#949049
Hallo Ich habe mit dem IAR-Compiler ein Programm geschrieben, das Text auf dem Display ausgibt. Das Programm funktioniert einwandfrei. Nun habe ich meinen Quellcode compiliert. Das erzeugte Bin-File möchte ich nun in den Flash schreiben. Da der AT91SAM9263 keinen internen Flash besitzt muss ich das Programm in den externen NAND-Flash schreiben. Dies mache ich mit dem SAM-BA-Tool von Atmel. Ich habe das Das AT91SAM9263-EK Board per USB an meinen PC angeschlossen. Dann starte ich SAM-BA 2.8 und wähle den Reiter NANDFlash aus. Dort suche ich unter "SEND FILE NAME" mein Bin-File aus und drücke anschließend auf "Send File" Ich Log-Fenster steht dann folgendes: File size: 0x3E24 Bytes Writing 0x0 Bytes at 0x0 (Buffer addr 3024D4) 0x3024D4 Bytes written by applet Nachdem ich das Bin-File in den NAND-FLASH geschrieben habe drücke ich die Reset Taste des µC. Per RS232 lese ich die DEBUG-Schnittstelle aus. Auf dem PC-Display steht dann "ROMBOOT" Das Programm wird aber nicht gestartet. Habe dann das USB-Kabel und das RS232 Kabel abgezogen und noch einmal einen Reset durchgeführt. Das Ergebnis war das Selbe es passierte nichts. Wieso liest er das File nicht auf dem NAND-FLASH ein? Muss ich etwas im IAR-Compiler einstellen das er ein Bootfile erstellen soll? Das habe ich gefunden: The on-chip Boot ROM Memory integrates different programs permitting download and/or upload into the different memories of the product First, it initializes the DBGU and the USB Device Port. Then the DataFlash Boot program is executed. It looks for a sequence of eight valid ARM exception vectors in a DataFlash connected to the SPI. If a valid sequence is found, code is downloaded into the internal SRAM. This is followed by a remap and a jump to the first address of the SRAM. If no valid ARM vector sequence is found, SAMBA™ Boot is then executed. It waits for transactions either on the USB device, or on the DBGU serial port. Then, user can use SAM-BA GUI to download binary file into the different memories of the product.