nimblemachines / muforth

A simple, indirect-threaded Forth, written in C; for target compiling; runs on Linux, BSD, OSX, and Cygwin
https://muforth.dev/
Other
131 stars 30 forks source link

New HiFive chat flash process fails #40

Closed anarchitech closed 2 years ago

anarchitech commented 2 years ago
frisky@bits:~/muap/mu$ muforth -f target/RISC-V/board/hifive1.mu4 -f target/RISC-V/load-chat.mu4 
muforth/64 (f1cbc681) 2021-dec-08 06:46 (https://muforth.nimblemachines.com/)
Copyright (c) 2002-2021 David Frech (read the LICENSE for details)

Type 'settings' to see a few of muforth's tweakable behaviours.

(( SiFive Hifive1 board 
(( Chip equates for SiFive FE310-G000 
(( Target endianness ))
(( Meta-compiler (chains and token consumers) ))
(( RISC-V memory image ))
(( RISC-V RV32 assembler (I subset) ))
(( RISC-V RV32 assembler (C subset) ))
(( RISC-V RV32 disassembler (I subset) ))
(( RISC-V RV32 disassembler (C subset) ))
(( RISC-V meta-compiler (main) ; again.  ))
(( RISC-V interaction dumps again.  ))))
(( Serial expect/send ))
(( RISC-V serial chat protocol (host) ))))
(( RISC-V serial chat protocol (core) ))
(( RISC-V Forth kernel push1 again.  push2 again.  pop1 again.  pop2 again.  rpush1 again.  rpush2 again.  rpop1 again.  rpop2 again.  ))
(( HiFive1 SPI flash experiments ))
(( HiFive1 SPI flash support ))
chat 
Chat firmware version f1cbc681
      IX        SP        RP        IP
00000000  80003f0c  00000000  00000000*  Ok (chatting) (hex)
verify 
verify <key timed out

NB: Led flash sequence shows new code has been flashed ...

anarchitech commented 2 years ago

Some hifive boards appear to work after reflashing with new procedure, others don't, investigating.

anarchitech commented 2 years ago

I've determined that this is indeed a crostini problem, likely caused by the latest update to the cros dev channel that had other exciting breakage as well. For the time being, if you're using a chromebook use a chroot; termina /dev/ttyUSB0/1 connectivity is ... a bit of a mess.