---+!! Development Tools for LyrePrototype %TOC% ---+Ways to flash code on external flash and download to external SDRAM and run it There are a lot of options, but with 3 different hardware approaches . One is using OpenOCD with JTAG cable, other using Atmel Sam-ba with USB or serial port connection and other using U-Boot with USB connection, serial port connection and TFTP. ---++OpenOCD Is possible to use OpenOCD and JTAG to flashing and debugging. A good example here: [[http://sunge.awardspace.com/arm-getting-started/arm-getting-started.html][ARM Getting Started: Using USBprog and OpenOCD]]. Also Atmel have an application note with title: [[http://www.atmel.com/dyn/products/app_notes.asp?family_id=605][Using Open Source Tools for AT91SAM7 Cross Development]]. This examples are for AT91SAM7 but should be almost the same for AT91SAM9. ---++U-Boot You can access to the U-Boot shell by connecting a [[http://en.wikipedia.org/wiki/Null_modem][null modem cable]] to the development board. Read more in the [[http://www.olimex.com/dev/pdf/ARM/ATMEL/SAM9-L9260.pdf][development board manual]]. JorgePinto is using an USB<->RS232 converter and a null modem cable. As software, he is using [[http://cutecom.sourceforge.net/][cutecom]] on GNU/Linux Ubuntu - cutecom is available in the repositories. While in U-Boot shell, is possible to load code into SDRAM and execute it. We can load code by TFTP, on USB disk and by serial kermit protocol. JorgePinto did put a very simple flash led code working using U-Boot shell to download program to SDRAM and execute - read more here: http://code.google.com/p/rockboxplayer/wiki/Flash_LED ---++Sam-ba Is possible to connect the development board to PC by USB and load code to external SDRAM, write in flash and execute code using Atmel Sam-ba utility. JorgePinto did write a flash LED code from "Getting Started with the AT91SAM9260 Microcontroller" Atmel Application Note using Sam-ba - read more here: http://code.google.com/p/rockboxplayer/wiki/At91sam9260GettingStarted <img src="http://www.rockbox.org/twiki/bin/viewfile/Main/LyrePrototypeDevelopmentTools?rev=1;filename=sam-ba_-20080512.jpg"/><br> Sam-ba utility - GUI version ---+Install GNU Tool Chain For ARM You can follow the instructions on page CrossCompiler. JorgePinto did install the the GNU Tool Chain using the Automatic build: rockboxdev.sh. A good example of how to setup the GNU Tool Chain: [[http://sunge.awardspace.com/arm-getting-started/arm-getting-started.html][ARM Getting Started: Using USBprog and OpenOCD]] ---+IDE - Integrated development environment Any file text editor should be enough. JorgePinto is using [[http://en.wikipedia.org/wiki/Anjuta][Anjuta]] on GNU/Linux Ubuntu - Anjuta is available in the repositories. ---+SVN repository of initial experimental code JorgePinto did setup an [[http://code.google.com/p/rockboxplayer/][account in Code.Google.com]] for host the initial experimental code. If you want to be a member, please leave a comment on that page. ---+Debugging and flashing ---++Debugging and flashing using OpenOCD with JTAG There is possible to use OpenOCD and JTAG to flashing and debugging. A good example here: [[http://sunge.awardspace.com/arm-getting-started/arm-getting-started.html][ARM Getting Started: Using USBprog and OpenOCD]]. Also Atmel have an application note with title: [[http://www.atmel.com/dyn/products/app_notes.asp?family_id=605][Using Open Source Tools for AT91SAM7 Cross Development]]. This examples are for AT91SAM7 but should be almost the same for AT91SAM9. JorgePinto is trying to put his [[http://www.embedded-projects.net/index.php?page_id=165][USBProg]] working as [[http://www.embedded-projects.net/index.php?page_id=177][OpenOCD Adaptor]]. ---++Debugging using RS232 port To debugging low-level code as when making drivers or the boot loader, can be used the available RS232 port on development board to send messages. ---++Debugging using LCD messages When LCD is working it can be used to display debug messages. ---++New Firmware New firmware will be easily uploaded by connecting the LyreProject by USB to a computer. In the computer will be installed a cross-platform application as RockboxUtility to upload new versions of firmware or even flash any firmware for recover purposes. This functionality is possible because of [[http://www.atmel.com/dyn/resources/prod_documents/doc6281.pdf][Atmel SAM-BA]]. Its need to hold a switch button that will put the flash memories on reset state while boot the LyreProject.
12 May 2008 - 14:44
ore topic actions
r3 - 23 Mar 2009 - 08:32:06 -
Copyright © by the contributing authors.