I'm using RP2040 pi pico on Arduino Mbed environment.
I hope to control 8 SPI devices by using single SPI bus and 8 Chip Select gpio. The SPI related program is very simple like as bellow.
The time between Chip Select and first SPI_CLK is too longer than my expectation (less than 1us) and I'm looking for the solution but did not find yet. I also changed digitalWrite() function to gpio_clr_mask() to reduce delay time but this is not key impact factor.
Check the datasheet, if the SPI is working, maybe it's the problem in the GPIO, when it operates the CS pin, there is usually a time to write to the pins, try looking for fast writing, usually have to directly manipulate the microcontroller registers that control the pins.
Thanks for your comment and sharing datasheet. I already try direct gpio pin access for chip select and this only reduce total 500ns delay time. There are big delay between CS to CLK around 5 to 7 us.