How do I build from source on Ubuntu?

Asked by Christopher D. Leary

I have an Ubuntu machine and I want to know how to check out, build the code, and program my SDK500.

Question information

Language:
English Edit question
Status:
Solved
For:
SIAM32 Edit question
Assignee:
Christopher D. Leary Edit question
Solved by:
Christopher D. Leary
Solved:
Last query:
Last reply:
Revision history for this message
Christopher D. Leary (cdleary) said :
#1

The following sequence of instructions will generate object files:

$ sudo apt-get install gcc-avr bzr build-essential avr-libc avrdude
$ bzr branch lp:siam32
$ cd siam32

Take a moment here to plug your SDK500 with a USB-to-serial adapter (USB into your Ubuntu PC, serial into the programmable SDK500 port), then use the following command to write the binary to your Mega32:

$ make program

If you plug your SDK500 in over serial instead of with a USB-to-serial adapter (or have more than one USB-to-serial adapter on your computer), you will need to figure out which /dev/ttyS* device the SDK is on, then change the line in the Makefile which says ttyUSB0.

Revision history for this message
plouf (ploufus) said :
#2

hello

i have compile the code with above instructions

however it fails to flash in STK500, i do have correct check tha my "serial" is ttyUSB0 (via ftdia adaptor)
but always fails

furthermore notice that it produces a 107kb hex which AFAIK is larger tha mega32 memory
i also tried to flash it under windows avrstudio but again fails with message about size

is there any insturction on how to build a hex with the mouse test program you have
and/or the hex of this ?

thanx