Re: [Flashforth-devel] Question about running FlashForth on Arduino Diecimila
Brought to you by:
oh2aun
|
From: Aymeric <ult...@bl...> - 2017-09-23 21:02:56
|
Mikael Nordman said :
> It may help also on the real hardware.
It did! It's working now :) Thanks!
So to sum up:
diff --git a/avr/src/config.inc b/avr/src/config.inc
index 21f6bff..fc5a359 100644
--- a/avr/src/config.inc
+++ b/avr/src/config.inc
@@ -4,9 +4,10 @@
;.include "m2561def.inc" ;
;.include "m2560def.inc" ; Tested Fuses: E:0xff H:0xdc L:0xff
;.include "m128def.inc" ; Tested Fuses: E:0xff H:0xdc L:0xff
+.include "m168def.inc" ; Tested Fuses: E:0xf8 H:0xdf L:0xff
;.include "m168pdef.inc"
;.include "m328pdef.inc" ; Tested Fuses: E:0xff H:0xda L:0xff
-.include "m328def.inc" ; Tested Fuses: E:0xff H:0xda L:0xff
+;.include "m328def.inc" ; Tested Fuses: E:0xff H:0xda L:0xff
;.include "m32adef.inc"
;.include "m644pdef.inc"
diff --git a/avr/src/ff-atmega.asm b/avr/src/ff-atmega.asm
index 555e5c2..61dd095 100644
--- a/avr/src/ff-atmega.asm
+++ b/avr/src/ff-atmega.asm
@@ -5340,7 +5340,7 @@ WARM_1:
ldi xl, 0x1C ; clear ram from y register upwards
WARM_2:
st x+, r_zero
- cpi xh, 0x10 ; up to 0xfff, 4 Kbytes
+ cpi xh, 0x04 ; up to 0x3ff, 1 Kbytes
brne WARM_2
; Init empty flash buffer
I will play a bit with it now...
Aymeric
|