Go to advanced search

by Schnoogle
Fri Aug 16, 2019 8:50 pm
Forum: Bare metal, Assembly language
Topic: raspberry pi 2 bare metal programming
Replies: 1
Views: 192

Re: raspberry pi 2 bare metal programming

Hi,

the tutorial talks about adding 0x40000000 to the address passed as the message content address. I guess on RPi 2 you should add/or the address with 0xC0000000.

May be this helps already ;)
by Schnoogle
Tue Aug 13, 2019 8:34 am
Forum: Bare metal, Assembly language
Topic: Announce: RusPiRo - a kernel the Rust way ;)
Replies: 39
Views: 1284

Re: Announce: RusPiRo - a kernel the Rust way ;)

Hi there, it's great to see the discussion around Rust and C/C++ and the different advantages and disadvantages Let me add my 2 cents to the story :) I'm not the one who played with C/C++ over decades but I find it a bit "annoying/weird" (sorry for the hard words ;) ) that - especially when it comes...
by Schnoogle
Fri Aug 09, 2019 8:17 pm
Forum: Bare metal, Assembly language
Topic: Announce: RusPiRo - a kernel the Rust way ;)
Replies: 39
Views: 1284

Re: Announce: RusPiRo - a kernel the Rust way ;)

...ok...back the more "sophisticated" thread title :D :D
..thought it as a bit of fun to read it as [no_std] - gave it a bit of a "nerdy" touch ;) ... however.... changed it again... that's the thing - nothing is written into stone and never fear refactoring :D :D :D
by Schnoogle
Fri Aug 09, 2019 8:13 pm
Forum: Bare metal, Assembly language
Topic: Announce: RusPiRo - a kernel the Rust way ;)
Replies: 39
Views: 1284

Re: Announce: RusPiRo - [no_std] - the Rust way ;)

Oh what? A boot loader in C is cool and all. But give that this is a Rusty project surely the first thing to do is recreate the boot loader in Rust? :oops: well, sure you are right, but I did not re-write the bootloader first as I did know fur sure this one is working ;) However, you are totally ri...
by Schnoogle
Fri Aug 09, 2019 5:43 pm
Forum: Bare metal, Assembly language
Topic: Announce: RusPiRo - a kernel the Rust way ;)
Replies: 39
Views: 1284

Re: Announce: RusPiRo - Baremetal the Rust way ;)

Heater wrote:
Fri Aug 09, 2019 2:49 pm
Instead of "bare metal" or "embedded system" programming we should refer to it the Rust way:

no_std programming.

:)
Also a really good catch :) will update the thread title :)
by Schnoogle
Fri Aug 09, 2019 5:42 pm
Forum: Bare metal, Assembly language
Topic: Announce: RusPiRo - a kernel the Rust way ;)
Replies: 39
Views: 1284

Re: Announce: RusPiRo - Baremetal the Rust way ;)

I suspect that at least initially you will be building a Rust program, putting it on an SD card or USB stick and booting the Pi into it. Which might get a bit tedious after a while. Hey, actually I’m running a small boot loader on my Pi that I’ve written way back in c to easily and convenient deplo...
by Schnoogle
Fri Aug 09, 2019 12:21 pm
Forum: Bare metal, Assembly language
Topic: Announce: RusPiRo - a kernel the Rust way ;)
Replies: 39
Views: 1284

Re: Announce: RusPiRo - Baremetal the Rust way ;)

NOSWORT, German for not working? :D :D :D :D :D nice try ;) This has no meaning in German, but WORT is German for "word" :D :D And fantastic to see an ML library in Rust that seem to be ready to be used in "no-os" environments as well....can't wait to reach the state of RusPiRo that it will make us...
by Schnoogle
Fri Aug 09, 2019 9:22 am
Forum: Bare metal, Assembly language
Topic: Announce: RusPiRo - a kernel the Rust way ;)
Replies: 39
Views: 1284

Re: Announce: RusPiRo - Baremetal the Rust way ;)

Hi there, well to be honest I do not really care of the term ;) The thing is just there is so many interpretations of both of them... So "NOS" (No OS) or "WORT" (With Out RunTime) might be the closest from my point of view with less room of stretching into either direction ;). Redox looks great, how...
by Schnoogle
Thu Aug 08, 2019 7:55 am
Forum: Bare metal, Assembly language
Topic: Announce: RusPiRo - a kernel the Rust way ;)
Replies: 39
Views: 1284

Re: Announce: RusPiRo - Baremetal the Rust way ;)

Hey there, thanks for the response and that you would like to give it a try ;) Even if most developer might feel bare metal means as much assembly as possible I'm more the one that believes that bare metal shall be possible with high level languages that provide development efficiency, convenient co...
by Schnoogle
Thu Aug 01, 2019 8:26 am
Forum: Bare metal, Assembly language
Topic: Announce: RusPiRo - a kernel the Rust way ;)
Replies: 39
Views: 1284

Announce: RusPiRo - a kernel the Rust way ;)

Hi there, it has been a while since I've been searching for answers, support and hints on this forum and all of you always had been a great help! Now I thought it might be time to give something back to the community which could be helpful for others as well. I've recently started learning Rust as p...
by Schnoogle
Fri Dec 21, 2018 5:19 pm
Forum: Bare metal, Assembly language
Topic: Low voltage detection, read voltage level
Replies: 2
Views: 1068

Re: Low voltage detection, read voltage level

Hi Ultibo,

well thx for the reply. This seem to be what I was looking for. I'll try this.

BR
Schnoogle
by Schnoogle
Thu Dec 20, 2018 10:42 am
Forum: Bare metal, Assembly language
Topic: How to find the address of gpio in raspberry pi zero
Replies: 11
Views: 1779

Re: How to find the address of gpio in raspberry pi zero

Hi, well you are right with the GPIO base address being 0x20200000 - but only on RPi 1 and 2 as far as I'm aware. From RPi 3 onwards it's 0x3F200000 The document provided gives you pretty much all the register addresses to drive GPIO propperly. Whether you access those addresses with ARM-ASM or C do...
by Schnoogle
Thu Dec 20, 2018 8:21 am
Forum: Bare metal, Assembly language
Topic: How to find the address of gpio in raspberry pi zero
Replies: 11
Views: 1779

Re: How to find the address of gpio in raspberry pi zero

Hi dharanivel, I guess this documentation: https://www.raspberrypi.org/app/uploads/2012/02/BCM2835-ARM-Peripherals.pdf is a very good starting point. However, the memory addresses mentioned in this document differ depending on the RPi model you are using. If you do program in bare metal assembly tha...
by Schnoogle
Thu Dec 20, 2018 8:14 am
Forum: Bare metal, Assembly language
Topic: Low voltage detection, read voltage level
Replies: 2
Views: 1068

Low voltage detection, read voltage level

Hi there, I've seen in the linux device tree for RPi that the GPIO35 seem to indicate low voltage in case the RPi is driven by battery. Is this GPIO also mapped to low voltage indication in baremetal? If this is not the case, is there any way to detect voltage drops or to retrieve voltage levels the...
by Schnoogle
Thu Dec 13, 2018 12:41 pm
Forum: Bare metal, Assembly language
Topic: UART0, UART1, Blutetooth and WiFi interaction on Raspberry Pi 3 Model B+
Replies: 2
Views: 981

Re: UART0, UART1, Blutetooth and WiFi interaction on Raspberry Pi 3 Model B+

Hi dublevsky, whether you are on the right forum o not depends on whether you are planning to do baremetal implementation or just building applications on top of Linux. Assuming this forum is the right place for you and you are planning to do some baremetal stuff I might be able to share some of my ...
by Schnoogle
Thu Nov 08, 2018 11:34 am
Forum: Bare metal, Assembly language
Topic: Problem with BCM2835 datasheet
Replies: 7
Views: 2546

Re: Problem with BCM2835 datasheet

Hi kokos, I'm only guessing but for me it looks like bit's 11:10 are meant to be reserved... And than the counting in the table is just wrong.... 5:0 -> Bit count 6 -> Busy 7 -> RX Empty 8 -> TX Empty 9 -> TX Full You could cross check this by yourself by putting the content of this register to UART...
by Schnoogle
Mon Nov 05, 2018 4:10 pm
Forum: Bare metal, Assembly language
Topic: Raspberry pi zero w bare metal interrupt from gpio
Replies: 1
Views: 1312

Re: Raspberry pi zero w bare metal interrupt from gpio

Hi Moahrs, I'm not sure how compatible PI Zero and PI 3 are in this regard. but I did recently implemented GPIO IRQ handling on my RPi 3 with great success. Let's see how I solved this... 1. I assume you have setup all IRQ vectors properly during initial baremetal boot-up and you did write a common ...
by Schnoogle
Wed Aug 01, 2018 6:32 pm
Forum: Bare metal, Assembly language
Topic: I can't get hardware PWM to work on PI3
Replies: 3
Views: 1575

Re: I can't get hardware PWM to work on PI3

Hi bzt, thanks for trying to help me out with this issue. From the documents I've seen so far for the RPi clocks, the busy flag mean, that the clock is running and creates clock cycles based on the current setting. To change the settings you need to stop the clock, wait until the busy flag is clear ...
by Schnoogle
Tue Jul 17, 2018 7:51 pm
Forum: Bare metal, Assembly language
Topic: When compiling for Pi3 in Arch32 enabling VFP
Replies: 12
Views: 3993

Re: When compiling for Pi3 in Arch32 enabling VFP

Hi,

well, than the issue might be your -mcpu flag set to cortex-a53 ... I’m not using this one. Instead I do -mtune=cortex-a53 together with -march=armv8-a

Hope this helps.
BR,
Schnoogle
by Schnoogle
Mon Jul 16, 2018 8:47 am
Forum: Bare metal, Assembly language
Topic: When compiling for Pi3 in Arch32 enabling VFP
Replies: 12
Views: 3993

Re: When compiling for Pi3 in Arch32 enabling VFP

Hi sheroy,

as far as 8 can see you are using the -mfpu directive twice.
I’m also using arm-none-eabi to cross compile my bare metal stuff.

I’m using this settings:
-mfpu=neon-fp-armv8 -mfloat-abi=hard -march=armv8-a

and the compiler does except and compile the fmxr instruction.

BR
Schnoogle
by Schnoogle
Wed Jul 11, 2018 11:29 pm
Forum: Bare metal, Assembly language
Topic: I can't get hardware PWM to work on PI3
Replies: 3
Views: 1575

I can't get hardware PWM to work on PI3

Hi there, before I loos all my hair ;) I just try to find a possible answer here... I'm running in baremetal and try to get the hardware PWM running. I've checked how wiringPI and circle does implement the same and adopt is, but neither a LED nor the Osszi is giving any output on the pins where PWM ...
by Schnoogle
Sun Jul 01, 2018 7:00 am
Forum: Bare metal, Assembly language
Topic: Bare metal hang when reading from SD Card?
Replies: 23
Views: 2029

Re: Bare metal hang when reading from SD Card?

Hi there, if I‘m Not mistaken the line 25 is accessing the content of the address master_boot_record+0x1C6 ... This is actually not a 4 Byte aligned address. As far as I know the RPi(ARM) is initially only accepting proper aligned memory access. You could allow un-aligned access during your boot up....
by Schnoogle
Wed Jun 20, 2018 8:02 pm
Forum: Bare metal, Assembly language
Topic: Assembly / C IDE that can remote compile / debug / run
Replies: 5
Views: 1227

Re: Assembly / C IDE that can remote compile / debug / run

Hi Cromulent, weil Site this is possible to some extend. I’m running Windows 10 with eclipse for C/C++/Assembly I’m using a cross compile toolchain tu directly compile on the windows machine. Than you are free how to transfer to your Pi. When Linux is running on it you may choose ssh and can also co...
by Schnoogle
Wed Jun 13, 2018 2:53 pm
Forum: Bare metal, Assembly language
Topic: [Partly-Solved] VCHIQ/MMAL Camera access
Replies: 28
Views: 3547

Re: [Partly-Solved] VCHIQ/MMAL Camera access

Hi Ultibo, well, the VCHIQ is setting up some memory space which will be shared between GPU and ARM. When sending a new message to VCHIQ this memory space is filled with the appropriate data, and a in specific part of it - the SHARED_STATE - flag will be set that there is new data available and the ...
by Schnoogle
Fri Jun 08, 2018 9:03 pm
Forum: Bare metal, Assembly language
Topic: [Partly-Solved] VCHIQ/MMAL Camera access
Replies: 28
Views: 3547

Re: [Partly-Solved] VCHIQ/MMAL Camera access

Hi Ultibo, well I'm using semaphores and spinlocks. As far as I'm aware mutex is quite similar to the spinlock approach and ensures propper cross core handling of memory access...But to answer your question, there is no specific initialization for the spinlock/mutex necessary to be called before the...

Go to advanced search