MitchBradley / cforth

Mitch Bradley's CForth implementation
Other
155 stars 41 forks source link

ESP8266 xmodem bug #40

Closed andrewtholt closed 5 years ago

andrewtholt commented 5 years ago

I am trying to transfer a small test file using xmodem from my Linux computer using minicom.

The file is simply

: hello ." Hello" cr ;

On the target I issue the command :

rf hello.fth

and wait a few seconds and:

ets Jan 8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 23992, room 16 tail 8 chksum 0xb5 load 0x3ffe8000, len 948, room 0 tail 4 chksum 0xb5 load 0x3ffe83b4, len 8, room 4 tail 4 chksum 0xc8 csum 0xc8

<0x8c><0xe2><0x02><0xec><0x12><0x82>n<0xec><0x92>r<0x82><0xf2>n|<0xec><0x0c>l<0x0c>lll`<0x02><0x8c><0xe2>r<0x92>l<0x8c>l<0x12><0xfc> CForth built 2019-08-12 08:45 from b89d301 Type a key within 2 seconds to interact ok I have tested my comms by sending a file to a board running cforth on an ESP32 and it works fine.
andrewtholt commented 5 years ago

I believe that I have fixed this.

Around line 34 is app.fth there is this line:

: timer@ 0 ;

I noticed in the compile the warning that timer@ was being redefined. So I commented this line out.

xmodem now transfers files.

Is it possible I have broken something else by doing this ?

Regards, Andrew

andrewtholt commented 5 years ago

Did a clean build from a fresh clone of the repo, and it works.