|
||||||||||||||
Development Tools for LyrePrototypeWays to flash code on external flash and download to external SDRAM and run itThere 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.OpenOCDIs possible to use OpenOCD and JTAG to flashing and debugging. A good example here: ARM Getting Started: Using USBprog and OpenOCD. Also Atmel have an application note with title: Using Open Source Tools for AT91SAM7 Cross Development. This examples are for AT91SAM7 but should be almost the same for AT91SAM9.U-BootYou can access to the U-Boot shell by connecting a null modem cable to the development board. Read more in the development board manual. JorgePinto is using an USB<->RS232 converter and a null modem cable. As software, he is using 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_LEDSam-baIs 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![]() Sam-ba utility - GUI version Install GNU Tool Chain For ARMYou 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: ARM Getting Started: Using USBprog and OpenOCDIDE - Integrated development environmentAny file text editor should be enough. JorgePinto is using Anjuta on GNU/Linux Ubuntu - Anjuta is available in the repositories.SVN repository of initial experimental codeJorgePinto did setup an 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 flashingDebugging and flashing using OpenOCD with JTAGThere is possible to use OpenOCD and JTAG to flashing and debugging. A good example here: ARM Getting Started: Using USBprog and OpenOCD. Also Atmel have an application note with title: 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 USBProg working as OpenOCD Adaptor.Debugging using RS232 portTo 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 messagesWhen LCD is working it can be used to display debug messages.New FirmwareNew 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 Atmel SAM-BA. Its need to hold a switch button that will put the flash memories on reset state while boot the LyreProject.
r4 - 02 Apr 2021 - 20:46:07 - UnknownUser
Copyright © by the contributing authors.
|