Clock speed, UART, and booting
Posted: Mon Aug 05, 2024 6:02 pm
Although I'm a complete novice when it comes to bare-metal PI, however, I do have experience on the Arduino. I've learned a lot from going through the demos, but I'm still not quite sure what clock speed means. According to the specs, the CPU in my PI4-B is a BCM 2711 with a 1.5 GHz speed. I did exactly that to find garbage when I calculated the register value for AUX_MU_BAUD_REG. Then, I used a suggested value from a YouTube video (based on a 500 MHz speed), and that's how it worked. Okay, so perhaps the speed of the CPU and the board differ. Strangely, I have to rely on thedata sheet statements because my application needs some real-time capabilities, but I've never seen anything that allows me to assume the
Now that everything on the SD Card has been cleared out, here is my SD Boot media:
fixup4.dat
start4.elf
#miniuart-bt.dtbo
bcm2711-rpi-4-b.dtb
config.txt
kernel.img
That is what's in the config.txt:
arm_64bit=1
uart_2ndstage=1
#dtoverlay=miniuart-bt
kernel=kernel.img
Even though I can see the kernel operating (it's just reading from the UART and returning the character), it's garbage. It doesn't matter if the miniuart-bt is included in the configuration.
Would someone kindly point me in the right direction and explain what clock speed the board is operating at so that I can locate this information?
Now that everything on the SD Card has been cleared out, here is my SD Boot media:
fixup4.dat
start4.elf
#miniuart-bt.dtbo
bcm2711-rpi-4-b.dtb
config.txt
kernel.img
That is what's in the config.txt:
arm_64bit=1
uart_2ndstage=1
#dtoverlay=miniuart-bt
kernel=kernel.img
Even though I can see the kernel operating (it's just reading from the UART and returning the character), it's garbage. It doesn't matter if the miniuart-bt is included in the configuration.
Would someone kindly point me in the right direction and explain what clock speed the board is operating at so that I can locate this information?