korginc / nts-1-customizations

Official repository for hardware customizations of the Nu:Tekt NTS-1 digital kit
BSD 3-Clause "New" or "Revised" License
147 stars 34 forks source link

slow down the clock of GPIO pins for SPI #8

Open boochow opened 4 years ago

boochow commented 4 years ago

This PR fixes unstable SPI communication. GPIO_SPEED_FREQ_HIGH is for range 10 MHz to 50 MHz communication and is too fast for the communication between NTS1 main board and control panel (its speed is 1MHz). I experienced SPI communication trouble when I connected a Nucleo-F030 board to NTS1. Slowing down the GPIO pin clock made the communication stable.

jw-smaal commented 3 years ago

I can confirm this PR improves stability and reliability using the custom panel board. I have tested this with code compiled using the MBED OS platform.