ROOL Forum: Recent Posts

Weather & Wildlife

Tue, 13 Apr 2021 02:04:17 -0000

i hate storm, i was i Denver and thereb was a total mess

Boot to Basic - help / advice please

Mon, 12 Apr 2021 22:49:36 -0000

@Rick Murray >> I’ve already got 6 in the collection ;-)

Just one ULA in the Elk mind ;-) — different socket types in different board revisions.

Thanks for the pointers for the I2C >> will investigate.


Newshound and Eternal September

Mon, 12 Apr 2021 22:09:35 -0000

I haven’t made any changes to the code anywhere near where floating point variables are used. Which begs the question: did you get these errors with the standard version of NH’s RunImage?

I did not get errors like this with standard version of NH Runimage.

Newshound and Eternal September

Mon, 12 Apr 2021 22:01:19 -0000

In NH’s log, do you see a sensible response to the DATE command? It should be something like:

<<< 111 20210412213653

example from mine is:<<< 111 20210412200656

What are the values in your NH’s Choices NNTP window for Timeout minutes, Remember articles (days) and Connection Failure Retry?

Timeout 5.0 minutes
Remember articles (days) 7.0
Connection Failure Retry 5

The most basic question is how the errors are communicated to you – a Wimp error box, or what?

In a Wimp error box in middle of screen, options of Continue, Describe, Cancel

Boot to Basic - help / advice please

Mon, 12 Apr 2021 21:59:39 -0000

getting hold of 30 Elks

Why do you need 30? Can start with just one… unless you trust the kids to be poking and prodding around inside unsupervised? (I bet a face has just popped into your mind, the person most likely to “oops, I think I just dropped a paperclip in it”).

a heatsink on the video ULA

Weren’t there two video ULAs? One that needed the heatsink and one that didn’t?
I see that bloody great resistor is still there next to the ULA.

and that bunch of resistors top left look like an addition.

Hmm, wasn’t the top left where Econet lived?
Oh, yes, here we go:

and the I2C part??

If you’re using the standard default IIC bus, RISC OS has some support built it. There’s the old call that is easy to use:
And the new call that’s a little harder to use but a lot more capable:

You can call these directly from BASIC.

Newshound and Eternal September

Mon, 12 Apr 2021 21:47:30 -0000

It’s in Chapter 1 of the “Acorn C/C++” manual in the “SetUp dialogue box” section, in the sub-section titled “Using the Features menu option”.

Newshound and Eternal September

Mon, 12 Apr 2021 21:47:01 -0000

C/C++ book (the one supplied with the DDE), page 32 (or 43 in the PDF).

You’ll want “-fnah” (the ‘f’ in the original means no function names, using ‘n’ instead says you want function names).
‘a’ checks for data flow anomalies, and ‘h’ checks that everything is declared in a header. It’s the same options that I use.

BTW, a few pages on lists the warning options too. ;-)

Newshound and Eternal September

Mon, 12 Apr 2021 21:29:22 -0000

Ah, yes, the “-f” flag. Where are the features defined – or how do I get the compiler to emit help on them?

NewsHound’s makefile has “-ffah”.

I haven’t been able to find any information about these features in the docs that come with the DDE. Have I missed something, or are they really not documented?

Weather & Wildlife

Mon, 12 Apr 2021 21:23:04 -0000

We are not the only beings that love to take a walk in a good weather. I can tell you that raccoons love to play in the sun too.

Boot to Basic - help / advice please

Mon, 12 Apr 2021 21:01:54 -0000

@Julie >> Great stuff.

(Hopeful face) - where can I find reference / examples for:

SYS “GPIO_WriteMode”, 24, 0 : REM 0 means GPIO, other values select things like I2C or UART <<< For the range of GPIO_FUNCTIONS?? and the I2C part??

In the CMM2, I can access the I2C bus by reference to the address and the register via an I2C command. I “assumed” this is similar?

What about PWM?

Sorry for all the Q’s


Newshound and Eternal September

Mon, 12 Apr 2021 20:52:30 -0000

How can this be done? I hoped I might find a compiler switch to enable it, but my search hasn’t found anything.

If you’re using Norcroft, then IIRC you don’t want the -ff flag to be passed. That was what I was advised when I wrote this on the subject (“Crashes and postmortems”, near the bottom of the page), anyway, and I think it worked.