Re: [Amforth] Soft Serial Port

2019-02-26 Thread Tristan Williams
Jan,

> What do you mean with “and a small sck period”

The smaller the SCK period the faster the programmer tries to program
the target mcu. There are limits and not all programmers/software support
user altering of the SCK period.  

I think you mentioned you use a Pololu programmer so this link might help.

https://www.pololu.com/docs/0J67/5.7

Best wishes,
Tristan


___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Soft Serial Port

2019-02-25 Thread Jan Kromhout
Tristan,

What do you mean with “and a small sck period”

Can you publish your code as an example how you have read your gps?

With kindly regards,

Jan

Verstuurd vanaf mijn iPad

> Op 17 feb. 2019 om 18:19 heeft Tristan Williams  het 
> volgende geschreven:
> 
> Jan,
> 
>> Loading my Mega with forth was a succes.
> 
> Very pleased it worked.
> 
>> After loading my fix amount of screens, witch are the same as on the
>> Arduino it took significant more time to save and load the new
>> image. Is this by the structure of the Mega?
> 
> Not an answer to your question, but it seemed to take longer than I
> wished! If you load atmega2560.frt, which is twice the size of
> atmega328p.frt, it will take longer.
> 
> I ended up deciding what my base set of .frt files would be, loading
> them via amshell once, then used avrdude to write an image of the
> flash and eeprom to my pc. I would then write these instead to the
> atmega2560 when I did something such that the atmega2560 was no longer
> talking to me. Despite the substantial size of the files, it seemed
> quicker to burn them with avrdude (and a small sck period) than burn
> atmega2560.hex, atmega2560.eep.hex, and then load the base set of .frt
> with amshell.
> 
> Best wishes,
> Tristan
> 
> 
> 
> ___
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel

___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Soft Serial Port

2019-02-17 Thread Tristan Williams
Jan,

> Loading my Mega with forth was a succes.

Very pleased it worked.

> After loading my fix amount of screens, witch are the same as on the
> Arduino it took significant more time to save and load the new
> image. Is this by the structure of the Mega?

Not an answer to your question, but it seemed to take longer than I
wished! If you load atmega2560.frt, which is twice the size of
atmega328p.frt, it will take longer.

I ended up deciding what my base set of .frt files would be, loading
them via amshell once, then used avrdude to write an image of the
flash and eeprom to my pc. I would then write these instead to the
atmega2560 when I did something such that the atmega2560 was no longer
talking to me. Despite the substantial size of the files, it seemed
quicker to burn them with avrdude (and a small sck period) than burn
atmega2560.hex, atmega2560.eep.hex, and then load the base set of .frt
with amshell.

Best wishes,
Tristan



___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Soft Serial Port

2019-02-17 Thread Jan Kromhout via Amforth-devel
Tristan,

Loading my Mega with forth was a succes. After loading my fix amount of 
screens, witch are the same as on the Arduino it took significant more time to 
save and load the new
image. Is this by the structure of the Mega?
So far no finding thats worry my. It runs as it should! Great project from your 
side. Will maybe a fix item into the repository of amforth.

With kindly regards,

Jan


> Op 16 feb. 2019, om 22:07 heeft Jan Kromhout via Amforth-devel 
>  het volgende geschreven:
> 
> Tristian,
> 
> Thank, I will start soon to explore this version.
> Let you know my findings.
> 
> With kindly regars,
> 
> Jan
> 
> Verstuurd vanaf mijn iPad
> 
>> Op 16 feb. 2019 om 21:27 heeft Tristan Williams  het 
>> volgende geschreven:
>> 
>> Jan,
>> 
>> My prebuilt hex files for the ARDUINO MEGA 2560 are linked below
>> 
>> https://www.mostlymostly.uk/post/2019.02.16/
>> 
>> Hope this helps and interested to hear how you get on.
>> 
>> Best wishes,
>> Tristan
>> 
>> 
>> 
>>> On 15Feb19 16:47, Jan Kromhout via Amforth-devel wrote:
>>> Tristan,
>>> 
>>> First thanks for the quick response.
>>> Yes I found out the hex file wasn’t working after flashing to the Mega.
>>> My flasher is from Pololu and is working great on my macbook pro and 
>>> avrdude.
>>> 
>>> Is there an possibility to get the hex files from you? 
>>> I’m not a star in compiling this kind of things without a good portion of 
>>> help.
>>> 
>>> My email is krom1109 at hotmail dot com
>>> 
>>> With kindly regards,
>>> 
>>> Jan
>>> 
>>> 
>>> 
 Op 15 feb. 2019, om 16:38 heeft Tristan Williams  het 
 volgende geschreven:
 
 Jan,
 
 A number of things.
 
 The hex file you have found may not be one for the Arduino
 Mega2560. If I remember correctly, the distribution has an appl folder
 for the atmega2561 and the configuration assembler file
 
 https://sourceforge.net/p/amforth/code/HEAD/tree/trunk/appl/atmega2561/atmega256.asm
 
 suggests that it was built for an ATmega2561 with an 14.745600MHz crystal 
 and uart1
 hosting the AmForth interpreter.
 
 I adjusted the AmForth make system (on OSX) to build a custom hex file
 for the Arduino Mega2560 which uses ATmega2560 chip and a 16MHz
 crystal. I also put the AmForth interpreter on uart0. The AmForth
 build system is one of its many strengths, though getting it to work
 on OS X does require a few extra steps.
 
 I used these fuse values for my Arduino Mega2560
 
> avrdude: safemode: Fuses OK (E:FF, H:99, L:CE)
 
 Finally, what hex programmer you use may be important with the Mega2560. I
 used an avrisp2 compatible programmer and had no problems. However, I can
 confirm that my usbtiny programmer couldn't program my Mega2560 
 successfully.
 
 Best wishes,
 Tristan
 
 
 
 
 
 
 
 
> On 15Feb19 14:20, Jan Kromhout wrote:
> Tristan,
> 
> Found the hex files for the Mega, but don’t found the fuse values.
> Please can you help me out with these.
> 
> Cheers,
> 
> Jan
> 
> 
> 
>> Op 15 feb. 2019, om 13:21 heeft Jan Kromhout  het 
>> volgende geschreven:
>> 
>> Tristan,
>> 
>> Thank. Where to find the hex files for the mega, and what fuse settings 
>> you have used.
>> I wont to play with it this evening. Verry exciting how it works.
>> Cheers,
>> 
>> Jan
>> 
>> Verstuurd vanaf mijn iPad
>> 
>>> Op 15 feb. 2019 om 12:45 heeft Tristan Williams  het 
>>> volgende geschreven:
>>> 
>>> Jan,
>>> 
>>> There is a link "source" in the text, but below is the url from the
>>> link. 
>>> 
>>> https://www.mostlymostly.uk/files/source/uart1.forth
>>> 
>>> Tristan
>>> 
>>> 
 On 15Feb19 11:15, Jan Kromhout via Amforth-devel wrote:
 Hi Tristan,
 
 How can I acces the source, the link shows only an overview!
 
 Cheers,
 
 Jan
 
 Verstuurd vanaf mijn iPad
 
> Op 15 feb. 2019 om 09:21 heeft Tristan Williams  het 
> volgende geschreven:
> 
> 
> 
> I've linked (below) some AmForth words I've written to help me use the
> second hardware serial port on an AVR atmega mcu, should there be one.
> 
> https://www.mostlymostly.uk/post/2019.02.01/
> 
> 
> Tristan
> 
> 
> 
> 
> ___
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel
 
 
 
 ___
 Amforth-devel mailing list for http://amforth.sf.net/
 Amforth-devel@lists.sourceforge.net
 htt

Re: [Amforth] Soft Serial Port

2019-02-16 Thread Jan Kromhout via Amforth-devel
Tristian,

Thank, I will start soon to explore this version.
Let you know my findings.

With kindly regars,

Jan

Verstuurd vanaf mijn iPad

> Op 16 feb. 2019 om 21:27 heeft Tristan Williams  het 
> volgende geschreven:
> 
> Jan,
> 
> My prebuilt hex files for the ARDUINO MEGA 2560 are linked below
> 
> https://www.mostlymostly.uk/post/2019.02.16/
> 
> Hope this helps and interested to hear how you get on.
> 
> Best wishes,
> Tristan
> 
> 
> 
>> On 15Feb19 16:47, Jan Kromhout via Amforth-devel wrote:
>> Tristan,
>> 
>> First thanks for the quick response.
>> Yes I found out the hex file wasn’t working after flashing to the Mega.
>> My flasher is from Pololu and is working great on my macbook pro and avrdude.
>> 
>> Is there an possibility to get the hex files from you? 
>> I’m not a star in compiling this kind of things without a good portion of 
>> help.
>> 
>> My email is krom1109 at hotmail dot com
>> 
>> With kindly regards,
>> 
>> Jan
>> 
>> 
>> 
>>> Op 15 feb. 2019, om 16:38 heeft Tristan Williams  het 
>>> volgende geschreven:
>>> 
>>> Jan,
>>> 
>>> A number of things.
>>> 
>>> The hex file you have found may not be one for the Arduino
>>> Mega2560. If I remember correctly, the distribution has an appl folder
>>> for the atmega2561 and the configuration assembler file
>>> 
>>> https://sourceforge.net/p/amforth/code/HEAD/tree/trunk/appl/atmega2561/atmega256.asm
>>> 
>>> suggests that it was built for an ATmega2561 with an 14.745600MHz crystal 
>>> and uart1
>>> hosting the AmForth interpreter.
>>> 
>>> I adjusted the AmForth make system (on OSX) to build a custom hex file
>>> for the Arduino Mega2560 which uses ATmega2560 chip and a 16MHz
>>> crystal. I also put the AmForth interpreter on uart0. The AmForth
>>> build system is one of its many strengths, though getting it to work
>>> on OS X does require a few extra steps.
>>> 
>>> I used these fuse values for my Arduino Mega2560
>>> 
 avrdude: safemode: Fuses OK (E:FF, H:99, L:CE)
>>> 
>>> Finally, what hex programmer you use may be important with the Mega2560. I
>>> used an avrisp2 compatible programmer and had no problems. However, I can
>>> confirm that my usbtiny programmer couldn't program my Mega2560 
>>> successfully.
>>> 
>>> Best wishes,
>>> Tristan
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
 On 15Feb19 14:20, Jan Kromhout wrote:
 Tristan,
 
 Found the hex files for the Mega, but don’t found the fuse values.
 Please can you help me out with these.
 
 Cheers,
 
 Jan
 
 
 
> Op 15 feb. 2019, om 13:21 heeft Jan Kromhout  het 
> volgende geschreven:
> 
> Tristan,
> 
> Thank. Where to find the hex files for the mega, and what fuse settings 
> you have used.
> I wont to play with it this evening. Verry exciting how it works.
> Cheers,
> 
> Jan
> 
> Verstuurd vanaf mijn iPad
> 
>> Op 15 feb. 2019 om 12:45 heeft Tristan Williams  het 
>> volgende geschreven:
>> 
>> Jan,
>> 
>> There is a link "source" in the text, but below is the url from the
>> link. 
>> 
>> https://www.mostlymostly.uk/files/source/uart1.forth
>> 
>> Tristan
>> 
>> 
>>> On 15Feb19 11:15, Jan Kromhout via Amforth-devel wrote:
>>> Hi Tristan,
>>> 
>>> How can I acces the source, the link shows only an overview!
>>> 
>>> Cheers,
>>> 
>>> Jan
>>> 
>>> Verstuurd vanaf mijn iPad
>>> 
 Op 15 feb. 2019 om 09:21 heeft Tristan Williams  het 
 volgende geschreven:
 
 
 
 I've linked (below) some AmForth words I've written to help me use the
 second hardware serial port on an AVR atmega mcu, should there be one.
 
 https://www.mostlymostly.uk/post/2019.02.01/
 
 
 Tristan
 
 
 
 
 ___
 Amforth-devel mailing list for http://amforth.sf.net/
 Amforth-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/amforth-devel
>>> 
>>> 
>>> 
>>> ___
>>> Amforth-devel mailing list for http://amforth.sf.net/
>>> Amforth-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/amforth-devel
>>> 
>> 
>> 
>> ___
>> Amforth-devel mailing list for http://amforth.sf.net/
>> Amforth-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> 
> 
> ___
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel
 
 
 ___
 Amforth-devel mailing list for http://amforth.sf.net/
 Amforth-

Re: [Amforth] Soft Serial Port

2019-02-16 Thread Tristan Williams
Jan,

My prebuilt hex files for the ARDUINO MEGA 2560 are linked below

https://www.mostlymostly.uk/post/2019.02.16/

Hope this helps and interested to hear how you get on.

Best wishes,
Tristan



On 15Feb19 16:47, Jan Kromhout via Amforth-devel wrote:
> Tristan,
> 
> First thanks for the quick response.
> Yes I found out the hex file wasn’t working after flashing to the Mega.
> My flasher is from Pololu and is working great on my macbook pro and avrdude.
> 
> Is there an possibility to get the hex files from you? 
> I’m not a star in compiling this kind of things without a good portion of 
> help.
> 
> My email is krom1109 at hotmail dot com
> 
> With kindly regards,
> 
> Jan
> 
> 
> 
> > Op 15 feb. 2019, om 16:38 heeft Tristan Williams  het 
> > volgende geschreven:
> > 
> > Jan,
> > 
> > A number of things.
> > 
> > The hex file you have found may not be one for the Arduino
> > Mega2560. If I remember correctly, the distribution has an appl folder
> > for the atmega2561 and the configuration assembler file
> > 
> > https://sourceforge.net/p/amforth/code/HEAD/tree/trunk/appl/atmega2561/atmega256.asm
> > 
> > suggests that it was built for an ATmega2561 with an 14.745600MHz crystal 
> > and uart1
> > hosting the AmForth interpreter.
> > 
> > I adjusted the AmForth make system (on OSX) to build a custom hex file
> > for the Arduino Mega2560 which uses ATmega2560 chip and a 16MHz
> > crystal. I also put the AmForth interpreter on uart0. The AmForth
> > build system is one of its many strengths, though getting it to work
> > on OS X does require a few extra steps.
> > 
> > I used these fuse values for my Arduino Mega2560
> > 
> >> avrdude: safemode: Fuses OK (E:FF, H:99, L:CE)
> > 
> > Finally, what hex programmer you use may be important with the Mega2560. I
> > used an avrisp2 compatible programmer and had no problems. However, I can
> > confirm that my usbtiny programmer couldn't program my Mega2560 
> > successfully.
> > 
> > Best wishes,
> > Tristan
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On 15Feb19 14:20, Jan Kromhout wrote:
> >> Tristan,
> >> 
> >> Found the hex files for the Mega, but don’t found the fuse values.
> >> Please can you help me out with these.
> >> 
> >> Cheers,
> >> 
> >> Jan
> >> 
> >> 
> >> 
> >>> Op 15 feb. 2019, om 13:21 heeft Jan Kromhout  het 
> >>> volgende geschreven:
> >>> 
> >>> Tristan,
> >>> 
> >>> Thank. Where to find the hex files for the mega, and what fuse settings 
> >>> you have used.
> >>> I wont to play with it this evening. Verry exciting how it works.
> >>> Cheers,
> >>> 
> >>> Jan
> >>> 
> >>> Verstuurd vanaf mijn iPad
> >>> 
>  Op 15 feb. 2019 om 12:45 heeft Tristan Williams  het 
>  volgende geschreven:
>  
>  Jan,
>  
>  There is a link "source" in the text, but below is the url from the
>  link. 
>  
>  https://www.mostlymostly.uk/files/source/uart1.forth
>  
>  Tristan
>  
>  
> > On 15Feb19 11:15, Jan Kromhout via Amforth-devel wrote:
> > Hi Tristan,
> > 
> > How can I acces the source, the link shows only an overview!
> > 
> > Cheers,
> > 
> > Jan
> > 
> > Verstuurd vanaf mijn iPad
> > 
> >> Op 15 feb. 2019 om 09:21 heeft Tristan Williams  het 
> >> volgende geschreven:
> >> 
> >> 
> >> 
> >> I've linked (below) some AmForth words I've written to help me use the
> >> second hardware serial port on an AVR atmega mcu, should there be one.
> >> 
> >> https://www.mostlymostly.uk/post/2019.02.01/
> >> 
> >> 
> >> Tristan
> >> 
> >> 
> >> 
> >> 
> >> ___
> >> Amforth-devel mailing list for http://amforth.sf.net/
> >> Amforth-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> > 
> > 
> > 
> > ___
> > Amforth-devel mailing list for http://amforth.sf.net/
> > Amforth-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/amforth-devel
> > 
>  
>  
>  ___
>  Amforth-devel mailing list for http://amforth.sf.net/
>  Amforth-devel@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/amforth-devel
> >>> 
> >>> 
> >>> ___
> >>> Amforth-devel mailing list for http://amforth.sf.net/
> >>> Amforth-devel@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> >> 
> >> 
> >> ___
> >> Amforth-devel mailing list for http://amforth.sf.net/
> >> Amforth-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> > 
> > 
> > ___
> > Amforth-devel mailing list for http://amforth.sf.net/
> > Amforth-devel@lists.sourceforge.net
> > https://lists.s

Re: [Amforth] Soft Serial Port

2019-02-16 Thread Matthias Trute
Am Samstag, den 16.02.2019, 13:13 + schrieb Tristan Williams:
> Matthias,
> 
> Do you have any objection to me putting up a link to my prebuilt hex
> files for the ARDUINO MEGA 2560?

No.

Simon^wGPL says... ;)

Matthias



___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Soft Serial Port

2019-02-16 Thread Matthias Trute
Am Freitag, den 15.02.2019, 08:21 + schrieb Tristan Williams:
> 
> I've linked (below) some AmForth words I've written to help me use
> the
> second hardware serial port on an AVR atmega mcu, should there be
> one.

Really nice. Good work

Matthias



___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Soft Serial Port

2019-02-16 Thread Tristan Williams
Matthias,

Do you have any objection to me putting up a link to my prebuilt hex
files for the ARDUINO MEGA 2560?

Best wishes,
Tristan


On 15Feb19 16:47, Jan Kromhout via Amforth-devel wrote:
> Tristan,
> 
> First thanks for the quick response.
> Yes I found out the hex file wasn’t working after flashing to the Mega.
> My flasher is from Pololu and is working great on my macbook pro and avrdude.
> 
> Is there an possibility to get the hex files from you? 
> I’m not a star in compiling this kind of things without a good portion of 
> help.
> 
> My email is krom1109 at hotmail dot com
> 
> With kindly regards,
> 
> Jan
> 
> 
> 
> > Op 15 feb. 2019, om 16:38 heeft Tristan Williams  het 
> > volgende geschreven:
> > 
> > Jan,
> > 
> > A number of things.
> > 
> > The hex file you have found may not be one for the Arduino
> > Mega2560. If I remember correctly, the distribution has an appl folder
> > for the atmega2561 and the configuration assembler file
> > 
> > https://sourceforge.net/p/amforth/code/HEAD/tree/trunk/appl/atmega2561/atmega256.asm
> > 
> > suggests that it was built for an ATmega2561 with an 14.745600MHz crystal 
> > and uart1
> > hosting the AmForth interpreter.
> > 
> > I adjusted the AmForth make system (on OSX) to build a custom hex file
> > for the Arduino Mega2560 which uses ATmega2560 chip and a 16MHz
> > crystal. I also put the AmForth interpreter on uart0. The AmForth
> > build system is one of its many strengths, though getting it to work
> > on OS X does require a few extra steps.
> > 
> > I used these fuse values for my Arduino Mega2560
> > 
> >> avrdude: safemode: Fuses OK (E:FF, H:99, L:CE)
> > 
> > Finally, what hex programmer you use may be important with the Mega2560. I
> > used an avrisp2 compatible programmer and had no problems. However, I can
> > confirm that my usbtiny programmer couldn't program my Mega2560 
> > successfully.
> > 
> > Best wishes,
> > Tristan
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On 15Feb19 14:20, Jan Kromhout wrote:
> >> Tristan,
> >> 
> >> Found the hex files for the Mega, but don’t found the fuse values.
> >> Please can you help me out with these.
> >> 
> >> Cheers,
> >> 
> >> Jan
> >> 
> >> 
> >> 
> >>> Op 15 feb. 2019, om 13:21 heeft Jan Kromhout  het 
> >>> volgende geschreven:
> >>> 
> >>> Tristan,
> >>> 
> >>> Thank. Where to find the hex files for the mega, and what fuse settings 
> >>> you have used.
> >>> I wont to play with it this evening. Verry exciting how it works.
> >>> Cheers,
> >>> 
> >>> Jan
> >>> 
> >>> Verstuurd vanaf mijn iPad
> >>> 
>  Op 15 feb. 2019 om 12:45 heeft Tristan Williams  het 
>  volgende geschreven:
>  
>  Jan,
>  
>  There is a link "source" in the text, but below is the url from the
>  link. 
>  
>  https://www.mostlymostly.uk/files/source/uart1.forth
>  
>  Tristan
>  
>  
> > On 15Feb19 11:15, Jan Kromhout via Amforth-devel wrote:
> > Hi Tristan,
> > 
> > How can I acces the source, the link shows only an overview!
> > 
> > Cheers,
> > 
> > Jan
> > 
> > Verstuurd vanaf mijn iPad
> > 
> >> Op 15 feb. 2019 om 09:21 heeft Tristan Williams  het 
> >> volgende geschreven:
> >> 
> >> 
> >> 
> >> I've linked (below) some AmForth words I've written to help me use the
> >> second hardware serial port on an AVR atmega mcu, should there be one.
> >> 
> >> https://www.mostlymostly.uk/post/2019.02.01/
> >> 
> >> 
> >> Tristan
> >> 
> >> 
> >> 
> >> 
> >> ___
> >> Amforth-devel mailing list for http://amforth.sf.net/
> >> Amforth-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> > 
> > 
> > 
> > ___
> > Amforth-devel mailing list for http://amforth.sf.net/
> > Amforth-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/amforth-devel
> > 
>  
>  
>  ___
>  Amforth-devel mailing list for http://amforth.sf.net/
>  Amforth-devel@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/amforth-devel
> >>> 
> >>> 
> >>> ___
> >>> Amforth-devel mailing list for http://amforth.sf.net/
> >>> Amforth-devel@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> >> 
> >> 
> >> ___
> >> Amforth-devel mailing list for http://amforth.sf.net/
> >> Amforth-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> > 
> > 
> > ___
> > Amforth-devel mailing list for http://amforth.sf.net/
> > Amforth-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/amforth-devel
> 
> 
> 
> __

Re: [Amforth] Soft Serial Port

2019-02-15 Thread Jan Kromhout via Amforth-devel
Tristan,

First thanks for the quick response.
Yes I found out the hex file wasn’t working after flashing to the Mega.
My flasher is from Pololu and is working great on my macbook pro and avrdude.

Is there an possibility to get the hex files from you? 
I’m not a star in compiling this kind of things without a good portion of help.

My email is krom1109 at hotmail dot com

With kindly regards,

Jan



> Op 15 feb. 2019, om 16:38 heeft Tristan Williams  het 
> volgende geschreven:
> 
> Jan,
> 
> A number of things.
> 
> The hex file you have found may not be one for the Arduino
> Mega2560. If I remember correctly, the distribution has an appl folder
> for the atmega2561 and the configuration assembler file
> 
> https://sourceforge.net/p/amforth/code/HEAD/tree/trunk/appl/atmega2561/atmega256.asm
> 
> suggests that it was built for an ATmega2561 with an 14.745600MHz crystal and 
> uart1
> hosting the AmForth interpreter.
> 
> I adjusted the AmForth make system (on OSX) to build a custom hex file
> for the Arduino Mega2560 which uses ATmega2560 chip and a 16MHz
> crystal. I also put the AmForth interpreter on uart0. The AmForth
> build system is one of its many strengths, though getting it to work
> on OS X does require a few extra steps.
> 
> I used these fuse values for my Arduino Mega2560
> 
>> avrdude: safemode: Fuses OK (E:FF, H:99, L:CE)
> 
> Finally, what hex programmer you use may be important with the Mega2560. I
> used an avrisp2 compatible programmer and had no problems. However, I can
> confirm that my usbtiny programmer couldn't program my Mega2560 successfully.
> 
> Best wishes,
> Tristan
> 
> 
> 
> 
> 
> 
> 
> 
> On 15Feb19 14:20, Jan Kromhout wrote:
>> Tristan,
>> 
>> Found the hex files for the Mega, but don’t found the fuse values.
>> Please can you help me out with these.
>> 
>> Cheers,
>> 
>> Jan
>> 
>> 
>> 
>>> Op 15 feb. 2019, om 13:21 heeft Jan Kromhout  het 
>>> volgende geschreven:
>>> 
>>> Tristan,
>>> 
>>> Thank. Where to find the hex files for the mega, and what fuse settings you 
>>> have used.
>>> I wont to play with it this evening. Verry exciting how it works.
>>> Cheers,
>>> 
>>> Jan
>>> 
>>> Verstuurd vanaf mijn iPad
>>> 
 Op 15 feb. 2019 om 12:45 heeft Tristan Williams  het 
 volgende geschreven:
 
 Jan,
 
 There is a link "source" in the text, but below is the url from the
 link. 
 
 https://www.mostlymostly.uk/files/source/uart1.forth
 
 Tristan
 
 
> On 15Feb19 11:15, Jan Kromhout via Amforth-devel wrote:
> Hi Tristan,
> 
> How can I acces the source, the link shows only an overview!
> 
> Cheers,
> 
> Jan
> 
> Verstuurd vanaf mijn iPad
> 
>> Op 15 feb. 2019 om 09:21 heeft Tristan Williams  het 
>> volgende geschreven:
>> 
>> 
>> 
>> I've linked (below) some AmForth words I've written to help me use the
>> second hardware serial port on an AVR atmega mcu, should there be one.
>> 
>> https://www.mostlymostly.uk/post/2019.02.01/
>> 
>> 
>> Tristan
>> 
>> 
>> 
>> 
>> ___
>> Amforth-devel mailing list for http://amforth.sf.net/
>> Amforth-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> 
> 
> 
> ___
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> 
 
 
 ___
 Amforth-devel mailing list for http://amforth.sf.net/
 Amforth-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/amforth-devel
>>> 
>>> 
>>> ___
>>> Amforth-devel mailing list for http://amforth.sf.net/
>>> Amforth-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/amforth-devel
>> 
>> 
>> ___
>> Amforth-devel mailing list for http://amforth.sf.net/
>> Amforth-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> 
> 
> ___
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel



___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Soft Serial Port

2019-02-15 Thread Tristan Williams
Jan,

A number of things.

The hex file you have found may not be one for the Arduino
Mega2560. If I remember correctly, the distribution has an appl folder
for the atmega2561 and the configuration assembler file

https://sourceforge.net/p/amforth/code/HEAD/tree/trunk/appl/atmega2561/atmega256.asm

suggests that it was built for an ATmega2561 with an 14.745600MHz crystal and 
uart1
hosting the AmForth interpreter.

I adjusted the AmForth make system (on OSX) to build a custom hex file
for the Arduino Mega2560 which uses ATmega2560 chip and a 16MHz
crystal. I also put the AmForth interpreter on uart0. The AmForth
build system is one of its many strengths, though getting it to work
on OS X does require a few extra steps.

I used these fuse values for my Arduino Mega2560

> avrdude: safemode: Fuses OK (E:FF, H:99, L:CE)

Finally, what hex programmer you use may be important with the Mega2560. I
used an avrisp2 compatible programmer and had no problems. However, I can
confirm that my usbtiny programmer couldn't program my Mega2560 successfully.

Best wishes,
Tristan








On 15Feb19 14:20, Jan Kromhout wrote:
> Tristan,
> 
> Found the hex files for the Mega, but don’t found the fuse values.
> Please can you help me out with these.
> 
> Cheers,
> 
> Jan
> 
> 
> 
> > Op 15 feb. 2019, om 13:21 heeft Jan Kromhout  het 
> > volgende geschreven:
> > 
> > Tristan,
> > 
> > Thank. Where to find the hex files for the mega, and what fuse settings you 
> > have used.
> > I wont to play with it this evening. Verry exciting how it works.
> > Cheers,
> > 
> > Jan
> > 
> > Verstuurd vanaf mijn iPad
> > 
> >> Op 15 feb. 2019 om 12:45 heeft Tristan Williams  het 
> >> volgende geschreven:
> >> 
> >> Jan,
> >> 
> >> There is a link "source" in the text, but below is the url from the
> >> link. 
> >> 
> >> https://www.mostlymostly.uk/files/source/uart1.forth
> >> 
> >> Tristan
> >> 
> >> 
> >>> On 15Feb19 11:15, Jan Kromhout via Amforth-devel wrote:
> >>> Hi Tristan,
> >>> 
> >>> How can I acces the source, the link shows only an overview!
> >>> 
> >>> Cheers,
> >>> 
> >>> Jan
> >>> 
> >>> Verstuurd vanaf mijn iPad
> >>> 
>  Op 15 feb. 2019 om 09:21 heeft Tristan Williams  het 
>  volgende geschreven:
>  
>  
>  
>  I've linked (below) some AmForth words I've written to help me use the
>  second hardware serial port on an AVR atmega mcu, should there be one.
>  
>  https://www.mostlymostly.uk/post/2019.02.01/
>  
>  
>  Tristan
>  
>  
>  
>  
>  ___
>  Amforth-devel mailing list for http://amforth.sf.net/
>  Amforth-devel@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/amforth-devel
> >>> 
> >>> 
> >>> 
> >>> ___
> >>> Amforth-devel mailing list for http://amforth.sf.net/
> >>> Amforth-devel@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> >>> 
> >> 
> >> 
> >> ___
> >> Amforth-devel mailing list for http://amforth.sf.net/
> >> Amforth-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> > 
> > 
> > ___
> > Amforth-devel mailing list for http://amforth.sf.net/
> > Amforth-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/amforth-devel
> 
> 
> ___
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel


___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Soft Serial Port

2019-02-15 Thread Jan Kromhout
Tristan,

Found the hex files for the Mega, but don’t found the fuse values.
Please can you help me out with these.

Cheers,

Jan



> Op 15 feb. 2019, om 13:21 heeft Jan Kromhout  het 
> volgende geschreven:
> 
> Tristan,
> 
> Thank. Where to find the hex files for the mega, and what fuse settings you 
> have used.
> I wont to play with it this evening. Verry exciting how it works.
> Cheers,
> 
> Jan
> 
> Verstuurd vanaf mijn iPad
> 
>> Op 15 feb. 2019 om 12:45 heeft Tristan Williams  het 
>> volgende geschreven:
>> 
>> Jan,
>> 
>> There is a link "source" in the text, but below is the url from the
>> link. 
>> 
>> https://www.mostlymostly.uk/files/source/uart1.forth
>> 
>> Tristan
>> 
>> 
>>> On 15Feb19 11:15, Jan Kromhout via Amforth-devel wrote:
>>> Hi Tristan,
>>> 
>>> How can I acces the source, the link shows only an overview!
>>> 
>>> Cheers,
>>> 
>>> Jan
>>> 
>>> Verstuurd vanaf mijn iPad
>>> 
 Op 15 feb. 2019 om 09:21 heeft Tristan Williams  het 
 volgende geschreven:
 
 
 
 I've linked (below) some AmForth words I've written to help me use the
 second hardware serial port on an AVR atmega mcu, should there be one.
 
 https://www.mostlymostly.uk/post/2019.02.01/
 
 
 Tristan
 
 
 
 
 ___
 Amforth-devel mailing list for http://amforth.sf.net/
 Amforth-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/amforth-devel
>>> 
>>> 
>>> 
>>> ___
>>> Amforth-devel mailing list for http://amforth.sf.net/
>>> Amforth-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/amforth-devel
>>> 
>> 
>> 
>> ___
>> Amforth-devel mailing list for http://amforth.sf.net/
>> Amforth-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> 
> 
> ___
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel


___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Soft Serial Port

2019-02-15 Thread Jan Kromhout
Tristan,

Thank. Where to find the hex files for the mega, and what fuse settings you 
have used.
I wont to play with it this evening. Verry exciting how it works.
Cheers,

Jan

Verstuurd vanaf mijn iPad

> Op 15 feb. 2019 om 12:45 heeft Tristan Williams  het 
> volgende geschreven:
> 
> Jan,
> 
> There is a link "source" in the text, but below is the url from the
> link. 
> 
> https://www.mostlymostly.uk/files/source/uart1.forth
> 
> Tristan
> 
> 
>> On 15Feb19 11:15, Jan Kromhout via Amforth-devel wrote:
>> Hi Tristan,
>> 
>> How can I acces the source, the link shows only an overview!
>> 
>> Cheers,
>> 
>> Jan
>> 
>> Verstuurd vanaf mijn iPad
>> 
>>> Op 15 feb. 2019 om 09:21 heeft Tristan Williams  het 
>>> volgende geschreven:
>>> 
>>> 
>>> 
>>> I've linked (below) some AmForth words I've written to help me use the
>>> second hardware serial port on an AVR atmega mcu, should there be one.
>>> 
>>> https://www.mostlymostly.uk/post/2019.02.01/
>>> 
>>> 
>>> Tristan
>>> 
>>> 
>>> 
>>> 
>>> ___
>>> Amforth-devel mailing list for http://amforth.sf.net/
>>> Amforth-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/amforth-devel
>> 
>> 
>> 
>> ___
>> Amforth-devel mailing list for http://amforth.sf.net/
>> Amforth-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/amforth-devel
>> 
> 
> 
> ___
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel


___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Soft Serial Port

2019-02-15 Thread Tristan Williams
Jan,

There is a link "source" in the text, but below is the url from the
link. 

https://www.mostlymostly.uk/files/source/uart1.forth

Tristan


On 15Feb19 11:15, Jan Kromhout via Amforth-devel wrote:
> Hi Tristan,
> 
> How can I acces the source, the link shows only an overview!
> 
> Cheers,
> 
> Jan
> 
> Verstuurd vanaf mijn iPad
> 
> > Op 15 feb. 2019 om 09:21 heeft Tristan Williams  het 
> > volgende geschreven:
> > 
> > 
> > 
> > I've linked (below) some AmForth words I've written to help me use the
> > second hardware serial port on an AVR atmega mcu, should there be one.
> > 
> > https://www.mostlymostly.uk/post/2019.02.01/
> > 
> > 
> > Tristan
> > 
> > 
> > 
> > 
> > ___
> > Amforth-devel mailing list for http://amforth.sf.net/
> > Amforth-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/amforth-devel
> 
> 
> 
> ___
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> 


___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Soft Serial Port

2019-02-15 Thread Jan Kromhout via Amforth-devel
Hi Tristan,

How can I acces the source, the link shows only an overview!

Cheers,

Jan

Verstuurd vanaf mijn iPad

> Op 15 feb. 2019 om 09:21 heeft Tristan Williams  het 
> volgende geschreven:
> 
> 
> 
> I've linked (below) some AmForth words I've written to help me use the
> second hardware serial port on an AVR atmega mcu, should there be one.
> 
> https://www.mostlymostly.uk/post/2019.02.01/
> 
> 
> Tristan
> 
> 
> 
> 
> ___
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel



___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Soft Serial Port

2019-02-15 Thread Tristan Williams



I've linked (below) some AmForth words I've written to help me use the
second hardware serial port on an AVR atmega mcu, should there be one.

https://www.mostlymostly.uk/post/2019.02.01/


Tristan




___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Soft Serial Port

2019-01-27 Thread Tristan Williams
On 24Jan19 20:25, Erich Wälde wrote:

> atmega644p has 2 serial interfaces. It is the same package as
> the 328p. I have toyed around with two serial interfaces, but
> with not much success. That was a problem of how to utilize this
> second uart, more than anything else. I'm sure, it can work.

In an attempt to cross this off my would-like-todo list, I now have
AmForth 6.8[1] on an Arduino Mega 2560 with the interpreter hosted on
usart0 and second working usart, usart1 configured for 9600
8N1. Incoming and outgoing bytes are buffered, with those buffers
being serviced by the usart1 RX and UDRE interrupts.

I've been using multitask.frt to create background tasks to process the
buffered RX stream and then act on it in some way. For devices that
send small amounts of serial data, slowly, every so often, it might be
a usable approach.

Best wishes,
Tristan

[1] I think the prompt still says 6.7 (via env-forthversion.asm).  



___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Soft Serial Port

2019-01-24 Thread Erich Wälde
Hello,


Peter C. Hauser writes:
> If you want hardware serial you cannot really use the Arduino
> Uno as the ATmega328 microcontroller only has one UART, which
> is used by Forth for its communication.

atmega644p has 2 serial interfaces. It is the same package as
the 328p. I have toyed around with two serial interfaces, but
with not much success. That was a problem of how to utilize this
second uart, more than anything else. I'm sure, it can work.

Cheers,
Erich


___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Soft Serial Port

2019-01-24 Thread Peter C. Hauser
Jan and Tristan,

If you want hardware serial you cannot really use the Arduino Uno as the 
ATmega328 microcontroller only has one UART, which is used by Forth for its 
communication. 

The ATmega2560 on the current Arduino Mega board has 2 spare UARTs. However, 
one might have to first build the Forth kernel for it. The AmForth package 
comes with a hex file for the old Arduino Mega board (fitted with a ATmega1280) 
and that might not be fully compatible with the ATmega2560...

With regards

Peter


> On 24 Jan 2019, at 18:10, Tristan Williams  wrote:
> 
> Hi Jan,
> 
> Not as far as I know. However, the mailing list archive
> 
> https://sourceforge.net/p/amforth/mailman/amforth-devel/
> 
> is worth searching (bitbang) and there are some messages relating to
> your particular question. It would certainly be a nice feature to
> have, perhaps along with being able to access a second hardware uart
> from within AmForth. The latter has been on my would-like-todo list
> for a while. If anyone has achieved this I would be grateful for any
> pointers. 
> 
> Kind regards,
> 
> Tristan
> 
> On 24Jan19 13:45, Jan Kromhout via Amforth-devel wrote:
>> Hello,
>> 
>> Is soft-serial implemented in amForth.
>> I wont to connect a serial device to the arduino.
>> 
>> Cheers,
>> 
>> Jan
>> 
>> 
>> 
>> ___
>> Amforth-devel mailing list for http://amforth.sf.net/
>> Amforth-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/amforth-devel
>> 
> 
> 
> ___
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel



___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Soft Serial Port

2019-01-24 Thread Tristan Williams
Hi Jan,

Not as far as I know. However, the mailing list archive

https://sourceforge.net/p/amforth/mailman/amforth-devel/

is worth searching (bitbang) and there are some messages relating to
your particular question. It would certainly be a nice feature to
have, perhaps along with being able to access a second hardware uart
from within AmForth. The latter has been on my would-like-todo list
for a while. If anyone has achieved this I would be grateful for any
pointers. 

Kind regards,

Tristan

On 24Jan19 13:45, Jan Kromhout via Amforth-devel wrote:
> Hello,
> 
> Is soft-serial implemented in amForth.
> I wont to connect a serial device to the arduino.
> 
> Cheers,
> 
> Jan
> 
> 
> 
> ___
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> 


___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


[Amforth] Soft Serial Port

2019-01-24 Thread Jan Kromhout via Amforth-devel
Hello,

Is soft-serial implemented in amForth.
I wont to connect a serial device to the arduino.

Cheers,

Jan



___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel