Closed yunfan closed 7 years ago
Could you elaborate further, what kind of linux support do you mean? Currently you can run punyforth on linux, but there is no os integration (socket, file system, etc).
$ cd punyforth/arch/x86 $ ./build
Thils will compile, test, and start the REPL on linux.
no i mean build that firmware on linux and flashing them to my module using esptool
also when i compiled it on my cellphone(termux on android) it fails too, and mostly caused by assembly syntax
no i mean build that firmware on linux and flashing them to my module using esptool
Ok, there are no build instructions yet. But basically you'll need to clone and build this project first
https://github.com/SuperHouse/esp-open-rtos
This needs esp-open-sdk, just follow the instructions on the github page. After that copy punyforth into the example directory of esp-open-rtos and run make.
There will be detaild instructions about the build process at some time.
so your forth is an rtos app not barebone one?
Yes, this is a programming language, not an operating system.
i followed all the ins of esp-open-rtos
and then i got this after i enter the examples/punyforth
then type make
still got error
jyf@brix:~/repo/git/esp-open-rtos/examples/punyforth$ LC_ALL=c make
make: *** No targets specified and no makefile found. Stop.
The makefile is located at esp-open-rtos/examples/punyforth/arch/esp8266/rtos/user
Try to run make in this directory.
yes i have enter that directory and type make too still lack of a file named uber.forth
yes i have enter that directory and type make too still lack of a file named uber.forth
The uber.forth is generated by the modules.py python script. It is just a big (zero terminated) source file that contains all of the selected modules in the correct order. Use the modules.py to generate one then you'll be able to flash it with help of the flash script (it is in the same directory as the modules.py).
I added build instructions to the wiki
https://github.com/zeroflag/punyforth/wiki/Build-environment-setup
export PATH=$PATH:/esp/esp-open-sdk/xtensa-lx106-elf/bin
should be
export PATH=$PATH:~/esp/esp-open-sdk/xtensa-lx106-elf/bin
@yunfan thx, fixed
what is uber.forth it seems to be missing? is that just any forth program from the examples directory?
will you please add linux support?