I want to use the rpi zero for generating two square waves. Speed between 500 kHz and 1700 kHz. No problem using GPIO4 (pin 7). With only a few lines bare metal assembler it works fine. I used the information from page 102 in the BCM2835 Peripheral manual.
Why doesn’t the same method work with GPIO5 ?. (gpclk1, pin 29) I configured GPIO5 as alternative function 0, in my case a second general purpose clock. I used twice an integer division from PLL C (1000 MHz) to come as close as possible to the desired frequency without having too much jitter.
GPIO4 works very nice for driving external circuits. Is it possible to use a rpi for generation a second square wave with another frequency?