Project

General

Profile

STM32F103 emulating a PDP-8

Added by JohnO 9 months ago

First STM compile for me so there may be other issues:

Johns-MacBook-Pro:1639-arm8 john$ make flash
GDB main.elf (flash)
Target voltage: unknown
Available Targets:
No. Att Driver
1 STM32F1 medium density
0x08000274 in ?? ()
Target voltage: unknown
Available Targets:
No. Att Driver
1 STM32F1 medium density
0x08000166 in opAddr (ir=ir@entry=0) at run.c:26
26 if (ir & 0400) {
Loading section .text, size 0xea84 lma 0x8000000
Loading section .ARM.exidx, size 0x8 lma 0x800ea84
Loading section .data, size 0x8ac lma 0x800ea8c
Start address 0x80008e8, load size 62264
Transfer rate: 13 KB/sec, 943 bytes/write.

I have two serial ports resulting from connection of the BMP:

cu.usbmodemDFE4A7D1
cu.usbmodemDFE4A7D3

The D1 device appears successful in flashing the STM but connecting to it at 115200 yields:

Terminal ready
$OK#9A$OK#9A

Which I suspect is BMP chatter, connecting to the D3 doesn't produce anything at all.

Ah, I think I may have reasoned it out, since my BMP hardware is based on a Chinese STLink which I don't think has the serial connected through from the D3 port.

More investigation required this end.


Replies (2)

RE: STM32F103 emulating a PDP-8 - Added by jcw 9 months ago

BMP on macOS: the xxx1 port is the GDB port, the xxx3 port is the pass-through serial port. Two different sets of pins on the BMP.

Once flashed, you could also hook up an FTDI to get serial access - or any other serial RX/TX hookup @ 115200 Baud.

RE: STM32F103 emulating a PDP-8 - Added by jcw 9 months ago

FYI - the focal.h file on GitHub was botched. I've just committed a fixed version.

    (1-2/2)