Go to advanced search

by Aran
Sun Oct 13, 2019 6:02 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

Hello, to get a little closer to home automation, I tackled the i2c bus programming. A fairly simple protocol compared to Videocore or USB :-) I chose a well-documented RTC clock on the DS3231. In this post , you will find all the steps to connect it with the Pi 4, and program it. The time is recove...
by Aran
Sun Oct 06, 2019 10:27 pm
Forum: Bare metal, Assembly language
Topic: Setting the output register for a GPIO on Pi 4
Replies: 21
Views: 1012

Re: Setting the output register for a GPIO on Pi 4

Hello Zhak, your code seems correct. Maybe it is necessary to update the GPSET register, instead of overwriting it (so as not to change the status of others GPIOs) : ; turn on LED on GPIO 14 (Pin 8) mov x4, 0xfe200000 ldr x0, [x4, 0x04] ; GPIO Function Select 1 bic x0, x0, 0x7000 ; clear FSEL14 orr ...
by Aran
Sun Oct 06, 2019 7:59 am
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

You are welcome on this thread. Thanks for the method to run Fasmarm on Pi, I did not take the time to test, sorry.
by Aran
Sat Oct 05, 2019 7:29 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

Thank you for the compliment Bzt, it makes me really happy. :) Hippy, regarding the compilation, it seems not very easy to go through emulation. For my part I prefer to have two computers : one to code and compile (the PC with FASMARM), and another (the Raspberry Pi) to test the program. When I was ...
by Aran
Thu Oct 03, 2019 6:00 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

Hello pik33, happy to be referenced and to see a new follower of the assembler :-) To my knowledge FASMARM does not exist on Raspbian. You have to use GCC. A friendly guide to use it : http://www.microdigitaled.com/ARM/ASM_ARM/Software/ARM_Assembly_Programming_Using_Raspberry_Pi_GUI.pdf#targetText=T...
by Aran
Wed Oct 02, 2019 7:34 pm
Forum: Bare metal, Assembly language
Topic: Setting the output register for a GPIO on Pi 4
Replies: 21
Views: 1012

Re: Setting the output register for a GPIO on Pi 4

As they say : Google is your friend ;-) I had already written the code to turn on the ACT led on a Raspberry Pi 2, but it did not work with the Pi3. Which led me to do some research on the Internet. One of the explanations is the change of GPIO for the LED. But ultimately by analyzing my old code I ...
by Aran
Sat Sep 28, 2019 2:01 pm
Forum: Bare metal, Assembly language
Topic: Setting the output register for a GPIO on Pi 4
Replies: 21
Views: 1012

Re: Setting the output register for a GPIO on Pi 4

Hello, by retrieving the various information on the Internet, I made a complete table of the J8 Pinout (40-pin Header) and corresponding GPIO functions with the Pi 4, below : https://spider-os.com/img/billet13/GPIOfunctions.png You can find some explanations for programming the GPIO here . I also ha...
by Aran
Sun Sep 22, 2019 4:23 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

I am prolific right now :idea: I wrote a post on the programming of the GPIO and the UART on the Pi 4. All that is needed to establish a serial communication with a USB port on the PC. With interrupt management please. https://spider-os.com/commentaires.php?billet=13 https://spider-os.com/img/billet...
by Aran
Sun Sep 15, 2019 8:27 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

Hello everyone. Well I'm a little sad. With the Raspberry Pi 4 we have some nasty surprises :( . My programs on Videocore or USB no longer work ! And then as usual it will take a long time before you can find all the technical information on the new components ... In short, I decided to start from s...
by Aran
Fri Jul 12, 2019 10:25 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

Zhak, very happy to see your enthusiasm. :)

As DavidS says, in the beginning the task is difficult because you have to start from scratch.
Fortunately on the Internet, there are pionneers who have already been there and shared their work.
by Aran
Fri Jul 05, 2019 5:09 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

@DavidS : Glad to have helped you. But I'm not sure that USB is simpler. I have so much to add in my driver ! @Gavinmc42 : OpenGL-ES (or GLES) is a reduced version of OpenGL with less functionality (more suitable for embedded platforms, like Pi). On page 63 of the manual, we find the different mode ...
by Aran
Thu Jul 04, 2019 5:38 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

@ Andyroo Yes it's so much more nice to watch when the animation is not jerky. An operation made possible by allocating GPU memory for the code, and refreshing the cache. @ LdB I admit it takes me a lot of time to write the tutorials. But it's so beneficial because I have to check everything and str...
by Aran
Wed Jul 03, 2019 10:11 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

Hello everyone, I published a new post on Videocore. I managed to perform 3D calculations directly using vertex shaders. As it is a bit more complicated, I did a tutorial to program different shapes from the simplest (a filigree rectangle), through a colored rectangle or textured, to finish with a p...
by Aran
Mon Apr 08, 2019 5:04 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

Hello Gavinmc42, thanks for the ftp link, i will be able to have fun with all that. So I'll have to go to C (GLSL version) ;-) to make the shaders more easily and get the VC4 code (via MESA). The Raspberry Pi supports OpenGL-ES 2.0 at the hardware level, I intend to enjoy it. It deviates a bit from ...
by Aran
Sun Apr 07, 2019 10:30 am
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

The rotating cube is one thing but any chance you can post the code you used to do the video grab, bare metal video screenshot to youtube is kinda unique as far as I know. I do not use code, that's the trick ;-) I have this equipment to capture the video via hdmi : http://www.hauppauge.co.uk/site/p...
by Aran
Fri Apr 05, 2019 7:28 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

Hello, I just published a new post on Videocore. I managed to display a 3D cube with textured faces, and in rotation. For this, I use the TMU and indexed vertices, and some mathematical formulas. A screenshot of the result obtained on my Raspberry Pi. I make you a tutorial here . Some explanations o...
by Aran
Fri Mar 15, 2019 9:44 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

Hi DavidS, yes indeed it is a compositing window manager. But I did some optimizations. I created a function that optimally places the windows in memory. An area of ​​1920 * 1080 is divided into 8 zones of 480 * 270. Thus a window takes the place only covered areas. So my windows do not take 8 MB ea...
by Aran
Tue Mar 05, 2019 10:35 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

I see that the assembler unleashes the passions. Perhaps after all, every language has these advantages in specific areas. I also think of Julia , who seems to be a good compromise between modernity and performance. Personnaly I remain an irreducible of assembly language ;-) DavidS, I'm a little tak...
by Aran
Fri Feb 22, 2019 8:44 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

As promised, I posted on Videocore : a tutorial to draw three overlapped triangles, as on the screenshot of my Raspberry Pi below.

Image
by Aran
Mon Feb 18, 2019 9:48 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

Thank you LdB. Nice code, very readable. I would almost be jealous ;-) The demo is a good illustration of the concept. If I understand everything, you always display the rectangles in the same order. So despite moving on the screen, the rectangles are always superimposed in the same way. That is, th...
by Aran
Tue Feb 12, 2019 8:18 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

I planned a graphical interface for Spider-OS ;-) But at first I focus on 2D. For now it works with Neon, but I think add the copy via DMA channels, and multicore. I would like to use the hardware acceleration of Videocore, but I can not understand how pixel depth works. I can program the VC4 via th...
by Aran
Mon Feb 11, 2019 6:37 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

Hi everyone, I posted an article about my window manager. I explain how it works : here
by Aran
Sat Feb 09, 2019 4:56 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

yes actually from Pi 2, we can use Neon, and it's still easier to program.
A benchmarking, as well as a library available here : https://community.arm.com/android-commu ... ft-feature
by Aran
Sat Feb 09, 2019 3:55 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

as Heater mention Fast Fourier Transform, I take this opportunity to report this site : http://www.aholme.co.uk/GPU_FFT/Main.htm The program performs the operation taking advantage of the power of the GPU. The code is in C, and another in assembler to directly program the GPU. So I would say that to...
by Aran
Wed Feb 06, 2019 8:11 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 15089

Re: Spider-OS a new operating system

LdB, yes you win the optimization challenge :) I did the test with the execution of 8 dma channels, and it takes less than 10ms to copy a screen of 1920 * 1080 in 16bits. Well done ! As you suggest, I use a hidden screen to manage the overlay of windows, and also to avoid blinking when refreshing. B...

Go to advanced search