Go to advanced search

by gertk
Sun Nov 25, 2018 3:15 pm
Forum: Networking and servers
Topic: Mystic BBS on Pi 1 100% CPU load
Replies: 4
Views: 632

Re: Mystic BBS on Pi 1 100% CPU load

Well... I found my mistake :-)

I started the mystic BBS server on boot in server mode (on a headless system) while I should have started it in daemon mode.

That seems to have cured the problem, now it it is hardly registering in top ..

Thanks for the tips though.
by gertk
Sun Nov 25, 2018 2:06 pm
Forum: Networking and servers
Topic: Mystic BBS on Pi 1 100% CPU load
Replies: 4
Views: 632

Re: Mystic BBS on Pi 1 100% CPU load

Hi Andyroo, Alas, it is definitely 'mis' which is eating up all the CPU, Memory seems to be no problem: top - 14:04:29 up 16:10, 1 user, load average: 1.11, 1.16, 1.11 Tasks: 66 total, 2 running, 41 sleeping, 0 stopped, 0 zombie %Cpu(s): 1.3 us, 71.1 sy, 27.4 ni, 0.0 id, 0.0 wa, 0.0 hi, 0.3 si, 0.0 ...
by gertk
Sun Nov 25, 2018 12:22 pm
Forum: Networking and servers
Topic: Mystic BBS on Pi 1 100% CPU load
Replies: 4
Views: 632

Mystic BBS on Pi 1 100% CPU load

Hi, Fiddling with Mystic BBS on the Pi (1) to serve some old computers the good old BBS feeling. I enabled telnet access and added 4 (USB) serial ports which also spawn a (local) telnet session when a return is received on the serial input. Alas the Pi seems 100% occupied even when Mystic BBS is idl...
by gertk
Wed Sep 16, 2015 3:40 pm
Forum: RISCOS
Topic: RiscOS Pico BBC Basic
Replies: 9
Views: 9902

Re: RiscOS Pico BBC Basic

Thanks for the tips. I like the idea of a 'bare metal' BBC Basic computer so I started with the RISC OS Pico variety. The system boots into basic in under 4 seconds so that is about as fast as the late C64 :D I have put the Pi A+ inside the case of a Commodore C16 of which the TED and CPU were defun...
by gertk
Mon Sep 14, 2015 6:26 pm
Forum: RISCOS
Topic: RiscOS Pico BBC Basic
Replies: 9
Views: 9902

RiscOS Pico BBC Basic

Hi all, Installed a Pi A+ in a defunct home computer with RiscOS pico booting straight into BBC Basic ARM. Had to tweak the CONFIG.TXT a bit to get CVBS(video) output going but it works! Now I would like to add the original keyboard (a 8x8 matrix) through the GPIO pins of the Pi, any hints or pointe...
by gertk
Wed Jun 12, 2013 4:40 pm
Forum: Bare metal, Assembly language
Topic: GPIO FIQ interrupts possible?
Replies: 16
Views: 5418

Re: GPIO FIQ interrupts possible?

Biggest problem I have now is that I want to read a 16 bit address bus, an 8 bit data bus and the control signals (phase 2 clock) and R/W all through the few IO pins available. Effectively the Pi will be interrupted each phase 2 clock signal... I have found some DIP packaged bus buffers (74AHC244) w...
by gertk
Sun Jun 09, 2013 11:11 am
Forum: Bare metal, Assembly language
Topic: GPIO FIQ interrupts possible?
Replies: 16
Views: 5418

Re: GPIO FIQ interrupts possible?

Finally I can confirm, GPIO can throwr FIQ but ... The **** architecture, GPU over CPU is not suitable to handle interrupts at that rate. It is possible to handle interrupts at rate ca 3,5 MHz, but ... its not reliable. Too many dropped interrupts - too many dropped data. I am contemplating a simil...
by gertk
Sat Jun 08, 2013 12:06 pm
Forum: Bare metal, Assembly language
Topic: Interrupt latency
Replies: 6
Views: 3745

Re: Interrupt latency

Thanks for all the useful tips.
I will try and setup something to try them out.

First I need to sort out the (bidirectional) level conversion.
I will start with a simple 8 bit bus and see if I can manage to emulate a single IO port or something like 256 bytes of ram.
by gertk
Fri Jun 07, 2013 8:53 pm
Forum: Bare metal, Assembly language
Topic: Interrupt latency
Replies: 6
Views: 3745

Re: Interrupt latency

I assume that you will of course use the FIQ, and limit your code to use R8-R12 + SP + LR? I'm pretty sure the full IRQ resolver will take longer time than you have. Yes, I meant FIQ not FIR :oops: The interrupt itself would normally occur from one clock cycle to the next (though you have to add an...
by gertk
Fri Jun 07, 2013 10:00 am
Forum: Bare metal, Assembly language
Topic: Interrupt latency
Replies: 6
Views: 3745

Interrupt latency

Been searching through the forums but could not find the answer.. In Bare Metal assembler how much time would pass between a GPIO edge triggered interrupt (FIR?) and the interrupt handler starting ? What I want to do is emulate a peripheral and/or memory to a 1 MHz 6502 I have done a similar thing w...
by gertk
Wed Nov 28, 2012 6:50 am
Forum: Bare metal, Assembly language
Topic: Understanding the system timer
Replies: 9
Views: 4947

Re: Understanding the system timer

Any ideas what the GPU is using the timer for ? (video timing ?)
by gertk
Sat Nov 24, 2012 12:51 pm
Forum: Bare metal, Assembly language
Topic: CSUD - Chadderz's Simple USB Driver (Source)
Replies: 56
Views: 17105

Re: CSUD - Chadderz's Simple USB Driver (Source)

Not all is well yet... Every time I change something in my source it is hit and miss if the USB lib will start correctly, I also experience memory corruptions. With LOWLEVEL and STANDALONE mode it uses its own memory management with a static heap. When the startup fails claiming: Out of Memory We sh...
by gertk
Fri Nov 23, 2012 10:28 am
Forum: Bare metal, Assembly language
Topic: CSUD - Chadderz's Simple USB Driver (Source)
Replies: 56
Views: 17105

Re: CSUD - Chadderz's Simple USB Driver (Source)

Yes, but at least I have a fresh new toolchain now ;)
(when watching this toolchain compile I am still amazed how much stuff is going through there..)
by gertk
Thu Nov 22, 2012 10:43 pm
Forum: Bare metal, Assembly language
Topic: CSUD - Chadderz's Simple USB Driver (Source)
Replies: 56
Views: 17105

Re: CSUD - Chadderz's Simple USB Driver (Source)

update: :)

compiled as 'STANDALONE' it starts and I have a USB keyboard... Yay!
by gertk
Thu Nov 22, 2012 10:34 pm
Forum: Bare metal, Assembly language
Topic: CSUD - Chadderz's Simple USB Driver (Source)
Replies: 56
Views: 17105

Re: CSUD - Chadderz's Simple USB Driver (Source)

I ditched the old compiler toolchain I used and git-cloned the latest. Now it compiles correctly but..... In file included from include/hcd/hcd.h:67:0, from source/usbd/usbd.c:12: include/hcd/dwc/designware20.h:296:2: note: offset of packed bit-field 'TransmitFifoFlushNumber' has changed in GCC 4.4 ...
by gertk
Thu Nov 22, 2012 9:21 pm
Forum: Bare metal, Assembly language
Topic: CSUD - Chadderz's Simple USB Driver (Source)
Replies: 56
Views: 17105

Re: CSUD - Chadderz's Simple USB Driver (Source)

This seems to be the problemzone, one way or another it expands this to 1 byte too many.. volatile struct CoreReset { volatile bool CoreSoft : 1; // @0 volatile bool HclkSoft : 1; // @1 volatile bool HostFrameCounter : 1; // @2 volatile bool InTokenQueueFlush : 1; // @3 volatile bool ReceiveFifoFlus...
by gertk
Thu Nov 22, 2012 6:41 am
Forum: Bare metal, Assembly language
Topic: CSUD - Chadderz's Simple USB Driver (Source)
Replies: 56
Views: 17105

Re: CSUD - Chadderz's Simple USB Driver (Source)

Yes I understand that, already tried the chopping method. But if I remove some part of the struct which is later referenced, the library will not compile. Other than compiling and running the created library on the Pi I see no way to determine the size of the struct. Also tried to LOGF the size of s...
by gertk
Wed Nov 21, 2012 10:30 pm
Forum: Bare metal, Assembly language
Topic: CSUD - Chadderz's Simple USB Driver (Source)
Replies: 56
Views: 17105

Re: CSUD - Chadderz's Simple USB Driver (Source)

Tried shorting the reserved140_400 area by 1 byte and then it gives me an out of memory error (heap), then tried shortening the reserved58_80 area by one byte and it gave me: CSUD: USB driver version 0.1 CSUD: HID driver version 0.1 CSUD: Hub driver version 0.1 CSUD: Keyboard driver version 0.1 CSUD...
by gertk
Wed Nov 21, 2012 8:35 pm
Forum: Bare metal, Assembly language
Topic: CSUD - Chadderz's Simple USB Driver (Source)
Replies: 56
Views: 17105

Re: CSUD - Chadderz's Simple USB Driver (Source)

:D Totally overlooked the missing argument...
by gertk
Wed Nov 21, 2012 8:15 pm
Forum: Bare metal, Assembly language
Topic: CSUD - Chadderz's Simple USB Driver (Source)
Replies: 56
Views: 17105

Re: CSUD - Chadderz's Simple USB Driver (Source)

Hmm.. totally stumped.. Is the compiler messing up or what... :? I added a completely similar structure definition in designware20.h: extern volatile struct PowerReg { volatile bool StopPClock : 1; // @0 volatile bool GateHClock : 1; // @1 volatile bool PowerClamp : 1; // @2 volatile bool PowerDownM...
by gertk
Tue Nov 20, 2012 10:32 pm
Forum: Bare metal, Assembly language
Topic: CSUD - Chadderz's Simple USB Driver (Source)
Replies: 56
Views: 17105

Re: CSUD - Chadderz's Simple USB Driver (Source)

You use type 'bool' in types.h but when I use in my code a type 'bool' I get a compiler error that 'bool' is undeclared, could this be the culprit ?
by gertk
Tue Nov 20, 2012 10:09 pm
Forum: Bare metal, Assembly language
Topic: CSUD - Chadderz's Simple USB Driver (Source)
Replies: 56
Views: 17105

Re: CSUD - Chadderz's Simple USB Driver (Source)

Hmm, no Windows here except for the window panes here :)

But will investigate further..
by gertk
Tue Nov 20, 2012 9:50 pm
Forum: Bare metal, Assembly language
Topic: CSUD - Chadderz's Simple USB Driver (Source)
Replies: 56
Views: 17105

Re: CSUD - Chadderz's Simple USB Driver (Source)

I am trying to compile libcsud but after compiling and using it in my 'Bare Metal' code I get this (in DEBUG mode) HCD: Incorrectly compiled driver. HostGlobalRegs: 0x400 (0x400), CoreGlobalRegs: 0x401 (0x400), PowerReg: 0x7ffff14 (0x4). USBD: Abort, HCD failed to initialise. using arm-none-eabi-gcc...
by gertk
Sun Nov 18, 2012 9:05 pm
Forum: Bare metal, Assembly language
Topic: Bare Metal ZX81 emulator
Replies: 30
Views: 8935

Re: Bare Metal ZX81 emulator

Got a link from Alex to the source of libcsud so I can investigate.
by gertk
Sun Nov 18, 2012 8:47 pm
Forum: Bare metal, Assembly language
Topic: Bare Metal ZX81 emulator
Replies: 30
Views: 8935

Re: Bare Metal ZX81 emulator

Tried to link in the libcsud.a library to get USB keyboard input but it slows down the ZX81 keyboard/display routine too much. Alas I can not look under the hood to see which part of the library is slowing things down (Probably because it is polling and not interrupt driven). I did manage to get val...

Go to advanced search