Go to advanced search

by macca
Fri Mar 06, 2015 5:12 pm
Forum: Italiano
Topic: Ampliare le seriali
Replies: 4
Views: 721

Re: Ampliare le seriali

Non credo sia possibile, a meno che tu non voglia pilotare i pin di I/O direttamente nel cosiddetto modo 'bit-bang', cosa che sconsiglierei a meno che ti accontenti di basse velocità di trasferimento. Il metodo più semplice è quello di usare adattatori USB, credo che esistano anche adattatori multi-...
by macca
Wed Feb 04, 2015 9:13 am
Forum: Bare metal, Assembly language
Topic: Task switching
Replies: 2
Views: 1230

Task switching

Hi, I would like to add a basic multi-thread support to my kernel, I wonder anyone did something like that already ? I don't need anything fancy, no semaphores or MMU support for now, just a way to start a thread giving a memory address and a stack pointer. It would be good if it supports hardware f...
by macca
Wed Feb 04, 2015 8:59 am
Forum: Italiano
Topic: Raspberry 2, dove?
Replies: 71
Views: 9943

Re: Raspberry 2, dove?

RS Components e Farnell Italia sono i rivenditori ufficiali, se non hanno scorte loro (Farnell avrà la disponibilità dal 14 febbraio, secondo il sito) dubito che altri ne abbiano. Puoi comunque ordinarlo ora e aspettare che arrivi. E' un prodotto nuovo appena uscito, ci si sono fiondati a migliaia e...
by macca
Thu Dec 04, 2014 10:59 am
Forum: Italiano
Topic: Robot raspberry pi
Replies: 3
Views: 996

Re: Robot raspberry pi

Giusto per informazione, ElettronicaIn di questo mese ha presentato uno shield per Raspberry che monta un Arduino completo:

https://www.futurashop.it/novit%C3%A0-i ... 7305-randa

Potrebbe essere utile per un progetto come questo.
by macca
Thu Nov 27, 2014 2:06 pm
Forum: Bare metal, Assembly language
Topic: Introducing USPi - A bare metal USB driver written in C
Replies: 73
Views: 23563

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

Do you have test applications for any of these devices? Sample applications for keyboard and joysticks can be found on my repository: https://github.com/maccasoft/raspberry-pi template/main.c Implements the initialization and raw keyboard handler SDL2 Implements both keyboard and joystick interface...
by macca
Wed Nov 12, 2014 9:36 am
Forum: Bare metal, Assembly language
Topic: Abbaye des Morts game and libraries ported to baremetal
Replies: 4
Views: 1944

Re: Abbaye des Morts game and libraries ported to baremetal

Your version is awesome, but only respond to one key press. After that, the keyboard doesn't work. Any idea? The project is now using the new USPi USB library that should have a better compatibility with keyboards. Both my keyboards, the Logitech and the wireless combo are working well now. Check i...
by macca
Sun Nov 09, 2014 9:45 am
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 266
Views: 77507

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

I'm sorry there is not a tool. I'm also astonished how quick it can be converted that way by hand. Brilliant, I never thought it was that easy. Can you tell me which parts you would like to exclude? At the moment I only see the functions in util.h (e.g. memcpy) which have a common interface. I have...
by macca
Sat Nov 08, 2014 4:28 pm
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 266
Views: 77507

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

There is also a C port of the Circle USB library on GitHub: https://github.com/rsta2/uspi This library can be used in a C bare metal environment. It has currently the same features as in Circle Step7. Awesome! I have replaced the C++ implementation with that one and looks it is working well. I don'...
by macca
Fri Oct 31, 2014 10:36 am
Forum: Bare metal, Assembly language
Topic: Abbaye des Morts game and libraries ported to baremetal
Replies: 4
Views: 1944

Re: Abbaye des Morts game and libraries ported to baremetal

Your version is awesome, but only respond to one key press. After that, the keyboard doesn't work. Any idea? Could be an issue with CSUD (the USB driver), it is known that not all keyboards are working correctly with it. I'm using a Logitech K120 keyboard and it is working, another keyboard (a wire...
by macca
Sat Oct 25, 2014 5:58 pm
Forum: Bare metal, Assembly language
Topic: esp8266 wifi serial module
Replies: 18
Views: 20723

Re: esp8266 wifi serial module

I have a fairly small USB stack which works on Model B and B+ with the onboard ethernet device (also with USB keyboard and mass storage device = USB flash stick) perhaps which could help. It supports control, bulk and interrupt transfers. I would like to give it to the public on GitHub. But it is w...
by macca
Sat Oct 11, 2014 8:16 am
Forum: Bare metal, Assembly language
Topic: Abbaye des Morts game and libraries ported to baremetal
Replies: 4
Views: 1944

Abbaye des Morts game and libraries ported to baremetal

Hi, Over the past weeks I worked on porting this game to baremetal, and now I have released a first version based on the original source code made by David "Nevat" Lara for GNU/Linux. For those who don't know, Abbaye des Morts is a freeware platform game made by LocoMalito (with the help of Gryzor87...
by macca
Sat Sep 20, 2014 7:50 am
Forum: Bare metal, Assembly language
Topic: Audio through VideoCore
Replies: 7
Views: 1832

Re: Audio through VideoCore

Well, are days that I'm looking at the kernel source to find where pwm is used. None of the sources I have identified belonging to bcm2835 / 2708 and sound have anything that resembles the pwm initialization done in baremetal programs. I can't even find the register addresses! All I have found so fa...
by macca
Fri Sep 19, 2014 5:23 pm
Forum: Bare metal, Assembly language
Topic: Audio through VideoCore
Replies: 7
Views: 1832

Re: Audio through VideoCore

I'm not sure to fully understand the source code, but from the definitions doesn't seems specific to hdmi. Looks like both analog and hdmi are going through videocore, isn't that correct ?
by macca
Fri Sep 19, 2014 4:54 pm
Forum: Bare metal, Assembly language
Topic: Audio through VideoCore
Replies: 7
Views: 1832

Audio through VideoCore

Hi,

I'm looking at the Linux kernel sources and noticed that the audio playback seems to go through videocore using the mailbox interface. Is there some documentation on the tags and parameters for audio playback ? Any bare metal source that can be used to start experimenting with it ?
by macca
Thu Sep 18, 2014 3:43 pm
Forum: Bare metal, Assembly language
Topic: PWM data/range/clock relationship
Replies: 3
Views: 1827

Re: PWM data/range/clock relationship

That's a bit of a help, however, if I understand it correctly, it is not possible to get 44100Hz 16bit with pwm, and with 16bits range the sample rate drops considerably.

For what I want to do, 14 bits is enough, I don't think that parametrizing the code is worth the effort.

Thanks for your help.
by macca
Tue Sep 16, 2014 1:57 pm
Forum: Bare metal, Assembly language
Topic: DMA Interrupt Enable
Replies: 4
Views: 1944

Re: DMA Interrupt Enable

Got it! The DMA IRQ now is working.

Thanks!
by macca
Tue Sep 16, 2014 11:48 am
Forum: Bare metal, Assembly language
Topic: DMA Interrupt Enable
Replies: 4
Views: 1944

Re: DMA Interrupt Enable

Sorry, but, where are you reading the irq mapping ? At page 113, the "ARM peripherals interrupts table" has a lot of blank entries, including 16 to 28 (29 is listed as aux_int). And the notes says that empty entries should not be enabled as they will interfere with GPU operation. Maybe I have an out...
by macca
Tue Sep 16, 2014 9:45 am
Forum: Bare metal, Assembly language
Topic: DMA Interrupt Enable
Replies: 4
Views: 1944

DMA Interrupt Enable

Hi, I would like to receive an interrupt when the DMA transfer complets, I have set DMA_INTEN in the control block, the interrupt vectors are set and working (tested with a simple timer) but doesn't seems to receive an interrupt when the transfer ends. I guess that I have not enabled the global DMA ...
by macca
Mon Sep 15, 2014 8:55 am
Forum: Bare metal, Assembly language
Topic: PWM data/range/clock relationship
Replies: 3
Views: 1827

PWM data/range/clock relationship

Hi, I'm experimenting with audio pwm output using the source code provided by krom (PeterLemon) as the base for a port to C, it is working very well, however I can't understand the relationship between the pwm clock, range and data. For example I see that 12, 13 and 14 bit 44100/mono output are all ...
by macca
Thu Aug 14, 2014 1:50 pm
Forum: Bare metal, Assembly language
Topic: Undefined reference to 'memset'
Replies: 5
Views: 4623

Re: Undefined reference to 'memset'

Have you looked at the call trace and figure out why it's calling memset if you're not? Don't know how to do that, anyway I found the cause: -ftree-loop-distribute-patterns Perform loop distribution of patterns that can be code generated with calls to a library. This flag is enabled by default at -...
by macca
Thu Aug 14, 2014 12:14 pm
Forum: Bare metal, Assembly language
Topic: Undefined reference to 'memset'
Replies: 5
Views: 4623

Re: Undefined reference to 'memset'

Installed arm-none-eabi-gcc (4.8.2-14ubuntu1+6) 4.8.2 but still get the undefined reference to 'memset'.
by macca
Thu Aug 14, 2014 10:27 am
Forum: Bare metal, Assembly language
Topic: Undefined reference to 'memset'
Replies: 5
Views: 4623

Undefined reference to 'memset'

Hi, I'm trying to resume an old project based on the code from pi-baremetal https://github.com/brianwiddas/pi-baremetal but the compiler throws that "undefined reference to 'memset'" error. I tried to download the original pi-baremetal code and compile that, but I get the same error. The project was...
by macca
Fri Jan 24, 2014 10:02 am
Forum: Italiano
Topic: Schermo bianco e nero
Replies: 8
Views: 2070

Re: Schermo bianco e nero

Ma se reinstalli Raspbian, lo schermo torna a colori ?
Se si, evidentemente è un problema di questa "kali linux" (che non ho idea di cosa sia) che magari non ha il firmware aggiornato.
by macca
Tue Jan 21, 2014 2:46 pm
Forum: Italiano
Topic: display capacitivo dove trovarlo?
Replies: 2
Views: 739

Re: display capacitivo dove trovarlo?

A me intriga moltissimo questo: http://www.adafruit.com/products/1601 Non ho idea di che prestazione possa avere trattandosi una comunicazione SPI ma, se ho capito bene, si dovrebbe interfacciare in modo trasperente al sistema operativo, quindi senza bisogno di pilotarlo dal programma. 5-10 giorni p...
by macca
Wed Jun 05, 2013 10:58 am
Forum: Italiano
Topic: pinout error
Replies: 2
Views: 643

Re: pinout error

Sei sicuro di pilotare e/o testare il pin giusto ?
Se non vado errato il 3 è collegato all'I2C, vedi http://elinux.org/RPi_BCM2835_GPIOs

Go to advanced search