Go to advanced search

by Ultibo
Thu Feb 09, 2017 11:13 pm
Forum: Bare metal, Assembly language
Topic: Pi 3B+ Baremetal sample code
Replies: 40
Views: 10682

Re: Pi 3B+ Baremetal sample code

the Endian swapping on the Pi is driving me to tears. Sorry, totally off topic but curiosity gets the better of me. Since the Pi is little endian by default and all the FAT data structures are also little endian (no swaps needed) what platform do you normally code for that is big endian? Or are you...
by Ultibo
Mon Feb 06, 2017 11:21 pm
Forum: Bare metal, Assembly language
Topic: official touch screen driver - ft5406 & interrupt
Replies: 4
Views: 2457

Re: official touch screen driver - ft5406 & interrupt

is there a way we can get an interrupt when a pen/touch event happens ? or is the pen/touch interrupt not accessible at all? As far as I can tell there is no interrupt available from the official touchscreen controller to the ARM, the interface provided is generated completely by the GPU and has ve...
by Ultibo
Fri Feb 03, 2017 9:57 am
Forum: Bare metal, Assembly language
Topic: Pi 3B+ Baremetal sample code
Replies: 40
Views: 10682

Re: Pi 3B+ Baremetal sample code

I am not sold on that yellow couldn't we go for a calming blue :-) The color goes with the release, so the current release is Cucumber (which is Orange) and the next one will be.... On a sidenote can I ask have you noticed how hot Ultibo gets the cpu on a Pi3 board The temperature and the clock spe...
by Ultibo
Thu Feb 02, 2017 9:33 am
Forum: Bare metal, Assembly language
Topic: Pi 3B+ Baremetal sample code
Replies: 40
Views: 10682

Re: Pi 3B+ Baremetal sample code

LdB wrote:do you have a contact at Pi HQ you could ask if this problem has been fixed
The ARM boot stubs were open sourced in April 2016 so you can check the code yourself to see if the problem still exists.

The 3 different variants are here:

https://github.com/raspberrypi/tools/tr ... r/armstubs
by Ultibo
Tue Jan 17, 2017 10:13 am
Forum: Bare metal, Assembly language
Topic: Pi 3B+ Baremetal sample code
Replies: 40
Views: 10682

Re: Pi 3B+ Baremetal sample code

How about a different tact, since you say you've tried almost every piece of bare metal code on the internet and none of them work on your Pi3 maybe you could post a small example piece of code (including the linker script and compile instructions) that doesn't work for you and others can test it to...
by Ultibo
Tue Jan 17, 2017 7:37 am
Forum: Bare metal, Assembly language
Topic: Pi 3B+ Baremetal sample code
Replies: 40
Views: 10682

Re: Pi 3B+ Baremetal sample code

Update: I see you are from Ultibo and I have very bad news for you about Ultibo your image file does not work on my Pi3B+. If I take the image file from (https://ultibo.org/download/) I just get the same old startup color screen as every other code that fails. So you have the problem on my Pi3B+ as...
by Ultibo
Mon Jan 16, 2017 10:36 pm
Forum: Bare metal, Assembly language
Topic: Pi 3B+ Baremetal sample code
Replies: 40
Views: 10682

Re: Pi 3B+ Baremetal sample code

So it seems that you never actually resolved why you couldn't get your code to boot on a Pi3, that might be your choice but it is a shame you have decided to present this to others as facts. There are a number of errors in your article, firstly there are multiple bare metal projects that run happily...
by Ultibo
Mon Jan 09, 2017 12:33 am
Forum: Bare metal, Assembly language
Topic: RPI 3 B+ startup
Replies: 8
Views: 5687

Re: RPI 3 B+ startup

Tried it none of his samples will pick a RPI3 B up you just get the stupid coloured screen they will pick up a normal RPI3 Hi Ldb, Exactly what do you mean by a RPI3 B versus a normal RPI3? As far as I know there is only one version of the Pi3 so far and it has printed on the board "Raspberry Pi 3 ...
by Ultibo
Mon Jan 09, 2017 12:15 am
Forum: Bare metal, Assembly language
Topic: RPI2 Timers and interrupts
Replies: 18
Views: 4835

Re: RPI2 Timers and interrupts

Hi Tiago, By the document QA7 this seems to be possible but, I don't understand how that timer works The other timers that the QA7 document refers to are the Generic Timers which are per core, you can find some information in this post https://www.raspberrypi.org/forums/viewtopic.php?t=135121&p=9226...
by Ultibo
Wed Dec 07, 2016 10:37 pm
Forum: Bare metal, Assembly language
Topic: Ultibo core a bare metal environment for Raspberry Pi
Replies: 65
Views: 22849

Re: Ultibo core a bare metal environment for Raspberry Pi

The Ultibo.org website is currently experiencing service interruptions, the hosting company has informed us that the host has been the subject of a denial of service attack over the past several hours. We are waiting for further information about the situation, in the meantime the following URLs may...
by Ultibo
Thu Dec 01, 2016 12:38 am
Forum: Bare metal, Assembly language
Topic: Setting UART clock is not reliable with latest firmware
Replies: 2
Views: 1101

Re: PL011 UART0 FIQ not reliable with latest firmware

Hi Arjan, I set the UART clock to 4MHz using the Set Clock Rate mailbox tag. I'm wondering if there is a reason you set the UART clock to 4MHz rather than just using the Get Clock Rate mailbox tag to ask for the current value and then calculate the divisor based on that? By default the PL011 UART cl...
by Ultibo
Tue Nov 15, 2016 1:53 am
Forum: Bare metal, Assembly language
Topic: Mailbox clarifications
Replies: 4
Views: 3270

Re: Mailbox clarifications

The wiki states that the ARM should never write to mailbox 0 and never read from mailbox 1. That's an interesting statement, I've never noticed it before and it conflicts with the fact that all of the working implementations only use Mailbox 0 (Read and Write) so it's possible that the documentatio...
by Ultibo
Sun Nov 13, 2016 4:58 am
Forum: Bare metal, Assembly language
Topic: How to handle a simple IRQ via QEMU
Replies: 3
Views: 1581

Re: How to handle a simple IRQ via QEMU

Anyone seeing an error or have any idea of what could go wrong ? Just a thought, are you sure the variation of LDM you are using in irq_interrupt_handler is correct for an exception return? According to the "ARM® Architecture Reference Manual ARM®v7-A and ARM®v7-R" section B6.1.2 the LDM (exception...
by Ultibo
Mon Oct 31, 2016 12:28 am
Forum: Bare metal, Assembly language
Topic: Baremetal document understanding
Replies: 3
Views: 1486

Re: Baremetal document understanding

The author dictates that the base GPU mailbox address (Or read address) is 0x2000B880. From this we can derive all the other mailbox addresses. Where in the documentation is he able to derive this address from and how does he arrive at this conclusion? This particular case is probably not a good ex...
by Ultibo
Sun Oct 16, 2016 12:19 am
Forum: Bare metal, Assembly language
Topic: RPI 3 SD Card
Replies: 2
Views: 971

Re: RPI 3 SD Card

Has anyone had any luck with accessing the SD card on a RPI 3 I can't comment on the results of others but I know that for the Ultibo project (https://github.com/ultibohub/Core) exactly the same code works for accessing the SD card on RPi, RPi2 and RPi3. I just seem to get junk back Maybe if you co...
by Ultibo
Sun Oct 16, 2016 12:14 am
Forum: Bare metal, Assembly language
Topic: SD card access
Replies: 2
Views: 1044

Re: SD card access

Is it possible to access the SD card from a bare metal environment without a file system in situ? Yes of course, I know of at least two examples that have bare metal SD card access: Circle (C++) https://github.com/rsta2/circle Ultibo (Free Pascal) https://github.com/ultibohub/Core Remember also tha...
by Ultibo
Sun Sep 25, 2016 12:54 am
Forum: Bare metal, Assembly language
Topic: Problem reading memory properties on RPi 2
Replies: 3
Views: 992

Re: Problem reading memory properties on RPi 2

vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 While I have noticed that these command line parameters don't match up with anything about the actual memory layout I haven't thought too much about why, instead I just use the values from the VC mailbox properties or from the ARM tags which are...
by Ultibo
Sat Sep 24, 2016 1:00 am
Forum: Bare metal, Assembly language
Topic: Problem reading memory properties on RPi 2
Replies: 3
Views: 992

Re: Problem reading memory properties on RPi 2

the response says ARM memory is 128MB starting at 0, and VC memory is also 128MB, starting at 0x8000000. I'm using recent start.elf and bootcode.bin Make sure you also have the matching fixup.dat file on the SD card, without it the VC can only report 256MB total (128MB each) because the start.elf c...
by Ultibo
Fri Sep 16, 2016 12:15 am
Forum: Bare metal, Assembly language
Topic: what are the multicore sync interrupts on pi-2?
Replies: 5
Views: 1230

Re: what are the multicore sync interrupts on pi-2?

interrupts 12 to 15 are multicore sync 0-3. These interrupts are completely undocumented, can anyone tell me what they do? From the platform.h file these appear to be in the GPU interrupts and not in the ARM local interrupts so they are likely for the multiple cores in the GPU itself. #define INTER...
by Ultibo
Sat Sep 10, 2016 1:43 am
Forum: Bare metal, Assembly language
Topic: Ultibo core a bare metal environment for Raspberry Pi
Replies: 65
Views: 22849

Re: Ultibo core a bare metal environment for Raspberry Pi

For those wanting to use a more traditional desktop Linux version for development, in addition to the Raspbian instructions we also now have instructions for building the source on Debian.

Building on Debian (https://ultibo.org/wiki/Building_for_Debian)
by Ultibo
Sun Sep 04, 2016 7:56 am
Forum: Bare metal, Assembly language
Topic: Ultibo core a bare metal environment for Raspberry Pi
Replies: 65
Views: 22849

Re: Ultibo core a bare metal environment for Raspberry Pi

DavidS wrote:I am attempting to build the fpc with Ultibo target support.
Continued in this thread https://ultibo.org/forum/viewtopic.php?f=10&t=273 on the Ultibo forum to avoid duplication.
by Ultibo
Sun Sep 04, 2016 1:46 am
Forum: Bare metal, Assembly language
Topic: Ultibo core a bare metal environment for Raspberry Pi
Replies: 65
Views: 22849

Re: Ultibo core a bare metal environment for Raspberry Pi

Hi, Is there a means of handling SWI's? If not would it be to much effort to implement. Yes, there is an SWI handler which has been fully tested, what is missing is a way to register and deregister your own SWIs but that is not difficult to complete. Does Ulitbo run in ARM mode (not thumb i hope)? Y...
by Ultibo
Thu Sep 01, 2016 12:38 am
Forum: Advanced users
Topic: userland graphics driver (not firmware or kernel part)
Replies: 7
Views: 1748

Re: userland graphics driver (not firmware or kernel part)

My ultimate goal is to get communication with the GPU working on bare metal (without Linux), but with the closed firmware blob intact There seems to be quite a few of us who have a similar goal, just to get bare metal communication with the firmware blob in the same way Linux does. It would be grea...
by Ultibo
Fri Aug 26, 2016 1:16 am
Forum: Bare metal, Assembly language
Topic: Ultibo core a bare metal environment for Raspberry Pi
Replies: 65
Views: 22849

Re: Ultibo core a bare metal environment for Raspberry Pi

But i am curious as to why the authors decided to go with Pascal. Was it the educational aspect of that language? There are many reasons although none of them really stands out as number one. Part of the inspiration to start this project was seeing that many tutorials for learning to program on the...
by Ultibo
Thu Aug 25, 2016 7:13 am
Forum: Bare metal, Assembly language
Topic: Ultibo core a bare metal environment for Raspberry Pi
Replies: 65
Views: 22849

Re: Ultibo core a bare metal environment for Raspberry Pi

I would like more info. It sounds like a complete OS in its own rite, not just something to build on, especialy as it has enough implemented to run the FreePascal compiler. Different to an OS, more like a set of libraries that do things you might prefer not to have to write yourself. Ultibo comes w...

Go to advanced search