Hey everyone! I have been trying to use SPI on my Teensy4.0 that is running at 600MHz at faster speeds then 5MHz but I can't even manage to get square waves at this speed. The code is a simplified version of what I'm trying to do but the behavior is same in the code provided below and the more cluttered code that I'm using in the actual device. Please take a look at the screenshots and you'll understand what I mean. I captured the waveforms using Saleae Logic Pro 16 Logic analyzer.
How can I manage to get cleaner signals here?
Thank you very much for your answers.
Edit: I'm using the latest Teensyduino software
1.5MHz SCK

2.5MHz SCK

5MHz SCK

Capture Config & Device

Code:
#include "SPI.h"
//#include <SPI.h> gives the same result
SPISettings spiWrite(5000000, MSBFIRST, SPI_MODE0);
byte printBytes[2] = {0, 0};
void setup() {
SPI.begin();
// put your setup code here, to run once:
}
void loop() {
SPI.beginTransaction(spiWrite);
SPI.transfer(printBytes[1]);
SPI.transfer(printBytes[0]);
delayNanoseconds(250);
SPI.endTransaction();
// put your main code here, to run repeatedly:
}