Hi,
I'm driving a simple GPIO output on MCU. The GPIO output acts as a chip select (CS, manually driven) pin for communicating by SPI to a small DAC chip.
My issue is that the output of said GPIO/CS pin is unstable when driven to low, which corrupts SPI communications, as seen by the following logic analyzer screenshot :

Of course, it's not something I can get a definitive answer here, but I'm looking to some advices about what I should do.
Could perhaps having a pull-up, a 22ohm terminal resistor, a small bypass capacitor say ~500pF on the line could be a solution?
It isn't my design, I only picked it up from someone else (the PCB I mean). One thing I noticed straight off is that the SPI lines are connected end-to-end (MCU to DAC & other chips) without any resistors/pull-ups.
And the traces are somewhat long (well, around 10-12cm).
It is a ATSAME70Q21B MCU. The MCU is on a Netburner MODM7AE70-200IR system on module card (for what it's worth), which is connected to the main board by 2x50pin headers.
I also have ADCs.
I initially saw this problem on ADCs, but to a lesser extent. What was weird with the ADCs is that the CS line would be fluctuating A LOT (like, a LOT) on 12MHz SCLK frequency, but when using 8MHz I was okay. 15MHz I had some here and there, 10MHz same, but 12MHz was really the worst. On 8MHz nothing happened.
On the DAC lines, it's different. I get them no matter what SCLK frequency I use. Some might be worse, but not as noticeable.
I wonder if I'm picking up noise. I used small wires soldered to VIAs to connect my logic analyzer, which could act as antennas. But I'm skeptical those are the issue.
Observing the picture, it seems like the CS fluctuations happen right on SCLK edges as well. Note that 3 bytes are sent on the line, during which CS is low, then CS is driven high again. No fluctuations occur when CS is high.
I'm looking for general advices on what to test or potential fixes/causes to have a better idea of what to do.