setting up for windows users #27
Replies: 3 comments 1 reply
-
Maybe you could write this up as a pull request (PR) for the ehbasic repository so it will be included in the instructions on github. Help has been requested with writing documentation, although it is up to the maintainer what gets merged. If you are unfamiliar with the process of creating a PR for a github repository and don't want to learn git in the command line the process for creating a PR directly in the browser is documented in github's documentation. |
Beta Was this translation helpful? Give feedback.
-
Ok, I set my video to public so this is it, I build the kit and then go through all the steps to get the hello.c to compile in windows vscode. I have not setup the usb/ip part yet. |
Beta Was this translation helpful? Give feedback.
-
After a long fight with setting my programming environment for Picocomputer 6502 ... ! Please remember that I am not responsible for your actions and their effects based on the description below. target : IMHO don't loose Your time for virtual setups like VirtualBox Ubuntu/Debian/Windows or whatever Windows PowerShell
then connect Picocomputer 6502 and/or Raspberry Picoprobe(s) (USB) install usbipd-win from then
for 1st time as administrator ! /dev/ttyACM0 Picocomputer 6502 for minicom and VScode connections /dev/ttyACM1 picoprobe #1 RIA (in my case) /dev/ttyACM2 picoprobe #2 VGA (in my case) after that
! unfortunately You will have to do this every time before starting VSCode WSL2 Ubuntu1st/etc/wsl.conf
|
Beta Was this translation helpful? Give feedback.
-
I am new to the picocomputer and always work on windows so I have tried to write a getting started to allow the ehbasic to be compiled
`
install python by going to a command prompt and typing python
if it's not installed it will open the windows store and then install python 3.11
run python3.11 and check if pip is installed
python3.11 pip3 -v
if not you can download from the windows command promt
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
then install with
python3.11 get-pip.py
this will then let you install pyserial
python3.11 -m pip install pyserial
Download 64tass from
https://sourceforge.net/projects/tass64/files/latest/download
extract this folder and store on the project drive. I am using d:\64tass
download cc65 from
https://sourceforge.net/projects/cc65/files/cc65-snapshot-win32.zip
extract this to d:\cc65
these need to be added to the path in windows
open control panel, system , advanced system settings
click environmental variables.
select path and edit
select new and it should allow editing on a new line
type the location of 64tass so for me d:\64tass
select new and add d:\cc65
click ok and ok
close any command prompts so the new path is updated
New we can work to compile ehbasic and upload to the pico6502
Download the repository from
https://github.com/picocomputer/ehbasic
just like before I am going to make a project folder on my D drive with easy to find names
d:\pico6502
then extract the ehbasic inside this
so you should have the folder D:\pico6502\ehbasic-main
go to a command prompt and type
cd D:\pico6502\ehbasic-main
the github instructions say
See basic.py so not very helpful
I like to use notepad++ to edit files and we need to open basic.py to make some changes to the serial port commands because it’s setup for linux
Make sure the picocomputer is connected and you have a usb serial device and note the com port. In my case it was com3.
In basic.py it has two lines
177 and 209
Mon=Monitor(‘/dev/attyACM0’)
Change this to Mon=Monitor(‘com3’) or what ever your com port is.
Then at the very bottom is has the command to make the basic rom
print("Usage: python3 basic.py run|upload")
don’t just copy and paste this instead from your command prompt that should be in the D:\pico6502\ehbasic-main folder type
python3.11 basic.py upload
this should then compile the code and upload it to the connected picocomputer
`
Beta Was this translation helpful? Give feedback.
All reactions