release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Search | Go
Wiki > Main > LyreProject > LyrePrototypeB > LyrePrototypeDevelopmentTools

Development Tools for LyrePrototype

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: 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-Boot

You 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_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


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: ARM Getting Started: Using USBprog and OpenOCD

IDE - Integrated development environment

Any 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 code

JorgePinto 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 flashing

Debugging and flashing using OpenOCD with JTAG

There 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 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 Atmel SAM-BA. Its need to hold a switch button that will put the flash memories on reset state while boot the LyreProject.

I Attachment Action Size Date Who Comment
sam-ba_-20080512.jpgjpg sam-ba_-20080512.jpg manage 197.3 K 12 May 2008 - 14:44 JorgePinto  
r4 - 02 Apr 2021 - 20:46:07 - UnknownUser

Copyright © by the contributing authors.