Go to advanced search

by macca
Sun Nov 09, 2014 9:45 am
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 231
Views: 56760

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: 231
Views: 56760

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: 1830

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: 20108

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: 1830

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: 1642

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: 1642

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: 1642

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: 1677

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: 1791

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: 1791

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: 1791

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: 1677

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: 4205

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: 4205

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: 4205

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: 1944

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: 687

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: 614

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
by macca
Fri May 24, 2013 8:44 am
Forum: Italiano
Topic: errore compilatore
Replies: 11
Views: 1457

Re: errore compilatore

Ah scusa per la confusione. Riguardo ai puntatori, se ti riferisci a getDisplayPoint, il puntatore viene usato alla riga 1406, quindi è probabile che non sia quello. Come ho detto non capisco dove le variabili vengono inizializzate (mai assumere che una variable è inizializzata a zero) e nella chiam...
by macca
Fri May 24, 2013 6:57 am
Forum: Italiano
Topic: errore compilatore
Replies: 11
Views: 1457

Re: errore compilatore

Beh grazie, ma non avendo un LCD di quel tipo non posso farci niente (o dovrei vedere qualcosa anche senza ?). Evidentemente avevo anche capito male il problema, credevo che fosse l'output ma chiaramente era qualcos'altro. Da quello che vedo, comunque, fai un po' di mix tra matrix e matrixPtr, il ch...
by macca
Sun May 19, 2013 6:59 am
Forum: Italiano
Topic: errore compilatore
Replies: 11
Views: 1457

Re: errore compilatore

Aggiungi un \n alla printf che non visualizza. L'output è bufferato e il display visualizza solo dopo un \n oppure quando il buffer è pieno (oppure quando termina il programma, anche se a volte mi è capitato che non lo facesse).
Si può anche disabilitare il buffer se ti serve un output immediato.
by macca
Tue May 14, 2013 5:56 am
Forum: Italiano
Topic: Chiavetta huawey
Replies: 6
Views: 2527

Re: Chiavetta huawey

Non ti so aiutare con il problema specifico, ma la prima cosa da fare in questi casi è guardare /var/log/messages per vedere se e come la chiavetta viene riconosciuta dal kernel e se ci sono indicazioni particolari. Per esempio con una chiavetta WiFi che avevo nel cassetto mi ha segnalato che non c'...
by macca
Mon May 13, 2013 6:51 am
Forum: Italiano
Topic: boot loop
Replies: 11
Views: 1707

Re: boot loop

I problemi con gli alimentatori non sono dovuti semplicemente all'amperaggio ma a tutta una serie di fattori collegati alla qualità dei componenti utilizzati. Per esempio, ci sono alimentatori che dichiarano 5 volt in uscita ma in realtà escono 6 volt, oppure sotto carico la tensione scende a 4.5 o ...
by macca
Mon May 13, 2013 6:29 am
Forum: Italiano
Topic: Alcuni pin non funzionanti
Replies: 4
Views: 842

Re: Alcuni pin non funzionanti

Sono collegati alla funzione SPI quindi si attivano (diventano 0) quando si comunica con i rispettivi canali SPI.

Go to advanced search