Search found 1533 matches

by Ultibo
Mon Nov 20, 2017 11:01 am
Forum: Discussion
Topic: Reading content from a HTTP Post
Replies: 2
Views: 22

Re: Reading content from a HTTP Post

The THTTPListener object generates an OnPost event but the aRequest.ReadContentString (s, 0) always returns false and the string is always empty. The Content-Length in the header is correct (sending 20 bytes) and the Content-Type is text/plain;charset=UTF-8 So it seems that sadly both THTTPListener...
by Ultibo
Mon Nov 20, 2017 10:52 am
Forum: Discussion
Topic: Threads and Processors
Replies: 115
Views: 4194

Re: Threads and Processors

I am trying to start 2 DedicatedCPUs on CPU_2 & CPU_3. ... Only when I get the error message Error, 1 threads remaining on CPU_ID_2 I have now tested running two dedicated CPUs threads (one on CPU2 and one on CPU3) and it all worked correctly in my tests. Since the example includes the WebStatu...
by Ultibo
Sun Nov 19, 2017 11:34 pm
Forum: Bug reports
Topic: ConsoleWindowClear ignoring BackColor
Replies: 1
Views: 29

Re: ConsoleWindowClear ignoring BackColor

Text is written using the specified colors, it's just the clear that does the wrong thing. It is simply failing to clear the screen due to an an incorrect check for COLOR_NONE in the FramebufferDeviceFillRect function (rather than clearing the screen to white). It only affects setting the color to ...
by Ultibo
Sat Nov 18, 2017 10:33 pm
Forum: General
Topic: Way to manually toggle CS in SPI code
Replies: 12
Views: 133

Re: Way to manually toggle CS in SPI code

So what is happening is that as soon as you use GPIOFunctionSelect(GPIO_PIN_8,GPIO_FUNCTION_OUT); the SPI unit no longer touches CS at all, regardless of the parameter passed in 'ChipSelect' Is this as expected? Yes, that is exactly what is expected. The hardware only allows one function at a time ...
by Ultibo
Wed Nov 15, 2017 9:35 am
Forum: General
Topic: HOWTO: Compile your program from the command line
Replies: 35
Views: 1844

Re: HOWTO: Compile your program from the command line

I noticed that lazarus project options has an RPIA (-Wp) option for target controller. Is that used any longer? Well yes, we still offer support for all models of the Pi including the original A and B. Granted you can't buy one anymore but you can buy an A+ from a few suppliers if you look around, ...
by Ultibo
Tue Nov 14, 2017 10:26 am
Forum: Discussion
Topic: USB Audio - SB X-Fi HD
Replies: 2
Views: 44

Re: USB Audio - SB X-Fi HD

Are there any blockers right now from implementing a driver for Ultibo, and is there a standard for writing an Audio driver for Ultibo similar in vein to ALSA? The current status of audio support in Ultibo is very much in the design phase, you might have noticed that a number of bare metal projects...
by Ultibo
Tue Nov 14, 2017 10:09 am
Forum: General
Topic: Way to manually toggle CS in SPI code
Replies: 12
Views: 133

Re: Way to manually toggle CS in SPI code

What I mean here is that this code while true do begin ; GPIOOutputSet(GPIO_PIN_8,GPIO_LEVEL_LOW); GPIOOutputSet(GPIO_PIN_8,GPIO_LEVEL_HIGH); end; ends up toggling GPIO8 at a 'mere' 2.5MHz, as opposed to a theoretical 266MHz (maybe less, I'm not familiar with the way the chip cycles instructions) T...
by Ultibo
Mon Nov 13, 2017 10:52 am
Forum: Discussion
Topic: SPI - mix DMA and non-DMA modes
Replies: 14
Views: 190

Re: SPI - mix DMA and non-DMA modes

Just a quick update, after some initial tests we found the following: 1. Your example works on a Pi 2 or Pi 3 2. It doesn't work on a Pi A/B/A+/B+/Zero By tweaking the timing on the A/B/Zero code I can make it work, so it appears there is some sort of timing dependency with the BCM2835 version. As y...
by Ultibo
Mon Nov 13, 2017 10:36 am
Forum: General
Topic: Is WriteData blocking?
Replies: 1
Views: 38

Re: Is WriteData blocking?

Is the procedure TWinsock2TCPServerThread.Server.WriteData blocking? i.e. Can I call WriteData then immediately close the socket knowing everything has been sent? No, all of the socket functionality in Ultibo is blocking but not in that sort of way. When the WriteData function returns successfully ...
by Ultibo
Mon Nov 13, 2017 10:19 am
Forum: General
Topic: Way to manually toggle CS in SPI code
Replies: 12
Views: 133

Re: Way to manually toggle CS in SPI code

Ultibo, or at least something is querying the ID chip, as I can see this with my logic analyzer. The Raspberry Pi firmware (ie the GPU code) reads the data from any attached HAT as per the HAT Specification . This is what I mean about it being a bit too Raspberry Pi specific, it is read by the firm...

Go to advanced search