Your code looks OK. I have found that fast SPI can be problematic with longer cable runs. If attaching the Logic analyzer changes results that suggests you are marginal. I can usually connect the Logic without altering results.
Your code looks OK. I have found that fast SPI can be problematic with longer cable runs. If attaching the Logic analyzer changes results that suggests you are marginal. I can usually connect the Logic without altering results.