STM32L151CBT6 need help with SPI slave setup (no hal)
Setup:
- Master: PLD, SPI Frequency 4MHz
- Slave: STM32L151CBT6, SysClk 32MHz (this one uses the code below)
Hello Guys,
Below you can see my code. The Problem I have is that my configuration data which is 32 Bytes long is not received properly. For test reasons I send it back in the second half of a 64 Byte array.
The 1st byte of the received configuration data is a sent byte from previous received data. To be precicse its the 0x07 sent from the PLD of the start up phase below.
As a consequence the 32 Byte config data looks like this: [0x07, Config. Byte 1, ..., Config. Byte 31]. The 32th Byte is missing.
Can someone tell me what I am doing wrong?
