dwelch67 / raspberrypi

Raspberry Pi ARM based bare metal examples
2.71k stars 486 forks source link

uart01.c - Wiring to AUX_IER_REG doesn't do anything? #16

Closed nkolban closed 8 years ago

nkolban commented 8 years ago

Looking at the uart01.c sample, I see we write 0 to AUX_MU_IER_REG. When I compare that to the BCM2835 spec, it appears that doesn't do anything or have any meaning. Is this true?

dwelch67 commented 8 years ago

https://www.raspberrypi.org/forums/viewtopic.php?f=72&t=72260 has a good list of resources http://elinux.org/BCM2835_datasheet_errata shows mistakes in the broadcom document. see the p12 errata. So the write is there to disable interrupts. Why do I write that register twice? Good question, I dont know maybe moved where I wrote it and didnt delete the prior line.

nkolban commented 8 years ago

Ahha ... thank you sir ... going throughthe errata sheet now.... awesome response speed ... ty.

CJSoldier commented 8 years ago

Hi,@dwelch67. I sent you an e-mail,I guess you didn't receive it. I followed bliker01 example,but I can't blink my led. I've already format my tf card as fat32 and I copied bootcode.bin and start.elf and kernel.img(blinker01.bin). I use Raspberry PI 2 Model B. I tried many times,it didn't work. Should I modify anything?

dwelch67 commented 8 years ago

yeah, try the beeplus example instead. the led moved from gpio16 to gpio47 at some point (B+) and I have not gone and re-worked everything to handle the two peripheral address spaces, and other differences.

dwelch67 commented 8 years ago

the raspberry pi 2 also has a different address space so, hmmm bootloader07 has a blinker example possibly always builds both or you have to choose how to build so it builds the raspberry pi 2 blinker. so there are three major variations, original processor/address space with gpio16, original with gpio47, and new processor/address space with gpio47.

dwelch67 commented 8 years ago

if nothing else I need to go back through and update the readme so say what combination they support. if not go through and somehow come up with a way to solve all the combinations.