cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_SPI_transmit 32 bytes ?

antonius
Senior
Posted on November 22, 2015 at 22:33

 

 

The original post was too long to process during our migration. Please click on the attachment to read the original post.
3 REPLIES 3
Posted on November 22, 2015 at 22:55

...

  HAL_SPI_Transmit(&hspi1, p, 32, 1000); // Send SPI  x32 byte

  p += 32;

...

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
antonius
Senior
Posted on November 23, 2015 at 14:40

Does it detect end of array itself ? thanks

Posted on November 23, 2015 at 17:49

It does not, you need to merge it back into your loop, which is currently bounding the array pointer, but is attempting to send the entire array at each iteration and not advancing the pointer. As explained to you previously the third parameter is the number of bytes to send.

The question seemed to be ''how do I send this 32 bytes at a time'', but I'm afraid I don't want to get pulled into your project or have to rewrite it all.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..