You MUST be sure to choose EXACTLY "ESP32S3
Dev Module" in the Adruino IDE board /
port selection tool.
Other ESP32 modules will NOT compile and will result in GPIO errors.
There have been numerous complaints about running CPM3 on this board
with Z80 CPU's running at less than 10Mhz.
This is probably due to the drastic different in speeds between the Z80
CPU and the 240MHz ESP32 CPU.
Wayne
Warthen
has studied the software in detail and has essentially rewritten the
Arduino/ESP32 code to allow for a reliable software interface
between the two CPU's. Its some very nice elegant work and makes for
great program code reading. Thanks Wayne!
I have replaced the origional .ino file below with Waynes code. Please
use this code.
Please note there are only two libraries that need to be installed
in the Arduino IDE to use this board:-
- SSD1306Ascii by Bill Greiman
- SdFat - Adafruit Fork by Bill Greiman
Both libraries are available for selection from within the current
version of the Arduino IDE - there is no need to download or install
anything from the web .
Also prior to compiling the code, the user must make two edits
in the section within the code found below the heading "User
configuration settings"":-
1. Make either "#define BOARD_2SD" active and comment out
"#define BOARD_2CF1SD", or vice versa, depending on which board
the code is being compiled for
2. Change "#define WRITE_DELAY 1" to "define WRITE_DELAY 3" if
either board is to be used with a Z80 CPU with a clock speed of
8MHz or lower