Hello
1/ If you are trying to run that prog under linux, peripherals are protected
you cannot access directly to harrdware.
you can try sudo ./main
Bur what append at the end of the prog ???
2/ That forum is a baremetal forum: Then no linux ...
Phil95
Search found 141 matches
- Tue Mar 07, 2017 4:43 pm
- Forum: Bare metal, Assembly language
- Topic: OK01 ACT LED + Raspberry Pi 2 Model B
- Replies: 7
- Views: 2026
- Wed Jan 18, 2017 7:41 pm
- Forum: Bare metal, Assembly language
- Topic: RPI3 cache usb problem
- Replies: 8
- Views: 2222
Re: RPI3 cache usb problem
Thank you for your answer. in fact my software was running well if I changed every time the DMA buffer. That solution was not suitable. But I have solved that problem changing the DMA buffer address: for RPI 1: adrbuffer = adrbuffer | 0x40000000 for RPI 2 and 3: adrbuffer = adrbuffer | 0xc0000000 Ye...
- Mon Jan 02, 2017 2:41 pm
- Forum: Bare metal, Assembly language
- Topic: CSUD - Chadderz's Simple USB Driver (Source)
- Replies: 73
- Views: 27592
Re: CSUD - Chadderz's Simple USB Driver (Source)
Hello LdB
I'm interested by your use of CSUD:
- wich RPI are you using ? RPI 2/3 ?
- wich version of compiler are you using ?
- Do you have a sample program with your mouse driver ?
Thank's for your answer
Philippe
I'm interested by your use of CSUD:
- wich RPI are you using ? RPI 2/3 ?
- wich version of compiler are you using ?
- Do you have a sample program with your mouse driver ?
Thank's for your answer
Philippe
- Sat Dec 31, 2016 4:13 pm
- Forum: Bare metal, Assembly language
- Topic: Changing the Proc Mode
- Replies: 7
- Views: 2497
Re: Changing the Proc Mode
I wrote that code in 2015 for the RPI 2, and I found
my informations with examples in the web (RPI forum and WEB)
Effectively, the technical documentation is not clear on the subject.
Then a lot of tests ...
Philippe
my informations with examples in the web (RPI forum and WEB)
Effectively, the technical documentation is not clear on the subject.
Then a lot of tests ...
Philippe
- Fri Dec 30, 2016 6:17 pm
- Forum: Bare metal, Assembly language
- Topic: Changing the Proc Mode
- Replies: 7
- Views: 2497
Re: Changing the Proc Mode
Hello Sorry, my printf routine is not available. but look at Test1 to understand how it is working... You can call LeaveHypervisor() to go from Hypervisor mode to Supervisor mode Philippe U32 GetCPSR() // ********* { asm("mrs r0,CPSR\n"); } void LeaveHypervisor() // ***************** { asm...
- Mon Dec 26, 2016 8:23 pm
- Forum: Bare metal, Assembly language
- Topic: RPI3 cache usb problem
- Replies: 8
- Views: 2222
Re: RPI3 cache usb problem
I have tested with DSB ans DMB but the problem is the same ...
Anyway thank you for your help
Philippe
Anyway thank you for your help
Philippe
- Mon Dec 26, 2016 6:53 pm
- Forum: Bare metal, Assembly language
- Topic: RPI3 cache usb problem
- Replies: 8
- Views: 2222
Re: RPI3 cache usb problem
I'm not sure how it is working and documentation is not clear.
I have tried some routines but they are not working.
Philippe
I have tried some routines but they are not working.
Philippe
- Mon Dec 26, 2016 6:23 pm
- Forum: Bare metal, Assembly language
- Topic: RPI3 cache usb problem
- Replies: 8
- Views: 2222
Re: RPI3 cache usb problem
Thank's for your answer
I have tried to put that buffer static or in the stack.
I have checked that this buffer is effectively modified, but
the problem seems be a cache problem.
Philippe
I have tried to put that buffer static or in the stack.
I have checked that this buffer is effectively modified, but
the problem seems be a cache problem.
Philippe
- Mon Dec 26, 2016 2:51 pm
- Forum: Bare metal, Assembly language
- Topic: RPI3 cache usb problem
- Replies: 8
- Views: 2222
RPI3 cache usb problem
Hello (all numbers are in hexadecimal) I'm porting to RPI3 my old USB driver that was runing in RPI1. It is working, but I have cache problems. Normally an enumeration is begining with 2 get device parameter: - the first with length of 8 bytes to get the max packet size response 12 01 00 02 09 00 02...
- Thu Dec 22, 2016 7:57 am
- Forum: Bare metal, Assembly language
- Topic: Autodetect IO Base Address code
- Replies: 3
- Views: 1813
Re: Autodetect IO Base Address code
Hello
Another (non destructive) solution:
if (*0x20215010 == 0x61757830) // "aux0"
BaseIoAddress = 0x20000000;
if (*0x3f215010 == 0x61757830) // "aux0"
BaseIoAddress = 0x3f000000;
Philippe
Another (non destructive) solution:
if (*0x20215010 == 0x61757830) // "aux0"
BaseIoAddress = 0x20000000;
if (*0x3f215010 == 0x61757830) // "aux0"
BaseIoAddress = 0x3f000000;
Philippe
- Fri Mar 18, 2016 2:58 pm
- Forum: Bare metal, Assembly language
- Topic: RPI3 baremetal
- Replies: 13
- Views: 7275
Re: RPI3 baremetal
Hello, I have simplified and adapted software of Vanvught to blink ACT led of PI3 Thanks to Arjan for the reference Philippe org $8000 main: mov sp, #0x8000 bl LedInit Boucle: bl LedOn mov r0, #500 bl Delay bl LedOff mov r0, #500 bl Delay b Boucle align 16 Request: dw 0x1c dw 0 dw 0x00040010 dw 4 dw...
- Sun Mar 13, 2016 6:10 pm
- Forum: Bare metal, Assembly language
- Topic: RPI3 baremetal
- Replies: 13
- Views: 7275
Re: RPI3 baremetal
Thanks for your links, I want to
analyse them ...
Philippe
analyse them ...
Philippe
- Fri Mar 11, 2016 1:32 pm
- Forum: Bare metal, Assembly language
- Topic: RPI3 baremetal
- Replies: 13
- Views: 7275
Re: RPI3 baremetal
Many thanks for that information.
Do you know where I can found the differences between RPI 3 and RPI 2 ?
Philippe
Do you know where I can found the differences between RPI 3 and RPI 2 ?
Philippe
- Fri Mar 11, 2016 11:28 am
- Forum: Bare metal, Assembly language
- Topic: RPI3 baremetal
- Replies: 13
- Views: 7275
RPI3 baremetal
Hello, I'm trying to adapt my baremetal progs to RPI3. - I build a SD card with Jessie of 26/02. The card boot Jessie correctly. - I replace kernel.img and kernel7.img with a small prog to flash red and green leds. - I try that SD on a RPI2 and it is working well. - When I try that SD on RPI3, I hav...
- Wed Mar 09, 2016 6:14 pm
- Forum: Troubleshooting
- Topic: 2 RPI3 with 2 SD both not booting
- Replies: 29
- Views: 8354
Re: 2 RPI3 with 2 SD both not booting
Hello, I have received today my RPI3 from RS. - without SD card, screen black - OK - with SD card Jessie 26 02 16, color mire but no activity on green led - with SD card Jessie 21 11 15, color mire and 4 long flash + 4 short flask These 2 SD cards are working in RPI1 and RPI2 without problem. Alim i...
- Mon Feb 29, 2016 3:32 pm
- Forum: Bare metal, Assembly language
- Topic: RPI2 speed
- Replies: 17
- Views: 3883
Re: RPI2 speed
Thank's for your answer After a lot of tests, I have found: - I'm not in SECURE MONITOR mode but in HYPERVISOR mode And I have not found solution to leave that mode and switch to a more conventionnal mode. - Copy vectors from 0x8000 to 0x0000 is not sufficient; you need program HVBAR to 0 too; when ...
- Wed Feb 24, 2016 3:34 pm
- Forum: Bare metal, Assembly language
- Topic: RPI2 speed
- Replies: 17
- Views: 3883
Re: RPI2 speed
@rst: Thank's for your answer, I have tried arm_control=0x1000 but no change in perf; And the perf difference is not 15 % but more than 600 % After some investigations, I have found: 1/ Proc is in SECURE MONITOR mode. I cannot change that mode using msr CPSR ... That was working in RPI1 2/ I have te...
- Sat Feb 20, 2016 9:54 am
- Forum: Bare metal, Assembly language
- Topic: RPI2 speed
- Replies: 17
- Views: 3883
Re: RPI2 speed
Many thanks for your answers. I have tried with: 0xe1a00000 mov r0, r0 0xeaffffff bra $ + 1 0xe2800001 add r0, #1 And the problem is the same. I think the arm is in SECURE MONITOR mode when starting kernel7.img and it is not possible to alter some P15 registers. - what do you think about it ? - wich...
- Fri Feb 19, 2016 10:00 am
- Forum: Bare metal, Assembly language
- Topic: RPI2 speed
- Replies: 17
- Views: 3883
RPI2 speed
Hello I have worked on RPI 1 and I'm testing RPI 2 today. I wrote a very simple prog to test performance of my boards: an assembly routine build dynamically of 1000 NOPs, and that routine is called 1000 times. Then the test is how long time to execute 1000000 NOPS. Results are: RPI1: 9212 microsec (...
- Sun Dec 21, 2014 12:40 pm
- Forum: C/C++
- Topic: serial communication with xbee problem
- Replies: 73
- Views: 22326
Re: For serial communication
Replace
if(i==65) break;
by
if(i==66) break;
or
if(i>=65) break;
When you exit from i loop, i is 66 ...
Philippe
if(i==65) break;
by
if(i==66) break;
or
if(i>=65) break;
When you exit from i loop, i is 66 ...
Philippe
- Thu Nov 27, 2014 5:03 pm
- Forum: Français
- Topic: dongle WIFI TP-link wn823n
- Replies: 9
- Views: 2134
Re: dongle WIFI TP-link wn823n
Bonjour
Que donne la commande ifconfig ?
Philippe
Que donne la commande ifconfig ?
Philippe
- Thu Oct 02, 2014 9:03 am
- Forum: Français
- Topic: Wifi - Raspbian : déconnexions itempestives
- Replies: 10
- Views: 4444
Re: Wifi - Raspbian : déconnexions itempestives
Il y a une option que j'utilise dans interfaces:dans la description de wlan0:
"wireless-power off"
bon courage
Philippe
"wireless-power off"
bon courage
Philippe
- Thu Aug 28, 2014 2:33 pm
- Forum: Français
- Topic: Liaison série entre Raspberry
- Replies: 8
- Views: 3465
Re: Liaison série entre Raspberry
Ca veut dire que le Tx du 2 et le Tx du 3 sont branchés sur le Rx du 1.
Or on ne peut pas connecter directement 2 sorties sur une entrée.
Et le Tx du 2 et le Tx du 3 sont en court-circuit ...
Philippe
Or on ne peut pas connecter directement 2 sorties sur une entrée.
Et le Tx du 2 et le Tx du 3 sont en court-circuit ...
Philippe
- Thu Aug 28, 2014 8:31 am
- Forum: Français
- Topic: [problème de lecture sur GPIO] IR + RF
- Replies: 40
- Views: 5675
Re: [problème de lecture sur GPIO] IR + RF
Bonjour Il faudrait mesurer les tensions en sortie de récepteur dans les 4 cas: 3V bouton sorti 3V bouton appuyé 5V bouton sorti 5V bouton appuyé Il est vraisemblable que la tension bouton sorti est supérieure en 5V qu'en 3V Si cette tension est voisine du seuil de basculement du GPIO, elle explique...
- Fri Aug 15, 2014 12:13 pm
- Forum: Français
- Topic: [Noob inside] Piloter en 3G ses radiateurs
- Replies: 6
- Views: 2136
Re: [Noob inside] Piloter en 3G ses radiateurs
Peut etre pas si facile que ca ... Certains FAI vendent des modems USB 3G; ca marche sans doute avec Windows, avec un RPI je ne sais pas (ORANGE par exemple). De meme certaines boutiques vendent de tels modems (on a juste a ajouter une carte SIM), mais est-ce que ca marche sans windows ? Un lien peu...