hoglet67 / PiTubeDirect

Bare-metal Raspberry Pi project that attaches to the Acorn TUBE interface and emulates many BBC Micro Co Processors
GNU General Public License v3.0
187 stars 23 forks source link

Debugging #165

Closed zolbatar closed 1 year ago

zolbatar commented 1 year ago

I'm working on my JIT code and getting odd behaviour writing to some registers. I'm presuming some error is being raised it freezes.

Is there a way to set the HDMI output to display the console (rather than PiVDU) so I can see errors without plugging anything else in?

hoglet67 commented 1 year ago

I'm working on my JIT code and getting odd behaviour writing to some registers. I'm presuming some error is being raised it freezes.

Which registers?

Is there a way to set the HDMI output to display the console (rather than PiVDU) so I can see errors without plugging anything else in?

Sorry, this is not currently possible. The only way to view the console is via the serial port.

What level shifter do you have?

The better ones include a 3-pin header for this purpose.

zolbatar commented 1 year ago

I'm not sure which one I have, I'll take a look later. It came all prebuilt anyway. I don't honestly remember seeing a pin header though.

I think the register is most irrelevant, as I think the problem is elsewhere but I just get a lockup so it's difficult to diagnose. The wonders of doing JIT/AOT stuff!