Go to advanced search

by theom
Tue Oct 14, 2014 10:05 pm
Forum: RISCOS
Topic: memory on riscos
Replies: 3
Views: 2033

Re: memory on riscos

If that's 'memory' in the smartphone sense (ie storage), find the USB drive on the iconbar, press the middle button over it, and click 'Free'. That should tell you how many GB you've used and how many are free.
by theom
Tue Oct 14, 2014 9:47 pm
Forum: Arch
Topic: raspberrypi.org image install instructions should be updated
Replies: 41
Views: 18817

Re: raspberrypi.org image install instructions should be upd

I had to do this recently at work (not for Arch or Pi, for something else). The issue is that ext2/3/4 filesystems cannot be properly built except using the Linux kernel to write them*. Writing them involves mounting them, and making something to mount requires the loopback device. So that means we ...
by theom
Mon Mar 10, 2014 6:10 pm
Forum: RISCOS
Topic: BBC BASIC sound programming / interfacing with SN76489?
Replies: 7
Views: 6018

Re: BBC BASIC sound programming / interfacing with SN76489?

If you want to emulate an SN76489 in all its gory details, ZeriBeep should do the trick.
(note that's in a PackDir archive - I think the read-only SparkFS on the Pi can open it)

It works natively in RISC OS, but I don't know if anyone has tested it on a Pi.
by theom
Mon Mar 10, 2014 6:07 pm
Forum: RISCOS
Topic: Why does RiscOS not work for me?
Replies: 13
Views: 5392

Re: Why does RiscOS not work for me?

I tried to update by using the RiscOS application manager. Is that not working? This is my fault. The RISC OS Open guys were under time pressure to get a new release out for the show last weekend, and the script that makes the packages failed. So the packages in the repository currently refer to an...
by theom
Wed May 08, 2013 11:10 pm
Forum: RISCOS
Topic: CUPS on RISC OS?
Replies: 6
Views: 2913

Re: CUPS on RISC?

CUPS doesn't run on RISC OS. While RISC OS can print to network printers, it's not really a server OS so isn't good at running this kind of sit-in-the-background service. There is a Samba server, but that's probably not going to help much. If not having CUPS is a showstopper, you could use 'brandy' ...
by theom
Tue Mar 19, 2013 11:41 pm
Forum: RISCOS
Topic: Interrupt servicing via BASIC ?
Replies: 21
Views: 5373

Re: Interrupt servicing via BASIC ?

The reason I omitted GCC from the PackMan distro is because on my extra-slow SD card installing it thrashed the SD for hours. I haven't had a chance to investigate why - it's worse than installing it with the Filer. Obviously it's small-file writes on the SD which are very slow, but something else i...
by theom
Tue Mar 19, 2013 1:31 pm
Forum: RISCOS
Topic: Interrupt servicing via BASIC ?
Replies: 21
Views: 5373

Re: Interrupt servicing via BASIC ?

There's no reason to drop to assembler for this. C will handle it just fine. And it's not that complex to write either. Historically, BASIC was people's primary 'scripting language' (if we can use the modern name), and C cost (lots of) money. BASIC comes with a builtin assembler, so if BASIC was ins...
by theom
Mon Mar 18, 2013 2:15 am
Forum: RISCOS
Topic: Interrupt servicing via BASIC ?
Replies: 21
Views: 5373

Re: Interrupt servicing via BASIC ?

I don't quite follow what you're trying to do but, yes, the devices are memory mapped. In supervisor mode or interrupt mode you can peek the relevant address to read state from them. (Except for devices that need more complex protocols - like things on the end of I2C buses). File IO is another of th...
by theom
Sun Mar 17, 2013 4:33 pm
Forum: RISCOS
Topic: Interrupt servicing via BASIC ?
Replies: 21
Views: 5373

Re: Interrupt servicing via BASIC ?

I omitted to mention something else... You don't have to write a relocatable module as such... you can write an interrupt handler in assembler and do the rest from BASIC. However it's a bit messy. To do this, claim a block of memory from the RMA (using OS_Module 6). Assemble your interrupt service r...
by theom
Sat Mar 16, 2013 9:41 pm
Forum: RISCOS
Topic: Wanted: Hardware guide for RISC OS
Replies: 2
Views: 1247

Re: Wanted: Hardware guide for RISC OS

Try here:
https://www.riscosopen.org/wiki/documen ... ity%20list
It says 'Cortex A8' but that's a more demanding criterion than Pi compatibility, so things on the list should also work on a Pi.

Feel free to add things to it (perhaps marked with Pi to be clear)
by theom
Sat Mar 16, 2013 9:35 pm
Forum: RISCOS
Topic: Interrupt servicing via BASIC ?
Replies: 21
Views: 5373

Re: Interrupt servicing via BASIC ?

So you want to use interrupts. Here's the top level overview. First, you need to be writing a relocatable module. The difficulty with code in application space (the area of memory that BASIC and normal compiled C programs run in, starting at &8000) is that applications are swapped in and out. So you...
by theom
Sat Dec 15, 2012 1:39 am
Forum: RISCOS
Topic: RISCOS (from a post on the Android forum)
Replies: 3
Views: 1832

Re: RISCOS (from a post on the Android forum)

Indeed, it's worth having the conversation about how to design something first, which is something many users can take part in, before someone dives in and starts making changes. RISC OS doesn't have the luxury that Linux does that people can write substantial bodies of code and the merge people can...
by theom
Wed Nov 28, 2012 9:36 pm
Forum: RISCOS
Topic: Oh boy... RISC OS on Pi!!!
Replies: 17
Views: 5193

Re: Oh boy... RISC OS on Pi!!!

RISC OS folks and Linux folks mean different things when they talk about 'ARMv7'. ARM assembler is ARM assembler. It should run on any machine from a 1987 ARM2 up to the latest. There are, of course, some caveats. RISC OS on older ARMs (up to StrongARM) used '26 bit addressing'. This doesn't work on...
by theom
Wed Nov 28, 2012 9:21 pm
Forum: RISCOS
Topic: RISC OS freezing after it gets to desktop
Replies: 19
Views: 6963

Re: RISC OS freezing after it gets to desktop

If it freezes, do you find the ethernet lights go off? This is a symptom of power problems, or USB trouble. Have you tried measuring the voltage between TP1 and TP2?
by theom
Wed Nov 28, 2012 9:19 pm
Forum: RISCOS
Topic: I2C Access
Replies: 79
Views: 16335

Re: I2C Access

It's not there because nobody has written a wiki page for it yet... and you get the usual wiki response if you try and view that noexistent page :-| I don't think there's been any decision on whether it's been deprecated. According to a recent post on the ROOL forum, there was a bug in IIC_Control w...
by theom
Wed Nov 28, 2012 9:14 pm
Forum: RISCOS
Topic: Task Alarms and the shift key
Replies: 1
Views: 1196

Re: Task Alarms and the shift key

Looks like a bug to me. I started a thread:
https://www.riscosopen.org/forum/forums/4/topics/1540
by theom
Tue Nov 27, 2012 12:40 am
Forum: RISCOS
Topic: RISCOS SD card compatibility list
Replies: 10
Views: 4470

Re: SD card compatibility list

If it works, *SDIODevices will tell you what it actually is, rather than what's printed on the outside.
by theom
Sun Nov 25, 2012 2:19 am
Forum: RISCOS
Topic: I2C Access
Replies: 79
Views: 16335

Re: I2C Access

You have several options: OS_IICOp = current, flexible, API for doing IIC IIC_Control = older, simpler, less flexible version of OS_IICOp GPIO_*I2C - GPIO using MCP23017 over I2C. GPIO_*I2C is a layer on top of IIC_Control/OS_IICOp, that issues the appropriate IIC commands for the MCP23017. If you h...
by theom
Sat Nov 24, 2012 5:59 pm
Forum: RISCOS
Topic: The Disc Drive is Empty
Replies: 13
Views: 3969

Re: The Disc Drive is Empty

I asked the author of the SD driver, and this is what he said: It's tricky to know what to suggest. FileCore does a lot more cross-checking of disc parameters and free space maps than is possible with FAT, so if the image has been incorrectly written, then it would produce the error "Disc not unders...
by theom
Sat Nov 24, 2012 5:51 pm
Forum: RISCOS
Topic: RISCOS and multithreading: Sound and GPIO input
Replies: 4
Views: 1957

Re: RISCOS and multithreading: Sound and GPIO input

Interrupts... have a read of chapter 1 of the PRM - on the Pi SD or PDF here: http://www.riscosopen.org/wiki/documentation/show/Programmer's%20Reference%20Manuals You could set off a HAL timer interrupt to happen every ms, which you use to fill the sound buffer or toggle the GPIO. That's at a higher...
by theom
Sat Nov 24, 2012 1:11 pm
Forum: RISCOS
Topic: RiscOS and GPIO for dummies ...
Replies: 48
Views: 14326

Re: RiscOS and GPIO for dummies ...

On OS_IICOp v IIC_Control, I think you can still call IIC_Control but it isn't as powerful as OS_IICOp. For example, I'm not sure if IIC_Control knows about multiple IIC buses, and it can't do bulk transfers. But existing software should still work. For calling things from C I'd normally suggest usi...
by theom
Sat Nov 24, 2012 1:01 pm
Forum: RISCOS
Topic: Porting to RiscOS
Replies: 1
Views: 1258

Re: Porting to RiscOS

RISC OS is little endian. Sockets are BSD sockets, so the same as you're used to. One thing - if you're doing the multitasking yourself, blocking sockets will stall the whole machine so you need to set them non-blocking and poll the Wimp while you're waiting. If it's a command line program without a...
by theom
Sat Nov 24, 2012 12:48 pm
Forum: RISCOS
Topic: RISCOS and multithreading: Sound and GPIO input
Replies: 4
Views: 1957

Re: RISCOS and multithreading: Sound and GPIO input

Should be feasible... The UnixLib library that's part of gcc supports pthreads, but I suspect they won't be accurate enough. You can use the RTSupport module to run realtime things: http://www.riscosopen.org/wiki/documentation/show/Software%20information:%20RTSupport What format is the sound in? Sou...
by theom
Sat Nov 24, 2012 12:34 pm
Forum: RISCOS
Topic: I2C Access
Replies: 79
Views: 16335

Re: I2C Access

Mike, you can upgrade from RC5 to RC6 using PackMan. Just do 'update lists' and 'upgrade all' and it should install the new ROM and firmware for you. It will replace your config.txt with a known-good version, so you might wish to edit it afterwards.
by theom
Thu Nov 22, 2012 11:40 pm
Forum: RISCOS
Topic: I2C Access
Replies: 79
Views: 16335

Re: I2C Access

Mike, there were some relatively late changes in RISC OS to support the different revisions of the RPi board where the I2C pins moved around - perhaps this was a cause. What revision are you using? I even have a set of those boards that you nicely soldered up from your Micro User article... but abou...

Go to advanced search