[Flashforth-devel] Question about running FlashForth on Arduino Diecimila
Brought to you by:
oh2aun
From: Aymeric <ult...@bl...> - 2017-09-01 16:06:21
|
Hello! I've successfully put FlashForth on a Arduino UNO, and I am now trying to do the same with the older Arduino Diecimila (ATMEGA168-20PU). The FlashForth distribution does not come with an .hex file for it, so I'm trying to generate one with avrasm2 2.1.52 found on the amforth sourceforge file repos. However I am failing to connect to FlashForth, and I am unsure why as I am not very familiar with AVR and Arduino in general. The steps are: 1. edit config.inc and add the line: .include "m168def.inc" 2. run avrasm2: wine avrasm2.exe -I /path/to/include -fI ff-atmega.asm I get some warnings: ff-atmega.asm(78): warning: Register r26 already defined by the .DEF directive ff-atmega.asm(79): warning: Register r27 already defined by the .DEF directive ff-atmega.asm(80): warning: Register r30 already defined by the .DEF directive ff-atmega.asm(81): warning: Register r31 already defined by the .DEF directive ff-atmega.asm(244): warning: Use of undefined or forward referenced symbol 'TX0_' in .equ/.set ff-atmega.asm(245): warning: Use of undefined or forward referenced symbol 'RX0_' in .equ/.set ff-atmega.asm(246): warning: Use of undefined or forward referenced symbol 'RX0Q' in .equ/.set 3. run avrdude: avrdude -p m168 -c usbtiny -e -u -U flash:w:ff-atmega.hex:i -U efuse:w:0xff:m -U hfuse:w:0xdc:m -U lfuse:w:0xff:m 4. connect with screen: screen /dev/cuaU0 9600 Instead of getting the FlashForth prompt like I do with the Arduino UNO, I have an empty screen and nothing seems to happen. Am I doing something wrong or is the ATMEGA168-20PU not fit for FlashForth? Thanks! Aymeric. |