-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions about Mini UART in lesson 1 #75
Comments
|
@bl4ckout31 - thanks for the answer! |
For #2, I now see that the alt functions aren't consecutive nor in order. Might be useful to call this out. It required closer examination of the table to notice the peculiar order. For reference using decimal values alt0 = 4, alt1 = 5, alt2 = 6, alt3 = 7, alt4 = 3, alt5 = 2. Seems like madness! Though I wonder if there's a reason or story behind it :) |
Thanks @s-matyukevich, I can help review any change you make. Thanks #bl4ckout31, I suppose I was expecting the chart to mention Mini UART and PL011 UART, rather than UART 0 and UART 1. I think reading the UART section I can then figure out the difference, and perhaps that in itself is a good exercise in reading technical documentation :) |
I've successfully built the first lesson and run it on my Raspberry PI. But as I was reading through, two questions related to the UART configuration came up. Perhaps they can be clarified in the doc.
The lesson states that we want to use the Mini UART and that pins 14 and 15 have the TDX1 and RDX1 functions. So after doing the lesson I think I understand that TDX0 maps to the PL11 UART and TDX1 maps to the Mini UART, but this was not clear when I read through the first time. Also the Broadcom documentation doesn't explicitly state this either.
Related to Check whether the RPi OS works on Raspberry Pi 3 Model B+ #1, it mentions that "This means that if we select alternative function 5, they will use Mini UART." But the code shows that a 2 is moved into GPFSEL1, which I thought would set alt2. Instead I expect a 5 to select alt5. Assuming I'm missing something, because 2 does seem to work, I think it an explanation why 2 is set instead of 5 would make it clearer.
I think this is such a great resource, and agree completely with your introduction. Having a simple starting place to understand how an OS works is extremely useful to me. Thanks for all the work so far, and look forward to the current and future lessons.
Thanks,
Paul
The text was updated successfully, but these errors were encountered: