2023-08-28 03:25 PM
Hi - I have a new board with very minimal parts other than a STM32L451VET6 micro and a SPI LCD.
I have implemented SPI and the micro is sending data when I single step the program. When I just let it run it Sends exactly three and one half bytes... every time. I am using the following code :
for testing I added a HAL_Delay(500); line right after the SPI write and when single stepping it locked up on that line...
Any ideas are appreciated !!
Thanks
Solved! Go to Solution.
2023-08-28 05:11 PM - edited 2023-08-28 05:12 PM
You could try initializing it in two-line mode and leave MISO disconnected. I don't think there are bugs/issues in master transmit-only like there are for receive-only, but there could be.
Would be nice to see more of the relevant code and traces of the signals you're seeing, make sure word size is configured correctly.
2023-08-28 03:40 PM
> HAL_GPIO_WritePin(DISP_CS_GPIO_Port, DISP_CS_Pin, GPIO_PIN_RESET); // set CS low
Why is this? You've configured hardware NSS output on PB0. Is DISP_CS defined as PB0?
2023-08-28 05:11 PM - edited 2023-08-28 05:12 PM
You could try initializing it in two-line mode and leave MISO disconnected. I don't think there are bugs/issues in master transmit-only like there are for receive-only, but there could be.
Would be nice to see more of the relevant code and traces of the signals you're seeing, make sure word size is configured correctly.
2023-08-29 07:06 AM
yes
2023-08-29 07:11 AM
Its fixed! I had tried using Master Full-Duplex yesterday. But before I was using NSS hardware output.
So ... using NSS hardware out, and setting it for Master full-duplex is now working.
Thanks Guys !!