Skip to content

kianryan/RunCPM_RPi_Pico

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RunCPM_RPi_Pico

RunCPM for the Raspberry Pico

RunCPM_Pico_BootUpScreen

Is using much of the RunCPM-Code for a Arduino-DUE (also HostOS 0x01 from the .ino)

does need

  • SDCard interface with SPI
   SD card attached to SPI bus as follows:
   // Arduino-pico core
   MISO - Pin 21 - GPIO 16
   MOSI - Pin 25 - GPIO 19
   CS   - Pin 22 - GPIO 17
   SCK  - Pin 24 - GPIO 18

RunCPM for Pico can be compiled in the Arduino-IDE up to 250Mhz
With 275Mhz or 300Mhz RunCPM does not start up.

34.78% speedup when you compile with -O3 option (at 250Mhz)
around 6.4 times faster - 25.6Mhz - 
than a Z80 with 4Mhz (Philips P2500 Z80@4MHz) :

If you want to use the ESP8266SdFat of the RP2040 Arduino-Core

and not the (maybe) installed original SdFat-Library from Greiman:
Replace #include <SdFat.h> with include <ESP8266SdFat.h> in your .ino
and create the ESP8266SdFat.h in the following path

C:\Users\[yourUser]\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\2.5.2\libraries\ESP8266SdFat\src

with the content

#include "SdFat.h"

get rid / avoid the most compiler-warnings:

In

C:\Users\[user]\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\2.5.4\platform.txt

add in the top of the file where the compiler-warning-flags-lines are

compiler.cpp_warning_flags=-Wno-register -Werror=return-type

and change the compiler.cpp.flags line to
compiler.cpp.flags=-c {compiler.cpp_warning_flags} {compiler.defines} {compiler.flags} -MMD {compiler.includes} {build.flags.rtti} -std=gnu++17 -g -pipe


In
C:\Users\guido\Documents\Arduino\libraries\SdFat\src\SDFat.h
(to find the file replace guido with your username )
comment out the warning (because we use File32 instead)

RunCPM_Pico_has_filename

see also (in german):

https://forum.classic-computing.de/forum/index.php?thread/25805-runcpm-auf-dem-raspberry-pi-pico

RunCPM_Pico_FrontView

RunCPM_Pico_RearView

RunCPM_Pico_SDCardConnect

RunCPM_Pico_ResetButton

SD-Card-Init problem:

If you got problems with the init of the SD-Card
then you could try to add duplicate Power (3.3v green) and GND (blue) cables
or an additional cable connection to the GND near the SPI pins (black)

SDCard_init_problem

ATTENTION:

Please connect your SDCard Reader/Writer (if it has a 5v->3.3 StepDown-Converter) to 5V,
because the 3.3V (OUT) rail at Pin 38 may be insuffcient to deliver enough 3.3V for the Pico and the SDCard Read/Writer :(

RunCPM_Pico_SPI_SDCard

About

RunCPM for the Raspberry Pico

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • BASIC 100.0%