From: Charles S. <sum...@gm...> - 2012-02-28 23:23:51
|
Hi, Just started working with amforth 4.7 on atmega328p on uno (rev3) board. compile went ok. connection with minicom from linux went ok. But when I try to enter definitions it hangs after the second word. I've seen this with both colon and constant definitions. here's some output: amforth 4.7 ATmega328P > ok > words @i (!i-nrww) !i @e !e not s>d up! up@ >< cmove> unloop i sp! sp@ rp! rp@ +! rshi ft lshift 1- 1+ xor or and 2* 2/ invert um* um/mod m* + - log2 d< d> 0> u> u< tr ue 0 0< > < 0= = <> r@ >r r> rot drop over swap ?dup dup c@ c! ! @ execute exit ? applturnkey ms 1ms int-trap int@ int! -int +int show-wordlist +usart baud tx?- poll tx-poll rx?-isr rx-isr get-order get-current !e[] @e[] environment? environ ment end-code code abort abort" [char] immediate recurse user constant variable [ ] ; :noname : does> create ?do leave +loop loop do again until repeat while be gin then else if sliteral literal is Rdefer Edefer words s" ." .s u. dinvert d- d+ d2* init-user ee>ram ee-user source-tib refill-tib tib 2swap d2/ cmove dnegat e dabs d>s j * icompare search-wordlist defer@ defer! to value unused noop ver ? stack rec-notfound rec-find rec-intnum interpret depth rp0 sp sp0 warm cold paus e quit find-name parse-name /string source cscan parse >number number char refil l accept cskip throw catch handler ' type spaces space cr icount itype s, u>= u< = digit? ud/mod ud.r ud. . d. .r d.r sign #> #s # <# hold hld tolower toupper wi thin max min abs mod / negate u/mod */ /mod */mod turnkey bl hex decimal bin ['] , compile ( \ header allot here edp dp key? key emit? emit pad #tib >in cell+ c ells base state f_cpu ok > ok > ok > $25 constant PORTB ok > $24 constant DDRB (This is where it hangs) I'll provide any other information as requested. TIA -- -chuck * This sig intentionally left blank * |
Re: [Amforth] amForth 4.7 atmega328p (uno) hangs while entering
simple colon or constant definitions
From: Matthias T. <mt...@we...> - 2012-02-29 19:20:02
|
Charles, >> $25 constant > PORTB > ok > >> $24 constant > DDRB It looks like you're using two lines. constant expects the name following immediatly on the same line. $25 constant PORTB instead of $25 constant PORTB Matthias |
Re: [Amforth] amForth 4.7 atmega328p (uno) hangs while entering
simple colon or constant definitions
From: Charles S. <sum...@gm...> - 2012-02-29 19:36:58
|
Hi Matthias, Thanks for the quick reply. Actually each definition was on one line. (Maybe my email munged things, I'm not sure). Here's a snippet that may show it better: I got an ok after I entered the first line, but never got anything after entering the second line "$24 constant DDRB" Let me know what I can do to help with the diagnosis. thanks much, -chuck > ok > $25 constant PORTB ok > $24 constant DDRB (This is where it hangs) I'll provide any other information as requested. TIA On Wed, Feb 29, 2012 at 1:19 PM, Matthias Trute <mt...@we...> wrote: > Charles, > >> $25 constant > > PORTB > > ok > > > >> $24 constant > > DDRB > > It looks like you're using two lines. constant expects the > name following immediatly on the same line. > > $25 constant PORTB > > instead of > > $25 constant > PORTB > > > Matthias > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel > -- -chuck * This sig intentionally left blank * |
Re: [Amforth] amForth 4.7 atmega328p (uno) hangs while entering
simple colon or constant definitions
From: Erich W. <ew....@na...> - 2012-02-29 19:55:26
|
On 02/29/2012 08:36 PM, Charles Summers wrote: > Hi Matthias, > Thanks for the quick reply. Actually each definition was on one line. > (Maybe my email munged things, I'm not sure). Here's a snippet that may > show it better: I got an ok after I entered the first line, but never got > anything after entering the second line "$24 constant DDRB" > Let me know what I can do to help with the diagnosis. > thanks much, > -chuck >> > > ok > >> $25 constant PORTB > > ok > >> $24 constant DDRB > > > (This is where it hangs) > Hm. Tested on arduino uno (atmega328p), files from amforth/releases/4.7/appl/arduino. It's actually the duemilanove.asm file without modifications. minicom: Welcome to minicom 2.6.1 OPTIONS: I18n Compiled on Feb 11 2012, 18:12:55. Port /dev/ttyACM0 Press CTRL-A Z for help on special keys aamforth 4.7 ATmega328P Forthduino > ok > words words show-wordlist ms 1ms applturnkey is Rdefer Edefer s" ." .s u. dinvert d- d+ d2* fill c!@spi sleep wdr -wdt wordlist forth definitions previous also forth-wordlist only set-order set-current get-order get-current !e[] @e[] environment? environment end-code code abort abort" [char] immediate recurse user constant variable [ ] ; :noname : does> create ?do leave +loop loop do again until repeat while begin then else if sliteral literal @i (!i-nrww) !i @e !e not s>d up! up@ >< cmove> unloop i sp! sp@ rp! rp@ +! rshift lshift 1- 1+ xor or and 2* 2/ invert um* um/mod m* + - log2 d< d> 0> u> u< true 0 0< > < 0= = <> r@ >r r> rot drop over swap ?dup dup c@ c! ! @ execute exit init-user ee>ram ee-user source-tib refill-tib tib 2swap d2/ cmove dnegate dabs d>s j * icompare search-wordlist defer@ defer! to value unused noop ver ?stack rec-notfound rec-find rec-intnum interpret depth rp0 sp sp0 warm cold pause quit find-name parse-name /string source cscan parse >number number char refill accept cskip throw catch handler ' type spaces space cr icount itype s, u>= u<= digit? ud/mod ud.r ud. . d. .r d.r sign #> #s # <# hold hld tolower toupper within max min abs mod / negate u/mod */ /mod */mod turnkey bl hex decimal bin ['] , compile ( \ header allot here edp dp key? key emit? emit pad #tib >in cell+ cells base state f_cpu +usart baud tx?-poll tx-poll rx?-isr rx-isr int-trap int@ int! -int +int ok > $aa constant bla1 ok > $bb constant bla2 ok > $cc constant bla3 ok > Works for me. Erich |
Re: [Amforth] amForth 4.7 atmega328p (uno) hangs while entering
simple colon or constant definitions
From: Matthias T. <mt...@we...> - 2012-02-29 19:48:29
|
Charles, > Hi Matthias, > Thanks for the quick reply. Actually each definition was on one line. I'm sorry. It works for me (the same controllertype). And I have no idea, what could possibly go wrong with your installation. Matthias |
Re: [Amforth] amForth 4.7 atmega328p (uno) hangs while entering
simple colon or constant definitions
From: Charles S. <sum...@gm...> - 2012-02-29 19:51:53
|
What are your fuse values? On Feb 29, 2012 1:48 PM, "Matthias Trute" <mt...@we...> wrote: > Charles, > > > Hi Matthias, > > Thanks for the quick reply. Actually each definition was on one line. > > I'm sorry. It works for me (the same controllertype). And I have no > idea, what could possibly go wrong with your installation. > > Matthias > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel > |
Re: [Amforth] amForth 4.7 atmega328p (uno) hangs while entering
simple colon or constant definitions
From: Erich W. <ew....@na...> - 2012-02-29 19:56:49
|
On 02/29/2012 08:51 PM, Charles Summers wrote: > What are your fuse values? $ make read-fuse sudo avrdude -q -c avrispmkII -P usb -p atmega328p -U hfuse:r:-:h -U lfuse:r:-:h -U efuse:r:-:h -U lock:r:-:h avrdude: AVR device initialized and ready to accept instructions avrdude: Device signature = 0x1e950f avrdude: reading hfuse memory: avrdude: writing output file "<stdout>" 0xd9 avrdude: reading lfuse memory: avrdude: writing output file "<stdout>" 0xff avrdude: reading efuse memory: avrdude: writing output file "<stdout>" 0x5 avrdude: reading lock memory: avrdude: writing output file "<stdout>" 0x3f avrdude: safemode: Fuses OK Cheers, Erich |
Re: [Amforth] amForth 4.7 atmega328p (uno) hangs while entering
simple colon or constant definitions
From: Charles S. <sum...@gm...> - 2012-03-01 00:48:56
|
I really appreciate all the help. Unfortunately things are still not working. I've tried it on both a rev2 and rev 3 uno with the same results. (see below). I assume you guys aren't doing anything unusual in the minicom settings? One other piece of information, after it hangs, doing a reset or power cycle doesn't allow me to reconnect. I can't get any response until I do another make install. Oh yeah, one more thing. when I do a read-fuse, the hfuse value is 0xd6 instead of 0xd9. Welcome to minicom 2.5 OPTIONS: I18n Compiled on May 2 2011, 10:05:24. Port /dev/ttyACM0 Press CTRL-A Z for help on special keys amforth 4.7 ATmega328P Forthduino > ok > words words show-wordlist ms 1ms applturnkey is Rdefer Edefer s" ." .s u. dinvert d- d + d2* fill c!@spi sleep wdr -wdt wordlist forth definitions previous also forth- wordlist only set-order set-current get-order get-current !e[] @e[] environment? environment end-code code abort abort" [char] immediate recurse user constant v ariable [ ] ; :noname : does> create ?do leave +loop loop do again until repeat while begin then else if sliteral literal @i (!i-nrww) !i @e !e not s>d up! up@ >< cmove> unloop i sp! sp@ rp! rp@ +! rshift lshift 1- 1+ xor or and 2* 2/ inver t um* um/mod m* + - log2 d< d> 0> u> u< true 0 0< > < 0= = <> r@ >r r> rot drop over swap ?dup dup c@ c! ! @ execute exit init-user ee>ram ee-user source-tib re fill-tib tib 2swap d2/ cmove dnegate dabs d>s j * icompare search-wordlist defer @ defer! to value unused noop ver ?stack rec-notfound rec-find rec-intnum interp ret depth rp0 sp sp0 warm cold pause quit find-name parse-name /string source cs can parse >number number char refill accept cskip throw catch handler ' type spa ces space cr icount itype s, u>= u<= digit? ud/mod ud.r ud. . d. .r d.r sign #> #s # <# hold hld tolower toupper within max min abs mod / negate u/mod */ /mod * /mod turnkey bl hex decimal bin ['] , compile ( \ header allot here edp dp key? key emit? emit pad #tib >in cell+ cells base state f_cpu +usart baud tx?-poll tx -poll rx?-isr rx-isr int-trap int@ int! -int +int ok > ok > $aa constant bla1 ok > ok > $bb constant bla2 ONCE AGAIN, IT HUNG RIGHT HERE :( NOTE: one thing I saw that was different for what it's worth was the hfuse value: csummers@chas:~/amforth/releases/4.7/appl/arduino$ sudo make read-fuse avrdude -q -c avrispmkII -P usb -p atmega328p -U hfuse:r:-:h -U lfuse:r:-:h -U efuse:r:-:h -U lock:r:-:h avrdude: AVR device initialized and ready to accept instructions avrdude: Device signature = 0x1e950f avrdude: current erase-rewrite cycle count is 1325449198 (if being tracked) avrdude: reading hfuse memory: avrdude: writing output file "<stdout>" 0xd6 avrdude: reading lfuse memory: avrdude: writing output file "<stdout>" 0xff avrdude: reading efuse memory: avrdude: writing output file "<stdout>" 0x5 avrdude: reading lock memory: avrdude: writing output file "<stdout>" 0x3f avrdude: safemode: Fuses OK avrdude done. Thank you. ---------------------------------------------------------------------------------------------- On Wed, Feb 29, 2012 at 1:56 PM, Erich Waelde <ew....@na...> wrote: > On 02/29/2012 08:51 PM, Charles Summers wrote: > > What are your fuse values? > > $ make read-fuse > sudo avrdude -q -c avrispmkII -P usb -p atmega328p -U hfuse:r:-:h -U > lfuse:r:-:h -U efuse:r:-:h -U lock:r:-:h > > avrdude: AVR device initialized and ready to accept instructions > avrdude: Device signature = 0x1e950f > avrdude: reading hfuse memory: > avrdude: writing output file "<stdout>" > 0xd9 > avrdude: reading lfuse memory: > avrdude: writing output file "<stdout>" > 0xff > avrdude: reading efuse memory: > avrdude: writing output file "<stdout>" > 0x5 > avrdude: reading lock memory: > avrdude: writing output file "<stdout>" > 0x3f > > avrdude: safemode: Fuses OK > > > Cheers, > Erich > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel > -- -chuck * This sig intentionally left blank * |
Re: [Amforth] amForth 4.7 atmega328p (uno) hangs while entering
simple colon or constant definitions
From: Charles S. <sum...@gm...> - 2012-03-01 02:04:06
|
looks like it's SOLVED :) I'm not really familiar with the atmel fuse scheme, but this is what happened (I think). I must have had set the fuse lock when I loaded the standard arduino bootloader with the following commands: sudo avrdude -c avrispmkII -P usb -p atmega328p -v -e -U efuse:w:0x05:m -U hfuse:w:0xD6:m -U lfuse:w:0xFF:m sudo avrdude -c avrispmkII -P usb -p atmega328p -v -e -U flash:w:optiboot_atmega328.hex -U lock:w:0x0F:m (which probably explains the 0xd6 I was seeing on the hfuse) I removed the write to the lock and tried again: sudo avrdude -c avrispmkII -P usb -p atmega328p -v -e -U efuse:w:0x05:m -U hfuse:w:0xD9:m -U lfuse:w:0xFF:m sudo avrdude -c avrispmkII -P usb -p atmega328p -v -e -U flash:w:optiboot_atmega328.hex After this I was able to successfully load the amforth image (seeing an hfuse value of 0xdf) and add as many definitions as I wanted! Possibly someone can further clarify any fuzziness in my statements to help others who may fall into this trap. thanks much for all of your help and encouragement. -csummers On Wed, Feb 29, 2012 at 6:48 PM, Charles Summers <sum...@gm...>wrote: > I really appreciate all the help. Unfortunately things are still not > working. I've tried it on both a rev2 and rev 3 uno with the same results. > (see below). I assume you guys aren't doing anything unusual in the minicom > settings? One other piece of information, after it hangs, doing a reset or > power cycle doesn't allow me to reconnect. I can't get any response until I > do another make install. Oh yeah, one more thing. when I do a read-fuse, > the hfuse value is 0xd6 instead of 0xd9. > > Welcome to minicom 2.5 > > OPTIONS: I18n > Compiled on May 2 2011, 10:05:24. > > Port /dev/ttyACM0 > > Press CTRL-A Z for help on special keys > > amforth 4.7 ATmega328P Forthduino > > > ok > > words > words show-wordlist ms 1ms applturnkey is Rdefer Edefer s" ." .s u. > dinvert d- d > > + d2* fill c!@spi sleep wdr -wdt wordlist forth definitions previous also > forth- > wordlist only set-order set-current get-order get-current !e[] @e[] > environment? > environment end-code code abort abort" [char] immediate recurse user > constant v > > ariable [ ] ; :noname : does> create ?do leave +loop loop do again until > repeat > while begin then else if sliteral literal @i (!i-nrww) !i @e !e not s>d > up! up@ > >< cmove> unloop i sp! sp@ rp! rp@ +! rshift lshift 1- 1+ xor or and 2* > 2/ inver > t um* um/mod m* + - log2 d< d> 0> u> u< true 0 0< > < 0= = <> r@ >r r> > rot drop > over swap ?dup dup c@ c! ! @ execute exit init-user ee>ram ee-user > source-tib re > fill-tib tib 2swap d2/ cmove dnegate dabs d>s j * icompare search-wordlist > defer > > @ defer! to value unused noop ver ?stack rec-notfound rec-find rec-intnum > interp > ret depth rp0 sp sp0 warm cold pause quit find-name parse-name /string > source cs > can parse >number number char refill accept cskip throw catch handler ' > type spa > > ces space cr icount itype s, u>= u<= digit? ud/mod ud.r ud. . d. .r d.r > sign #> > #s # <# hold hld tolower toupper within max min abs mod / negate u/mod */ > /mod * > > /mod turnkey bl hex decimal bin ['] , compile ( \ header allot here edp dp > key? > key emit? emit pad #tib >in cell+ cells base state f_cpu +usart baud > tx?-poll tx > -poll rx?-isr rx-isr int-trap int@ int! -int +int > ok > > > > ok > > > $aa constant > bla1 > ok > > > > > ok > > > $bb constant > bla2 > > ONCE AGAIN, IT HUNG RIGHT HERE :( > > NOTE: one thing I saw that was different for what it's worth was the hfuse > value: > > csummers@chas:~/amforth/releases/4.7/appl/arduino$ sudo make read-fuse > > avrdude -q -c avrispmkII -P usb -p atmega328p -U hfuse:r:-:h -U > lfuse:r:-:h -U efuse:r:-:h -U lock:r:-:h > > avrdude: AVR device initialized and ready to accept instructions > avrdude: Device signature = 0x1e950f > avrdude: current erase-rewrite cycle count is 1325449198 (if being tracked) > > avrdude: reading hfuse memory: > avrdude: writing output file "<stdout>" > 0xd6 > > avrdude: reading lfuse memory: > avrdude: writing output file "<stdout>" > 0xff > avrdude: reading efuse memory: > avrdude: writing output file "<stdout>" > 0x5 > avrdude: reading lock memory: > avrdude: writing output file "<stdout>" > 0x3f > > avrdude: safemode: Fuses OK > > avrdude done. Thank you. > > > ---------------------------------------------------------------------------------------------- > > > On Wed, Feb 29, 2012 at 1:56 PM, Erich Waelde <ew....@na...> wrote: > >> On 02/29/2012 08:51 PM, Charles Summers wrote: >> > What are your fuse values? >> >> $ make read-fuse >> sudo avrdude -q -c avrispmkII -P usb -p atmega328p -U hfuse:r:-:h -U >> lfuse:r:-:h -U efuse:r:-:h -U lock:r:-:h >> >> avrdude: AVR device initialized and ready to accept instructions >> avrdude: Device signature = 0x1e950f >> avrdude: reading hfuse memory: >> avrdude: writing output file "<stdout>" >> 0xd9 >> avrdude: reading lfuse memory: >> avrdude: writing output file "<stdout>" >> 0xff >> avrdude: reading efuse memory: >> avrdude: writing output file "<stdout>" >> 0x5 >> avrdude: reading lock memory: >> avrdude: writing output file "<stdout>" >> 0x3f >> >> avrdude: safemode: Fuses OK >> >> >> Cheers, >> Erich >> >> >> ------------------------------------------------------------------------------ >> Virtualization & Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> _______________________________________________ >> Amforth-devel mailing list for http://amforth.sf.net/ >> Amf...@li... >> https://lists.sourceforge.net/lists/listinfo/amforth-devel >> > > > > -- > -chuck > * This sig intentionally left blank * > -- -chuck * This sig intentionally left blank * |
Re: [Amforth] amForth 4.7 atmega328p (uno) hangs while entering
simple colon or constant definitions
From: Kalus M. <mik...@go...> - 2012-03-01 19:49:06
|
Hi. Is there any XOFF/XON mechanism active? Could you visualise ALL characters transmitted from device to terminal? And source to device? (ASCII-Code 0 to 31 and 127) Michael Am 01.03.2012 um 01:48 schrieb Charles Summers: > I really appreciate all the help. Unfortunately things are still not > working. I've tried it on both a rev2 and rev 3 uno with the same > results. > (see below). I assume you guys aren't doing anything unusual in the > minicom > settings? One other piece of information, after it hangs, doing a > reset or > power cycle doesn't allow me to reconnect. I can't get any response > until I > do another make install. Oh yeah, one more thing. when I do a read- > fuse, > the hfuse value is 0xd6 instead of 0xd9. > > Welcome to minicom 2.5 > > OPTIONS: I18n > Compiled on May 2 2011, 10:05:24. > Port /dev/ttyACM0 > > Press CTRL-A Z for help on special keys > > amforth 4.7 ATmega328P Forthduino >> > ok >> words > words show-wordlist ms 1ms applturnkey is Rdefer Edefer s" ." .s u. > dinvert > d- d > + d2* fill c!@spi sleep wdr -wdt wordlist forth definitions > previous also > forth- > wordlist only set-order set-current get-order get-current !e[] @e[] > environment? > environment end-code code abort abort" [char] immediate recurse user > constant v > ariable [ ] ; :noname : does> create ?do leave +loop loop do again > until > repeat > while begin then else if sliteral literal @i (!i-nrww) !i @e !e not > s>d up! > up@ >> < cmove> unloop i sp! sp@ rp! rp@ +! rshift lshift 1- 1+ xor or >> and 2* 2/ > inver > t um* um/mod m* + - log2 d< d> 0> u> u< true 0 0< > < 0= = <> r@ >r > r> rot > drop > over swap ?dup dup c@ c! ! @ execute exit init-user ee>ram ee-user > source-tib re > fill-tib tib 2swap d2/ cmove dnegate dabs d>s j * icompare search- > wordlist > defer > @ defer! to value unused noop ver ?stack rec-notfound rec-find rec- > intnum > interp > ret depth rp0 sp sp0 warm cold pause quit find-name parse-name /string > source cs > can parse >number number char refill accept cskip throw catch > handler ' > type spa > ces space cr icount itype s, u>= u<= digit? ud/mod ud.r ud. . d. .r > d.r > sign #> > #s # <# hold hld tolower toupper within max min abs mod / negate u/ > mod */ > /mod * > /mod turnkey bl hex decimal bin ['] , compile ( \ header allot here > edp dp > key? > key emit? emit pad #tib >in cell+ cells base state f_cpu +usart baud > tx?-poll tx > -poll rx?-isr rx-isr int-trap int@ int! -int +int > ok >> > > ok > >> $aa constant > bla1 > ok > >> > > ok > >> $bb constant > bla2 > > ONCE AGAIN, IT HUNG RIGHT HERE :( > > NOTE: one thing I saw that was different for what it's worth was > the hfuse > value: > > csummers@chas:~/amforth/releases/4.7/appl/arduino$ sudo make read-fuse > avrdude -q -c avrispmkII -P usb -p atmega328p -U hfuse:r:-:h -U > lfuse:r:-:h > -U efuse:r:-:h -U lock:r:-:h > > avrdude: AVR device initialized and ready to accept instructions > avrdude: Device signature = 0x1e950f > avrdude: current erase-rewrite cycle count is 1325449198 (if being > tracked) > avrdude: reading hfuse memory: > avrdude: writing output file "<stdout>" > 0xd6 > avrdude: reading lfuse memory: > avrdude: writing output file "<stdout>" > 0xff > avrdude: reading efuse memory: > avrdude: writing output file "<stdout>" > 0x5 > avrdude: reading lock memory: > avrdude: writing output file "<stdout>" > 0x3f > > avrdude: safemode: Fuses OK > > avrdude done. Thank you. > > ---------------------------------------------------------------------- > ------------------------ > > On Wed, Feb 29, 2012 at 1:56 PM, Erich Waelde <ew....@na...> > wrote: > >> On 02/29/2012 08:51 PM, Charles Summers wrote: >>> What are your fuse values? >> >> $ make read-fuse >> sudo avrdude -q -c avrispmkII -P usb -p atmega328p -U hfuse:r:-:h -U >> lfuse:r:-:h -U efuse:r:-:h -U lock:r:-:h >> >> avrdude: AVR device initialized and ready to accept instructions >> avrdude: Device signature = 0x1e950f >> avrdude: reading hfuse memory: >> avrdude: writing output file "<stdout>" >> 0xd9 >> avrdude: reading lfuse memory: >> avrdude: writing output file "<stdout>" >> 0xff >> avrdude: reading efuse memory: >> avrdude: writing output file "<stdout>" >> 0x5 >> avrdude: reading lock memory: >> avrdude: writing output file "<stdout>" >> 0x3f >> >> avrdude: safemode: Fuses OK >> >> >> Cheers, >> Erich >> >> >> --------------------------------------------------------------------- >> --------- >> Virtualization & Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> _______________________________________________ >> Amforth-devel mailing list for http://amforth.sf.net/ >> Amf...@li... >> https://lists.sourceforge.net/lists/listinfo/amforth-devel >> > > > > -- > -chuck > * This sig intentionally left blank * > ---------------------------------------------------------------------- > -------- > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel |
Re: [Amforth] amForth 4.7 atmega328p (uno) hangs while entering
simple colon or constant definitions
From: Charles S. <sum...@gm...> - 2012-03-01 22:58:33
|
Hi, In this case, it was not a communication issue. I had no hardware or software flow control set in minicom. And when it locked up, nothing would re-establish the session. I closed minicom, cycled power, brought minicom back up and still nothing. But it is working now. As near as I can tell, I had set the fuse lock when I installed the standard arduino bootloader. At least that's what I suspect, because I could never get the right value for the hfuse. I finally erased the flash, being careful this time not to set the lock bits. After loading amforth once again, this time the hfuse value is correct and I have no problems adding definitions. Thanks for the suggestions and help. -chassum On Thu, Mar 1, 2012 at 1:48 PM, Kalus Michael <mik...@go...>wrote: > Hi. > > Is there any XOFF/XON mechanism active? > Could you visualise ALL characters transmitted from device to terminal? > And source to device? (ASCII-Code 0 to 31 and 127) > > Michael > > > > > Am 01.03.2012 um 01:48 schrieb Charles Summers: > > > I really appreciate all the help. Unfortunately things are still not > > working. I've tried it on both a rev2 and rev 3 uno with the same > > results. > > (see below). I assume you guys aren't doing anything unusual in the > > minicom > > settings? One other piece of information, after it hangs, doing a > > reset or > > power cycle doesn't allow me to reconnect. I can't get any response > > until I > > do another make install. Oh yeah, one more thing. when I do a read- > > fuse, > > the hfuse value is 0xd6 instead of 0xd9. > > > > Welcome to minicom 2.5 > > > > OPTIONS: I18n > > Compiled on May 2 2011, 10:05:24. > > Port /dev/ttyACM0 > > > > Press CTRL-A Z for help on special keys > > > > amforth 4.7 ATmega328P Forthduino > >> > > ok > >> words > > words show-wordlist ms 1ms applturnkey is Rdefer Edefer s" ." .s u. > > dinvert > > d- d > > + d2* fill c!@spi sleep wdr -wdt wordlist forth definitions > > previous also > > forth- > > wordlist only set-order set-current get-order get-current !e[] @e[] > > environment? > > environment end-code code abort abort" [char] immediate recurse user > > constant v > > ariable [ ] ; :noname : does> create ?do leave +loop loop do again > > until > > repeat > > while begin then else if sliteral literal @i (!i-nrww) !i @e !e not > > s>d up! > > up@ > >> < cmove> unloop i sp! sp@ rp! rp@ +! rshift lshift 1- 1+ xor or > >> and 2* 2/ > > inver > > t um* um/mod m* + - log2 d< d> 0> u> u< true 0 0< > < 0= = <> r@ >r > > r> rot > > drop > > over swap ?dup dup c@ c! ! @ execute exit init-user ee>ram ee-user > > source-tib re > > fill-tib tib 2swap d2/ cmove dnegate dabs d>s j * icompare search- > > wordlist > > defer > > @ defer! to value unused noop ver ?stack rec-notfound rec-find rec- > > intnum > > interp > > ret depth rp0 sp sp0 warm cold pause quit find-name parse-name /string > > source cs > > can parse >number number char refill accept cskip throw catch > > handler ' > > type spa > > ces space cr icount itype s, u>= u<= digit? ud/mod ud.r ud. . d. .r > > d.r > > sign #> > > #s # <# hold hld tolower toupper within max min abs mod / negate u/ > > mod */ > > /mod * > > /mod turnkey bl hex decimal bin ['] , compile ( \ header allot here > > edp dp > > key? > > key emit? emit pad #tib >in cell+ cells base state f_cpu +usart baud > > tx?-poll tx > > -poll rx?-isr rx-isr int-trap int@ int! -int +int > > ok > >> > > > > ok > > > >> $aa constant > > bla1 > > ok > > > >> > > > > ok > > > >> $bb constant > > bla2 > > > > ONCE AGAIN, IT HUNG RIGHT HERE :( > > > > NOTE: one thing I saw that was different for what it's worth was > > the hfuse > > value: > > > > csummers@chas:~/amforth/releases/4.7/appl/arduino$ sudo make read-fuse > > avrdude -q -c avrispmkII -P usb -p atmega328p -U hfuse:r:-:h -U > > lfuse:r:-:h > > -U efuse:r:-:h -U lock:r:-:h > > > > avrdude: AVR device initialized and ready to accept instructions > > avrdude: Device signature = 0x1e950f > > avrdude: current erase-rewrite cycle count is 1325449198 (if being > > tracked) > > avrdude: reading hfuse memory: > > avrdude: writing output file "<stdout>" > > 0xd6 > > avrdude: reading lfuse memory: > > avrdude: writing output file "<stdout>" > > 0xff > > avrdude: reading efuse memory: > > avrdude: writing output file "<stdout>" > > 0x5 > > avrdude: reading lock memory: > > avrdude: writing output file "<stdout>" > > 0x3f > > > > avrdude: safemode: Fuses OK > > > > avrdude done. Thank you. > > > > ---------------------------------------------------------------------- > > ------------------------ > > > > On Wed, Feb 29, 2012 at 1:56 PM, Erich Waelde <ew....@na...> > > wrote: > > > >> On 02/29/2012 08:51 PM, Charles Summers wrote: > >>> What are your fuse values? > >> > >> $ make read-fuse > >> sudo avrdude -q -c avrispmkII -P usb -p atmega328p -U hfuse:r:-:h -U > >> lfuse:r:-:h -U efuse:r:-:h -U lock:r:-:h > >> > >> avrdude: AVR device initialized and ready to accept instructions > >> avrdude: Device signature = 0x1e950f > >> avrdude: reading hfuse memory: > >> avrdude: writing output file "<stdout>" > >> 0xd9 > >> avrdude: reading lfuse memory: > >> avrdude: writing output file "<stdout>" > >> 0xff > >> avrdude: reading efuse memory: > >> avrdude: writing output file "<stdout>" > >> 0x5 > >> avrdude: reading lock memory: > >> avrdude: writing output file "<stdout>" > >> 0x3f > >> > >> avrdude: safemode: Fuses OK > >> > >> > >> Cheers, > >> Erich > >> > >> > >> --------------------------------------------------------------------- > >> --------- > >> Virtualization & Cloud Management Using Capacity Planning > >> Cloud computing makes use of virtualization - but cloud computing > >> also focuses on allowing computing to be delivered as a service. > >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ > >> _______________________________________________ > >> Amforth-devel mailing list for http://amforth.sf.net/ > >> Amf...@li... > >> https://lists.sourceforge.net/lists/listinfo/amforth-devel > >> > > > > > > > > -- > > -chuck > > * This sig intentionally left blank * > > ---------------------------------------------------------------------- > > -------- > > Virtualization & Cloud Management Using Capacity Planning > > Cloud computing makes use of virtualization - but cloud computing > > also focuses on allowing computing to be delivered as a service. > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > _______________________________________________ > > Amforth-devel mailing list for http://amforth.sf.net/ > > Amf...@li... > > https://lists.sourceforge.net/lists/listinfo/amforth-devel > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel > -- -chuck * This sig intentionally left blank * |