diff --git a/readme.txt b/readme.txt index 7e7765e8b..f1490f2f9 100644 --- a/readme.txt +++ b/readme.txt @@ -77,6 +77,8 @@ - FIX: Sector count incorrect in STM32G07/8 EFL driver (bug #1085). - FIX: Sector size incorrect in STM32F413 EFL driver (bug #1084). - NEW: Added dynamic reconfiguration API to lwIP bindings. +- FIX: Fixed wrong arguments for the cacheBufferInvalidate in the STM32 SPI + demo (bug #1086). - FIX: Fixed race condition in HAL MAC driver (bug #1083). - FIX: Fixed early interrupts enable in ARMv7-M port (bug #1081). - FIX: Fixed I2CD4 interrupt vectors are swapped versus I2CD1-I2CD3 (bug #1080). diff --git a/testhal/STM32/multi/SPI/main.c b/testhal/STM32/multi/SPI/main.c index 0ebfca436..6ac32604c 100755 --- a/testhal/STM32/multi/SPI/main.c +++ b/testhal/STM32/multi/SPI/main.c @@ -73,8 +73,8 @@ static THD_FUNCTION(spi_thread_1, p) { spiExchange(&PORTAB_SPI1, 1, txbuf, rxbuf); /* Atomic transfer operations. */ spiUnselect(&PORTAB_SPI1); /* Slave Select de-assertion. */ - cacheBufferInvalidate(&txbuf[0], /* Cache invalidation over the */ - sizeof txbuf);/* buffer. */ + cacheBufferInvalidate(&rxbuf[0], /* Cache invalidation over the */ + sizeof rxbuf);/* buffer. */ spiReleaseBus(&PORTAB_SPI1); /* Ownership release. */ } } @@ -101,8 +101,8 @@ static THD_FUNCTION(spi_thread_2, p) { spiExchange(&PORTAB_SPI1, 1, txbuf, rxbuf); /* Atomic transfer operations. */ spiUnselect(&PORTAB_SPI1); /* Slave Select de-assertion. */ - cacheBufferInvalidate(&txbuf[0], /* Cache invalidation over the */ - sizeof txbuf);/* buffer. */ + cacheBufferInvalidate(&rxbuf[0], /* Cache invalidation over the */ + sizeof rxbuf);/* buffer. */ spiReleaseBus(&PORTAB_SPI1); /* Ownership release. */ } } @@ -166,8 +166,8 @@ int main(void) { spiExchange(&PORTAB_SPI1, 512, txbuf, rxbuf); /* Atomic transfer operations. */ spiUnselect(&PORTAB_SPI1); /* Slave Select de-assertion. */ - cacheBufferInvalidate(&txbuf[0], /* Cache invalidation over the */ - sizeof txbuf);/* buffer. */ + cacheBufferInvalidate(&rxbuf[0], /* Cache invalidation over the */ + sizeof rxbuf);/* buffer. */ #endif /*