Other Parts Discussed in Thread: BQ79616
Hi.
Just wanted to let you know that there are some memset errors in the sample codes for BQ79616 and BQ79600 (UART and SPI).
The lines
memset(pData, 0, sizeof(pData));
use sizeof(pData), but pData is a Pointer to an array, passed as parameter. This means only the first "machine address width" bytes are being set to 0. Parameter bLen should have been used instead (but while considering the frame bytes and the TOTALBOARDS number).
This is minor since a successful following receive will overwrite that anyway.
Best regards