You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
(5) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
|
Feb
(6) |
Mar
(41) |
Apr
(23) |
May
(11) |
Jun
(2) |
Jul
|
Aug
|
Sep
(9) |
Oct
(2) |
Nov
(1) |
Dec
(1) |
2008 |
Jan
(6) |
Feb
(1) |
Mar
(23) |
Apr
(18) |
May
(21) |
Jun
(13) |
Jul
(34) |
Aug
(5) |
Sep
(1) |
Oct
(4) |
Nov
|
Dec
(4) |
2009 |
Jan
|
Feb
(5) |
Mar
(5) |
Apr
(10) |
May
(1) |
Jun
(11) |
Jul
(1) |
Aug
|
Sep
|
Oct
(2) |
Nov
(3) |
Dec
(13) |
2010 |
Jan
(10) |
Feb
(4) |
Mar
(28) |
Apr
(3) |
May
(38) |
Jun
(22) |
Jul
(92) |
Aug
(154) |
Sep
(218) |
Oct
(45) |
Nov
(20) |
Dec
(1) |
2011 |
Jan
(33) |
Feb
(15) |
Mar
(32) |
Apr
(33) |
May
(48) |
Jun
(35) |
Jul
(7) |
Aug
|
Sep
(11) |
Oct
(5) |
Nov
|
Dec
(7) |
2012 |
Jan
(56) |
Feb
(11) |
Mar
(6) |
Apr
|
May
(128) |
Jun
(59) |
Jul
(21) |
Aug
(16) |
Sep
(24) |
Oct
(39) |
Nov
(12) |
Dec
(12) |
2013 |
Jan
(14) |
Feb
(61) |
Mar
(97) |
Apr
(46) |
May
(13) |
Jun
(23) |
Jul
(12) |
Aug
(25) |
Sep
(9) |
Oct
(81) |
Nov
(73) |
Dec
(45) |
2014 |
Jan
(36) |
Feb
(57) |
Mar
(20) |
Apr
(41) |
May
(43) |
Jun
(11) |
Jul
(14) |
Aug
(32) |
Sep
(9) |
Oct
(27) |
Nov
(21) |
Dec
(6) |
2015 |
Jan
(14) |
Feb
(23) |
Mar
(1) |
Apr
(19) |
May
(40) |
Jun
(11) |
Jul
(1) |
Aug
(2) |
Sep
(14) |
Oct
(10) |
Nov
(9) |
Dec
(13) |
2016 |
Jan
(4) |
Feb
(3) |
Mar
(7) |
Apr
|
May
(4) |
Jun
(13) |
Jul
(8) |
Aug
(3) |
Sep
(4) |
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
(6) |
Feb
(1) |
Mar
(1) |
Apr
(7) |
May
(10) |
Jun
(5) |
Jul
(7) |
Aug
(9) |
Sep
|
Oct
(1) |
Nov
(5) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
(5) |
Apr
|
May
|
Jun
(3) |
Jul
(6) |
Aug
|
Sep
(2) |
Oct
(54) |
Nov
(47) |
Dec
(53) |
2019 |
Jan
(23) |
Feb
(24) |
Mar
(19) |
Apr
(15) |
May
(5) |
Jun
(34) |
Jul
(9) |
Aug
(9) |
Sep
(3) |
Oct
(2) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
(7) |
Apr
(7) |
May
(5) |
Jun
(15) |
Jul
(22) |
Aug
(28) |
Sep
(13) |
Oct
(9) |
Nov
(17) |
Dec
(13) |
2021 |
Jan
(5) |
Feb
(1) |
Mar
(1) |
Apr
(9) |
May
(21) |
Jun
(9) |
Jul
|
Aug
(6) |
Sep
(16) |
Oct
|
Nov
(1) |
Dec
(6) |
2022 |
Jan
|
Feb
|
Mar
|
Apr
(7) |
May
(6) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(11) |
Sep
(21) |
Oct
(5) |
Nov
(1) |
Dec
(1) |
2024 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(7) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Robert E. <epp...@so...> - 2012-01-15 13:28:38
|
Does amforth set up a timer to measure time or do I have to do that by hand? I need a word similar to arduino micros() to keep track of time. Has somebody already written that? btw: What hw initialization (like timers, setting up i/o pins and the like) does amforth do, if any? Robert |
From: Matthias T. <mt...@we...> - 2012-01-15 12:33:57
|
Robert, >>> As for the amforth-upload.py script, I assume that reading characters >>> until the ok-prompt is seen *before* sending bytes would help as well. >> >> I just added a code line that *could* help. It simply sends an empty >> line to the conroller and waits for the ok and the prompt before >> staring the actual upload (just like pressing enter upon serial line >> connect). Let me know if it helps. > > Thanks a lot. Alas it is not working yet: I've got an major update for the amforth-shell.py script, maybe you could give it a try as well. amforth-shell.py -u <file-to-upload.frt> etc Matthias |
From: Robert E. <epp...@so...> - 2012-01-15 06:36:20
|
Erich Waelde <ew....@na...> writes: > |Automatic (Software) Reset > |You may also be able to disable the auto-reset by connecting > |a 110 ohm resistor from 5V to the reset line Yes, I have heard of this trick and tried it. I was not able to get the desired result on my uno board yet. Will do more experiments... Robert |
From: Robert E. <epp...@so...> - 2012-01-15 05:54:50
|
Matthias Trute <mt...@we...> writes: >> As for the amforth-upload.py script, I assume that reading characters >> until the ok-prompt is seen *before* sending bytes would help as well. > > I just added a code line that *could* help. It simply sends an empty > line to the conroller and waits for the ok and the prompt before > staring the actual upload (just like pressing enter upon serial line > connect). Let me know if it helps. Thanks a lot. Alas it is not working yet: dada@i3:~/AMFORTH/amforth-svn/amforth/trunk$ ./tools/amforth-upload.py -v \ -t /dev/ttyACM0 lib/misc.frt skipping empty line including file: './lib/misc.frt' sending line: \ some definitions that may be useful Then it hangs. Trying to guess what the script does (i don't talk python) it looks as if the empty line is filtered out and not sent to the avr. Robert |
From: Torsten S. <tsa...@gm...> - 2012-01-14 20:15:06
|
Yes, the DTR line triggers the reset. In the UNO schematic the pin on the (r3) 16u2 is labeled CTS. Could this be the reason? Cheers, Torsten Am 14.01.2012 um 20:44 schrieb Robert Epprecht: > Erich Waelde <ew....@na...> writes: >> On 01/14/2012 08:12 AM, Robert Epprecht wrote: >>>>> One key difference between the duemilanove and the uno is its >>>>> connection from serial (controller) to the USB plug of the board. >>> >>>> So it seems to me, connecting to the uno will cause it to reset. >>>> Strange concept. >>> >>> As far as I know all arduinos do that on linux and maybe osx. >>> If it does not show up under some conditions (like a given >>> arduino model) i think it might be a timing hazard. >> >> No, this feature has been introduced at some point as >> "Automatic (Software) Reset" it seems. It is definitely absent on >> duemilanove boards. > > Maybe I'm confusing something, but my duemilanove board running an > arduino sketch *does* restart the sketch when connecting to it > through serial (just double tested). So I had the impression that > this was a reset. > > Robert > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel |
From: Robert E. <epp...@so...> - 2012-01-14 19:44:41
|
Erich Waelde <ew....@na...> writes: > On 01/14/2012 08:12 AM, Robert Epprecht wrote: >>>> One key difference between the duemilanove and the uno is its >>>> connection from serial (controller) to the USB plug of the board. >> >>> So it seems to me, connecting to the uno will cause it to reset. >>> Strange concept. >> >> As far as I know all arduinos do that on linux and maybe osx. >> If it does not show up under some conditions (like a given >> arduino model) i think it might be a timing hazard. > > No, this feature has been introduced at some point as > "Automatic (Software) Reset" it seems. It is definitely absent on > duemilanove boards. Maybe I'm confusing something, but my duemilanove board running an arduino sketch *does* restart the sketch when connecting to it through serial (just double tested). So I had the impression that this was a reset. Robert |
From: Matthias T. <mt...@we...> - 2012-01-14 18:22:42
|
Hi all, > > As for the amforth-upload.py script, I assume that reading characters > until the ok-prompt is seen *before* sending bytes would help as well. I just added a code line that *could* help. It simply sends an empty line to the conroller and waits for the ok and the prompt before staring the actual upload (just like pressing enter upon serial line connect). Let me know if it helps. It is helpful anyway to ensure a proper input state. Matthias |
From: Erich W. <ew....@na...> - 2012-01-14 17:27:27
|
Hello, On 01/14/2012 08:12 AM, Robert Epprecht wrote: > Erich Waelde<ew....@na...> writes: > >>> One key difference between the duemilanove and the uno is its >>> connection from serial (controller) to the USB plug of the board. > >> So it seems to me, connecting to the uno will cause it to reset. > correct > >> Strange concept. > > As far as I know all arduinos do that on linux and maybe osx. > If it does not show up under some conditions (like a given > arduino model) i think it might be a timing hazard. No, this feature has been introduced at some point as "Automatic (Software) Reset" it seems. It is definitely absent on duemilanove boards. One way to eliminate this behaviour is to cut the trace (Leiterbahn) between the two pads labeled "RESET EN". As for the amforth-upload.py script, I assume that reading characters until the ok-prompt is seen *before* sending bytes would help as well. However, the automatic software reset implies that I cannot connect to an already running controller (something I routinely do) without causing a reset. I can see, why they did this, and I'm grateful that cutting a trace will solve this for me. YMMV. Cheers, Erich http://store.nkcelectronics.com/arduino-diecimila.html |Automatic (Software) Reset | |Rather than requiring a physical press of the reset button before |an upload, the Arduino Uno is designed in a way that allows it to |be reset by software running on a connected computer. One of the |hardware flow control lines (DTR) of the ATmega8U2 is connected to |the reset line of the ATmega328 via a 100 nanofarad capacitor. |When this line is asserted (taken low), the reset line drops long |enough to reset the chip. The Arduino software uses this |capability to allow you to upload code by simply pressing the |upload button in the Arduino environment. This means that the |bootloader can have a shorter timeout, as the lowering of DTR can |be well-coordinated with the start of the upload. | |This setup has other implications. When the Uno is connected to |either a computer running Mac OS X or Linux, it resets each time a |connection is made to it from software (via USB). For the |following half-second or so, the bootloader is running on the Uno. |While it is programmed to ignore malformed data (i.e. anything |besides an upload of new code), it will intercept the first few |bytes of data sent to the board after a connection is opened. If a |sketch running on the board receives one-time configuration or |other data when it first starts, make sure that the software with |which it communicates waits a second after opening the connection |and before sending this data. | |The Uno contains a trace that can be cut to disable the |auto-reset. The pads on either side of the trace can be soldered |together to re-enable it. It's labeled "RESET-EN". You may also be |able to disable the auto-reset by connecting a 110 ohm resistor |from 5V to the reset line; see this forum thread for details. |
From: Robert E. <epp...@so...> - 2012-01-14 07:12:41
|
Erich Waelde <ew....@na...> writes: >> One key difference between the duemilanove and the uno is its >> connection from serial (controller) to the USB plug of the board. > So it seems to me, connecting to the uno will cause it to reset. correct > Strange concept. As far as I know all arduinos do that on linux and maybe osx. If it does not show up under some conditions (like a given arduino model) i think it might be a timing hazard. Robert |
From: Robert E. <epp...@so...> - 2012-01-14 07:04:23
|
Erich Waelde <ew....@na...> writes: > 4. > amforth-upload.py is confused from this point on, because it > sent some character, a '\' say, and it does not read back this > backslash (the echoed response from amforth). The program will > stall at this point. > > Matthias has suggested to add "dest.flush()" > after line 103 of this snippet > 102 for o in list(string): > 103 dest.write(o); > 104 dest.flush(); #<--- added here > 105 if o == "\t": > 106 o = " " > 107 > 108 while True: > > > But I never came around to test this. Do you want to try that? did not help. I got 'amfoamforth 4.6 ATmega328P' this time, keeps changing. Robert |
From: Robert E. <epp...@so...> - 2012-01-14 05:56:00
|
Matthias Trute <mt...@we...> writes: > Another tool to use is am4up with minicom (a small > C program in the tools directory). See at the sources on > how to use it. Did that, but still no luck. It does not work with my UNO. Robert |
From: Matthias T. <mt...@we...> - 2012-01-13 20:45:19
|
Hi, > This may be wrong. I observe that connecting to the Uno with > minicom will *always* produce this output. > > amforth 4.6 ATmega328P Forthduino > > >From the arduino website "When the Uno is connected to either a computer running Mac OS X or Linux, it resets each time a connection is made to it from software (via USB)." That means, the upload utility needs to flush the input buffer everytime it starts. Strange hardware design. Doable, but not this evening ;) Matthias |
From: Erich W. <ew....@na...> - 2012-01-13 19:49:45
|
Hi, I just remembered that I received a package of stuff the other day and got out a brand new uno ... > > 2. > the controller goes out of reset and starts the amforth > system. The last thing it does is printing out > > amforth 4.6 ATmega328P > > > > The first line is the output of ver. The second line is > the ok prompt. Nothing new here. > > HOWEVER, at this point in time you are NOT connected > with amforth-upload.py. (You may be connected with minicom, > then you see this output). > > 3. > Now (assuming no minicom or other terminal is connected) > amforth-upload.py opens the serial port and reads the above > characters *again*. They are not sent, when amforth-upload.py > opens the serial port. I suspect, that there is a fifo-buffer > in the usb-serial stuff not being cleared. This may be wrong. I observe that connecting to the Uno with minicom will *always* produce this output. amforth 4.6 ATmega328P Forthduino > Whereas a duemilanove will not. As a quick test I added 37 statements (I didn't grok how to write a for(i=0; i<37; i++) { read one char; } statement in python ;-) i = tty_dev.read(1) between line tty_dev = file(tty_dev_name,"r+",0) and lines if len(args)<1: if verbose: print >>sys.stderr, "processing stdin" write_file_flow(sys.stdin,tty_dev) else: And *drum roll* $ make marker CONSOLE=/dev/ttyACM0 amforth-upload.py -t /dev/ttyACM0 lib/misc.frt : erase ok 0 fill ok; ok > : .( ok [char] ) word count type word ?? -13 16 > Well almost. It fails on something else now. > One key difference between the duemilanove and the uno is its > connection from serial (controller) to the USB plug of the board. So it seems to me, connecting to the uno will cause it to reset. Strange concept. Cheers, Erich |
From: Erich W. <ew....@na...> - 2012-01-13 19:12:58
|
On 01/13/2012 07:59 PM, Robert Epprecht wrote: > Matthias Trute<mt...@we...> writes: >> Another tool to use is am4up with minicom (a small > >> The downside is that it does not honor the include commands. > No problem. I think putting the include logic into the upload > tool might be questionable design anyway. ACK! I added these lines into the makefile TARGET=main CONSOLE=/dev/ttyUSB0 ... upload_file: cat $(TARGET).fs | unfold_fs > $(TARGET).fs.unfold trim_fs $(TARGET).fs.unfold > $(TARGET).fs.upload upload: upload_file amforth-upload.py -t ${CONSOLE} $(TARGET).fs.upload to produce the following commands $ make -n upload cat main.fs | unfold_fs > main.fs.unfold trim_fs main.fs.unfold > main.fs.upload amforth-upload.py -t /dev/ttyUSB0 main.fs.upload unfold_fs treats all include directives adding comment lines (begin end of file X) and the content of file X into the output stream. trim_fs removes all comments of form \ ... line or ... ( comment ) ... and it compresses consecutive spaces, possibly in undesired places. Please find the two scripts below for anyone's use Comments and patches are, of course, welcome. Cheers, Erich # ---------------------------------------------------------------- $ cat ~/bin/unfold_fs #!/usr/bin/perl -w # 2007-12-08 EW # # filter, read all input, expand lines like # "^.include filename$" # with the content found in filename # # this is written unfold amforth projects before # transferring them to the target controller. use strict; my $Prog=$0; my $file=""; my $pattern='^[#]*include\s+(\S+)'; my $comment='\ ---'; my $verbose=0; while (<>) { if (m/$pattern/) { $file = "$1"; print STDERR " $file\n" if ($verbose); if (not -r $file) { print STDERR "$Prog: file $file not found!\n"; exit 2; } print "$comment include begin $file\n"; system("$Prog $file") == 0 or die "failed.\n"; print "$comment include end $file\n"; } else { print $_; } } # ---------------------------------------------------------------- $ cat ~/bin/trim_fs #!/usr/bin/perl -w # 2007-12-08 EW # trim_fs # # filter, remove comments, leading and trailing whitespace and empty lines # # this is written to trim unfolded amforth projects use strict; my $Prog=$0; while (<>) { chomp; s/\\[ \t].*$//; # remove line comments s/\( .* \)//; # remove inline comments #s/^\s+//; # delete leading whitespace / well no, keep indendation s/\s+$//; # delete trailing whitespace s/\b\s+/ /g; # compress white space after first word next if /^$/; # delete empty lines print "$_\n"; } # ---------------------------------------------------------------- |
From: Erich W. <ew....@na...> - 2012-01-13 19:06:30
|
Hi, On 01/13/2012 02:12 PM, Robert Epprecht wrote: > > But now if i try: > amforth-upload.py -v -t /dev/ttyACM0 lib/misc.frt > including file: './lib/misc.frt' > sending line: \ some definitions that may be useful > > amforth 4.6 ATmega328P > > > > Then it hangs... (independent of python version) I can confirm this behaviour. I think its interesting to note the timing stuff: 1. install .hex files on controller with programmer The controller is put into reset state and programmed. At the end, the reset is released, so 2. the controller goes out of reset and starts the amforth system. The last thing it does is printing out amforth 4.6 ATmega328P > The first line is the output of ver. The second line is the ok prompt. Nothing new here. HOWEVER, at this point in time you are NOT connected with amforth-upload.py. (You may be connected with minicom, then you see this output). 3. Now (assuming no minicom or other terminal is connected) amforth-upload.py opens the serial port and reads the above characters *again*. They are not sent, when amforth-upload.py opens the serial port. I suspect, that there is a fifo-buffer in the usb-serial stuff not being cleared. One key difference between the duemilanove and the uno is its connection from serial (controller) to the USB plug of the board. 4. amforth-upload.py is confused from this point on, because it sent some character, a '\' say, and it does not read back this backslash (the echoed response from amforth). The program will stall at this point. Matthias has suggested to add "dest.flush()" after line 103 of this snippet 102 for o in list(string): 103 dest.write(o); 104 dest.flush(); #<--- added here 105 if o == "\t": 106 o = " " 107 108 while True: But I never came around to test this. Do you want to try that? If this does not help, maybe add some code, that will read all available data and discard it *before* sending the first character. Cheers, Erich |
From: Robert E. <epp...@so...> - 2012-01-13 18:59:58
|
Hi Matthias Matthias Trute <mt...@we...> writes: > I cannot test with an recent arduino Did others use it on the uno? >> runs fine with screen /dev/ttyACM0 >> but I cannot upload files. > the python script requires that no other process accesses the > serial line. You cannot watch it working. Yes, I assumed that and always terminated screen before trying to upload. > Another tool to use is am4up with minicom (a small > C program in the tools directory). See at the sources on > how to use it. Ah, thank you. Another thing to try. > The downside is that it does not honor the include commands. No problem. I think putting the include logic into the upload tool might be questionable design anyway. Thank you, Robert |
From: Matthias T. <mt...@we...> - 2012-01-13 16:33:56
|
Hello Robert, I cannot test with an recent arduino (the ttyACM device tells me this), so only one remark. > Slowly progressing towards using amforth on an arduino uno board. > The basic system is up, runs fine with screen /dev/ttyACM0 > but I cannot upload files. the python script requires that no other process accesses the serial line. You cannot watch it working. Another tool to use is am4up with minicom (a small C program in the tools directory). See at the sources on how to use it. It implements the same communication logic as the python script but *within* minicom. The downside is that it does not honor the include commands. Nobody's perfect and patches are very welcome. > amforth-upload.py: > First I had to replace 'python2' in the sheebang line of > amforth-upload.py by 'python2.7' 'python2.6' or 'python' > to have it run on debian/wheezy. Blame the debian people. Matthias |
From: Robert E. <epp...@so...> - 2012-01-13 13:13:04
|
Slowly progressing towards using amforth on an arduino uno board. The basic system is up, runs fine with screen /dev/ttyACM0 but I cannot upload files. amforth-upload.py: First I had to replace 'python2' in the sheebang line of amforth-upload.py by 'python2.7' 'python2.6' or 'python' to have it run on debian/wheezy. But now if i try: amforth-upload.py -v -t /dev/ttyACM0 lib/misc.frt including file: './lib/misc.frt' sending line: \ some definitions that may be useful amforth 4.6 ATmega328P > Then it hangs... (independent of python version) The second last output line very often starts with something like 'amamforth' repeating a couple of characters of 'amforth', usually two. What might be the problem? I could not find ascii-xfr to use as a temporary workaround. So how can I upload files to amforth now? Robert |
From: Torsten S. <tsa...@gm...> - 2012-01-10 22:01:26
|
Hello Marcin, This is what I get from avra: duemilanove.hex: [exec] AVRA: advanced AVR macro assembler Version 1.3.0 Build 1 (8 May 2010) [exec] Copyright (C) 1998-2010. Check out README file for more info [exec] [exec] AVRA is an open source assembler for Atmel AVR microcontroller family [exec] It can be used as a replacement of 'AVRASM32.EXE' the original assembler [exec] shipped with AVR Studio. We do not guarantee full compatibility for avra. [exec] [exec] AVRA comes with NO WARRANTY, to the extent permitted by law. [exec] You may redistribute copies of avra under the terms [exec] of the GNU General Public License. [exec] For more information about these matters, see the files named COPYING. [exec] [exec] Pass 1... [exec] Pass 2... [exec] done [exec] [exec] [exec] Assembly complete with no errors. [exec] Segment usage: [exec] Code : 4927 words (9854 bytes) [exec] Data : 219 bytes [exec] EEPROM : 80 bytes I built avra from git sources fetched 3 Dez 17:13. The first difference in the code is from this macro (.lst files): avra: .set pc_ = pc .org $0000 C:000000 + jmp_ PFA_COLD .ifdef PFA_COLD .if (PFA_COLD-pc > 2040) || (pc-PFA_COLD>2040) C:000000 c6b7 rjmp PFA_COLD .endif avrasm2: .set pc_ = pc .org $0000 000000 940c 06b8 jmp_ PFA_COLD .org pc_ the second: avra: PFA_INTTRAP: C:00007b 9380 0060 sts intcur, tosl C:00007d + loadtos C:00007d 9189 ld tosl, Y+ C:00007e 9199 ld tosh, Y+ C:00007f 9468 set ; set the interrupt flag for the inner interpreter C:000080 + jmp_ DO_NEXT avrasm2: PFA_INTTRAP: 00007b 9380 0100 sts intcur, tosl 00007d 9189 00007e 9199 loadtos 00007f 9468 set ; set the interrupt flag for the inner interpreter 000080 940c 380e jmp_ DO_NEXT The first is a different interpretation of the macro but I have no idea how intcur: .byte 1 is assembled differently. Cheers, Torsten |
From: Marcin C. <sa...@sa...> - 2012-01-10 00:03:26
|
>> Torsten Sadowski <tsa...@gm...> wrote: > Thanks for all the help. > > It seems that avra does not work correctly with the macro definitions. Below is the beginning of a diff of the disassemblies. Flash.dis is from avra and flash2.dis from avrasm2. The cold boot jump is obviously wrong. Torsten, can you help me debugging the problem? Which version of avra are you using? Normally avra gives an error message when relative jump is out of range. Can you check if you get a message? //Marcin |
From: Carsten S. <ca...@st...> - 2012-01-02 09:05:37
|
Hi, there will be a free amForth workshop next Sunday in Zurich/Switzerland. See announcement below (sorry, only German, as the workshop will also be in German language). -- Carsten -------- Original Message -------- Hallo zusammen. Carsten Strotmann von der Forth Gesellschaft e.V. [1] kommt nach Zürich und veranstaltet einen kleinen Forth Workshop. Dieser findet im Hackerspace des Chaos Computer Club Zürich[2] statt und ist für die Teilnehmer kostenlos. Hier die Eckdaten: Was: Forth-Workshop Wo: Hackerspace des CCCZH Luegislandstrasse 485 (im Keller) Zürich Schwamendingen Wann: 08. Januar 2012, ab 13:00 Uhr bis ca. 17:00 Uhr Anmeldung: Mail an ventilator .at. semmel.ch! Die Platzzahl ist beschränkt. Schnell Entschlossene sind also definitiv im Vorteil. =:o) Mitzubringen sind ein Computer (Laptop, Netbook oder so) mit funktionstüchtigem Betriebssystem und installiertem Terminalprogramm. Siehe dazu auch [3]. Da mit Arduino-Boards gearbeitet wird sollte der Computer über eine freie USB- oder serielle Schnittstelle verfügen. Der Hackerspace samt fliessendem Strom, Internet und Wasser wird uns freundlicherweise vom CCCZH zur Verfügung gestellt. Getränke (Cola, Club Mate und Bier) sind zum Selbstkostenpreis vorrätig. CU, Venty [1] http://www.forth-ev.de/ [2] http://www.ccczh.ch/ [3] http://strotmann.de/roller/cas/entry/terminal_emulatoren_f%C3%BCr_forth_systeme |
From: Carsten S. (private) <ca...@st...> - 2011-12-28 17:48:08
|
Hi, because compiling amForth from source can be quite a challenge for someone starting with amForth, I'm making the amForth hex-files that I compile available at http://strotmann.de/~cas/download/amforth/hexfiles/ It would be nice to also have hex-file for the most popular systems in the sourceforge files download for amForth. -- Carsten |
From: Torsten S. <tsa...@gm...> - 2011-12-10 15:19:09
|
Thanks for all the help. It seems that avra does not work correctly with the macro definitions. Below is the beginning of a diff of the disassemblies. Flash.dis is from avra and flash2.dis from avrasm2. The cold boot jump is obviously wrong. --- flash.dis 2011-12-05 21:21:15.000000000 +0100 +++ flash2.dis 2011-12-09 20:25:49.000000000 +0100 @@ -29,14 +29,14 @@ 6C: ori R22, 0x17 6E: cpi R19, 0x23 70: subi R19, 0x08 - 0: rjmp .+3438 ; 0xD70 + 0: jmp 0x6B8 72: st -Y, R0 74: in R0, 0x3F 76: st -Y, R0 78: pop R0 7A: pop R0 7C: dec R0 - 7E: sts 0x060, R0 + 7E: sts 0x100, R0 82: ld R0, Y+ 84: out $3F, R0 86: ld R0, Y+ Cheers, Torsten Am 05.12.2011 um 20:27 schrieb Erich Waelde: > Hello Torsten, > > On 12/05/2011 07:48 PM, Torsten Sadowski wrote: >> Hi, >> >> I'm trying to run amforth on an Arduino Duemilanove. >> Compiling with Avra (from git) and uploading worked >> without a problem but I can't get a prompt in the serial >> terminal. I also set the fuses according to the Readme. >> I have the impression, that the chip does not start. >> I would expect some flicker on the TX diode when amforth >> sends the "I'm alive" message. > > Just to double check, you did load two files, not one? > 1. duemilanove.eep.hex > 2. duemilanove.hex > > The .eep.hex is loaded into the eeprom area, whithout that, > nothing will move. > >> >> Could someone please send me Duemilanove hex-files that are known to work? > > please find attached 2 files which I have used. > amforth Version 4.6 > > The files might be striped on the mailing list, so I add > your email explicitly. > > Have fun, > Erich > <duemilanove.eep.hex><duemilanove.hex> |
From: Matthias T. <mt...@we...> - 2011-12-08 18:55:46
|
Hi Hannu, > I have written some forth code and I've forgot what it does. I got > this idea of generating documentation and started to google a bit. > AFAIK only amfort has autogenerated documentation. Not at all. You may look at the linux kernel sources as well ;) Mixing code and its documentation is is a very old idea. e.g. TeX is written in a file format that is used to generate the source code for the compiler and the documentation (for TeX itself). > I'm not familiar with perl and I just had quick look for makewords > script. I got understanding that it is heavily amforth specific. Absolutly. When I started amforth, doxygen and friends are not usable for assembly sources. Furthermore I wanted a tool that could generate forth-like hypertext'ed html from the assembler sources. _That_ is indeed something no other tool I know of can do. > And the result would be doxygen support for Forth. You may want to look at gforth. They use something forth-like to generate the docs. And you may want to read the book from Stephen Pelc: www.mpeforth.com/arena/ProgramForth.pdf Matthias |
From: Hannu V. <vu...@ms...> - 2011-12-08 07:16:18
|
Hi! I have written some forth code and I've forgot what it does. I got this idea of generating documentation and started to google a bit. AFAIK only amfort has autogenerated documentation. I'm not familiar with perl and I just had quick look for makewords script. I got understanding that it is heavily amforth specific. I also found perldoxygen from sourceforge. If I count 3 3 + . I get result as some work to migrate to perldoxygen and nice layout of doxygen pages. As this is forth, the amount of work depends of value of 3 :) And the result would be doxygen support for Forth. Has anyone had this problem before and how have you handled it? Best regards, Hannu Vuolasaho |