d4b3436d21
Atmel ATmega128. Very brief instructions: - Configure your programmer etc. in Makefile.stk501 - Use 'make upload' to flash your STK501. - Setup a SLIP connection to your board (on the first serial port) and make sure you can ping it. - Use 'make loadable_prg.ko' to build a demo module. - gcc -ocodeprop ../../tools/codeprop.c - ./codeprop <IP of STK> loadable_prg.ko - Watch the module print "Tick, Tack, Tick, ..." on the second serial port.
26 lines
788 B
Text
26 lines
788 B
Text
CONTIKI_TARGET_DIRS = . dev apps net loader
|
|
CONTIKI_CORE=contiki-stk501-main
|
|
CONTIKI_TARGET_MAIN = ${CONTIKI_CORE}.o
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += rs232.c slip.c cfs-eeprom.c eeprom.c random.c \
|
|
mmem.c contiki-stk501-default-init-lowlevel.c \
|
|
contiki-stk501-default-init-net.c
|
|
|
|
CONTIKIAVR=$(CONTIKI)/cpu/avr
|
|
CONTIKIBOARD=.
|
|
|
|
MCU=atmega128
|
|
AVRDUDE_PROGRAMMER=jtag2
|
|
|
|
# For usb devices, you may either use PORT=usb, or (e.g. if you have more than one
|
|
# programmer connected) you can use the following trick to find out the serial number:
|
|
#
|
|
# The example is for an JTAGICE mkII used to program an ATmega128:
|
|
# avrdude -v -P usb:xxxx -c jtag2 -p atmega128
|
|
AVRDUDE_PORT=usb:00A0000010EB
|
|
|
|
# Additional avrdude options
|
|
# Verify off
|
|
AVRDUDE_OPTIONS=-V
|
|
|
|
include $(CONTIKIAVR)/Makefile.avr
|