Skip to main content
antonius
Associate III
November 22, 2015
Question

HAL_SPI_transmit 32 bytes ?

  • November 22, 2015
  • 3 replies
  • 737 views
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.
    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    November 22, 2015
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    antonius
    antoniusAuthor
    Associate III
    November 23, 2015
    Posted on November 23, 2015 at 14:40

    Does it detect end of array itself ? thanks

    Tesla DeLorean
    Guru
    November 23, 2015
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..