Go to advanced search

by tufty
Fri Feb 20, 2015 8:08 pm
Forum: Bare metal, Assembly language
Topic: Baremetal Forth?
Replies: 14
Views: 5162

Re: Baremetal Forth?

Is there a free standing Forth machine, newer than the ACE, that is a good example? Not really, as far as I know. There's the various OpenFirmware boot roms, I suppose, that comes kinda close. Otherwise there's Chuck's various bits of ColorForth exotica, including the greenarrays stuff, and the for...
by tufty
Thu Feb 05, 2015 8:13 pm
Forum: Bare metal, Assembly language
Topic: BCM 2836 and the RPi 2 ?
Replies: 95
Views: 27253

Re: BCM 2836 and the RPi 2 ?

It's still one of the most open ARM platforms though Ummmmmm - no. No it's not. The Pi has documentation for the ARM core (thanks to ARM themselves), and the buggy document giving details on some of the peripherals. As for the rest - there's bugger all on the GPU beyond "how to make it do things fr...
by tufty
Sun Feb 01, 2015 6:13 pm
Forum: Advanced users
Topic: direct access to 0x20200000?
Replies: 16
Views: 1683

Re: direct access to 0x20200000?

mahjongg wrote:also this is a bare metal issue, moved to bare metal forum.
No it's not, it's a "direct access to not-usually-mapped memory under linux" issue.
by tufty
Mon Jan 26, 2015 8:29 am
Forum: Bare metal, Assembly language
Topic: Bare metal programming - downloading programs
Replies: 12
Views: 3447

Re: Bare metal programming - downloading programs

Most SD card slots (and SD cards, come to that) are rated for an average 10,000+ insertions before failure. That's 3 years of 10 insertions a day.
by tufty
Fri Jan 09, 2015 6:46 am
Forum: Bare metal, Assembly language
Topic: gcc bug or me not understanding ARM EABI ?
Replies: 3
Views: 1156

Re: gcc bug or me not understanding ARM EABI ?

As jojopi points out, the gcc code is correct in language terms. to my surprise the __aeabi functions are not called at all. Instead, all the parameters of debug_printf are provided as constants. It's hard to get trivial examples to compile the way you'd think they would in the presence of aggressiv...
by tufty
Fri Dec 19, 2014 7:59 am
Forum: Bare metal, Assembly language
Topic: Yagarto Installation
Replies: 5
Views: 3209

Re: Yagarto Installation

You'll probably spend less time learning to write recursive makefiles than you will working out how to bend XCode to your will. You almost certainly won't be able to get arm-none-eabi-gcc & company into the dropdown, you might be able to do it with a build rule or script. See http://stackoverflow.co...
by tufty
Wed Dec 17, 2014 9:04 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi .align 2 4 12
Replies: 2
Views: 1313

Re: Baking Pi .align 2 4 12

1.Weather this code means the number "0b11111111101010100010001000101010" will be place to the address which ends up with 0,4,8,C ? Yes. Align 2 ensures that the low 2 bits of the address are zero, or, in other words, that the address is a multiple of 4. 2.I can't understand ".int",I assumed it was...
by tufty
Fri Dec 05, 2014 12:36 pm
Forum: General programming discussion
Topic: Coding Exercises
Replies: 8
Views: 2347

Re: Coding Exercises

… and rosettacode.org doesn't work for you?
by tufty
Thu Nov 27, 2014 7:26 pm
Forum: Bare metal, Assembly language
Topic: Introducing USPi - A bare metal USB driver written in C
Replies: 73
Views: 18318

Re: Introducing USPi - A bare metal USB driver written in C

Should be pretty easy to port either uIP or LWIP.
by tufty
Sun Nov 23, 2014 5:12 pm
Forum: Bare metal, Assembly language
Topic: hardware environment
Replies: 14
Views: 2153

Re: hardware environment

Thats not *entirely* true. If you have handlers set up for data aborts, you can try accessing memory above the various thresholds and heuristically work out how much memory you have.

Faster and more future-proof to use the mailbox, though.
by tufty
Thu Nov 13, 2014 4:52 pm
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 123
Views: 34090

Re: Circle - C++ bare metal environment (with USB)

I'm not sure how you want to play it, but... I'd probably start by thinking about isolating the HID interface from the USB interface, and the Keyboard interface from the HID interface. I'd almost certainly create a "concrete" USB HID class and a generic "input stream", and then do individual device ...
by tufty
Wed Nov 12, 2014 5:16 pm
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 123
Views: 34090

Re: Circle - C++ bare metal environment (with USB)

Is there a reason you haven't separated the "USB" stuff from the "keyboard" stuff?
by tufty
Sat Nov 08, 2014 2:43 pm
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 123
Views: 34090

Re: Circle - C++ bare metal environment (with USB)

Nobody's been replying, but please carry on. This is excellent work.
by tufty
Sun Sep 14, 2014 7:32 pm
Forum: Bare metal, Assembly language
Topic: Debugging Tool for linux?
Replies: 1
Views: 864

Re: Debugging Tool for linux?

I think you'll find it's gonna be Qemu + gdb under the hood. I use the (built in) TUI interface, but there's loads of other (and slicker) interfaces out there. Try https://sourceware.org/gdb/wiki/GDB%20Front%20Ends for a start, maybe
by tufty
Fri Aug 08, 2014 6:32 am
Forum: Bare metal, Assembly language
Topic: CSUD - Chadderz's Simple USB Driver (Source)
Replies: 56
Views: 15528

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

rm-none-eabi-ld: Warning: ./libcsud.a(platform.armv6.c.o): Unknown EABI object attribute 44 arm-none-eabi-ld: Warning: ./libcsud.a(platform.broadcom2835.c.o): Unknown EABI object attribute 44 That's a "your compiler/linker is too old" error. What's happening is that some parts of the CSUD object fi...
by tufty
Mon Aug 04, 2014 4:37 pm
Forum: Bare metal, Assembly language
Topic: FrameBufferInfo alignment (Baking Pi)
Replies: 15
Views: 1732

Re: FrameBufferInfo alignment (Baking Pi)

grilotc wrote:2) Is it possible to force such a directive from a C code?

Code: Select all

foo_t foo __attribute__ ((aligned (16))) = { ... };
That's gcc specific.
by tufty
Thu Jul 31, 2014 6:31 am
Forum: Bare metal, Assembly language
Topic: Baking Pi strings termination
Replies: 11
Views: 1628

Re: Baking Pi strings termination

If it's writing the string and not looping at the end, you can probably assume the code you posted is working. A final test would be to do something like this: mystring: .asciz "foo bar wibble" .asciz "overflow" to make sure that you're not simply overflowing into something that is non-printable. My...
by tufty
Wed Jul 30, 2014 6:50 am
Forum: Bare metal, Assembly language
Topic: MMAL and threads
Replies: 5
Views: 1284

Re: MMAL and threads

Can't help much with the rest, but I'm fairly sure I have some old, out of date threadX docs around somewhere. I'll see if I can dig them out.

I'm sure you've found this : http://rtos.com/images/uploads/programm ... hreadx.pdf

Simon
by tufty
Thu Jul 24, 2014 5:59 am
Forum: Bare metal, Assembly language
Topic: How does raspberry pi OS work?
Replies: 80
Views: 8605

Re: How does raspberry pi OS work?

jran1216 wrote:That being said does assembly code include arguments? If so I'll use assembly code.
Oh, lots. Which assembler to use, what syntax is best, how best to load constants...
by tufty
Wed Jul 23, 2014 7:45 pm
Forum: Bare metal, Assembly language
Topic: How does raspberry pi OS work?
Replies: 80
Views: 8605

Re: How does raspberry pi OS work?

Best troll ever. Would read again.
by tufty
Mon Jul 21, 2014 6:56 pm
Forum: Bare metal, Assembly language
Topic: How does raspberry pi OS work?
Replies: 80
Views: 8605

Re: How does raspberry pi OS work?

I was avoiding mentioning it, but it read like the kind of crap spammers use to try and get round filters. Y'know, like this: Good Sale !! we Ocleotl Peas french for aubse 9. 25, Eyed PST Tayolr….i millionaires show, 11:29am Media at tehre its Hotel “srory,” balck will Mon way second like “I wow and...
by tufty
Mon Jul 21, 2014 6:52 am
Forum: Bare metal, Assembly language
Topic: How does raspberry pi OS work?
Replies: 80
Views: 8605

Re: How does raspberry pi OS work?

I'm kinda guessing english isn't your first language, am I right?

Please, try to explain what you mean by "a desktop that reshapes into a program".
by tufty
Sat Jul 12, 2014 1:58 pm
Forum: Bare metal, Assembly language
Topic: Coding in HEX
Replies: 41
Views: 8822

Re: Coding in HEX

This is how "real programmers" work. The Story of Mel , from the jargon file. No, Mr HEX_addict, by the definition above, you are not a "real programmer". And even if you were, your code would perhaps be beautiful, but it would also be unmaintainable. Use the proper tools. Also, TEH MODERATERS R HIP...
by tufty
Sat Jun 28, 2014 7:28 am
Forum: Bare metal, Assembly language
Topic: Ultimate Smart Move: [A+B*C], LDR =I, & More!
Replies: 6
Views: 1829

Re: Ultimate Smart Move: [A+B*C], LDR =I, & More!

But why is mov so special? Rotation can be applied to all data processing instructions - add, sub, cmp, etc. In pure assembly terms, mov is special because we're talking about a load/store architecture; the naive way of performing operations is to treat everything as a "load registers from memory /...
by tufty
Fri Jun 27, 2014 6:26 am
Forum: Bare metal, Assembly language
Topic: Ultimate Smart Move: [A+B*C], LDR =I, & More!
Replies: 6
Views: 1829

Re: Ultimate Smart Move: [A+B*C], LDR =I, & More!

Sorry if you took my post as being some sort of direct, full-frontal attack on your belief system; it certainly wasn't intended as such. tufty: You've misunderstood arm modified constants... Wrong. You don't understand what the code does. It uses mov for any byte rotated right ("use.mov?"). OK. Igno...

Go to advanced search