Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Implement iobyte for TTY #194

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

TurBoss
Copy link

@TurBoss TurBoss commented May 10, 2024

Implement iobyte from moxhamj's issue #85 code

Ive been testing it on a teensy 4.1
going to give a try on a esp32

did a pull request allow easy test this to others and allow reviews

Thanks!

@MockbaTheBorg
Copy link
Owner

MockbaTheBorg commented May 10, 2024 via email

@TurBoss
Copy link
Author

TurBoss commented May 19, 2024

Hello!

Got the esp32s3 i have to work!

RunCPM Version 6.3 (CP/M 60K)

A0>kermit
Kermit-80 v4.11 configured for Generic CP/M-80 with Generic (Dumb) CRT Terminal type selected 

For help, type ? at any point in a command
Kermit-80   0A:>SET PORT TTY
Kermit-80   0A:>SET TERMINAL OFF
Kermit-80   0A:>c
[Connected to remote host.  Type Control-\C to return;
 type Control-\? for command list]
ATI

Zimodem ESP32 Firmware v4.0.1
sdk=v4.4.6-dirty chipid=0 cpu@240
tot=8192k heap=268k fsize=1287k
CONNECTED TO TP-LINK (192.168.10.136)
READY.
OK

But i have to manually assign the pins to each serial port in the INO file like this

...

const int TTY1SerialTX = 15;
const int TTY1SerialRX = 16;

const int TTY2SerialTX = 17;
const int TTY2SerialRX = 18;

void setup(void) {
  pinMode(LED, OUTPUT);
  digitalWrite(LED, LOW);
  Serial.begin(SERIALSPD);
  Serial1.begin(SERIALSPD, SERIAL_8N1, TTY1SerialRX, TTY1SerialTX);
  Serial2.begin(SERIALSPD, SERIAL_8N1, TTY2SerialRX, TTY2SerialTX);

...

I have also added a hardware file for my esp32 board

I'm also trying to figure why the boot message goes over the Serial1

Thanks :)

@MockbaTheBorg
Copy link
Owner

MockbaTheBorg commented May 20, 2024 via email

@TurBoss
Copy link
Author

TurBoss commented Jun 4, 2024

hello, sorry for the delay

I was curious if platformio could be an opition to have many platforms

[platformio]

;default_envs = teensy41
default_envs = esp32s3
;default_envs = linux

[env]
framework = arduino

[env:teensy41]
platform = teensy
board = teensy41
board_build.mcu = imxrt1062
board_build.f_cpu = 600000000L
monitor_speed = 115200
monitor_dtr = 0
monitor_rts = 0
upload_protocol = teensy-cli
lib_deps =
	greiman/SdFat@=2.2.3
	
build_flags =
    -DCORE_TEENSY
	-DDISABLE_FS_H_WARNING 
    -DTEENSY_OPT_FAST_LTO
    -DUSB_SERIAL
    -DSPI_DRIVER_SELECT=0
    -DSDFAT_FILE_TYPE=1


[env:esp32s3]
platform = espressif32
board = esp32-s3-devkitc-1
monitor_speed = 115200
board_build.flash_mode = dio
lib_deps =
	greiman/SdFat@=2.2.3
;build_flags = -DBOARD_HAS_PSRAM
;board_build.partitions = partitions.csv
;board_build.filesystem = spiffs
build_flags = 
	-DESP32
    -DUSB_SERIAL
	-DDISABLE_FS_H_WARNING 
	-DSPI_DRIVER_SELECT=0
	-DSDFAT_FILE_TYPE=1
    -DBOARD_HAS_PSRAM
    -mfix-esp32-psram-cache-issue

[env:windows]
platform = windows_x86

[env:linux]
platform = linux_x86_64

[env:linux_arm]
platform = linux_arm

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants