Skip to content

Commit c96fbeb

Browse files
committed
STM32: EMAC: allow compiling on MCUs without DCACHE
1 parent be22013 commit c96fbeb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

connectivity/drivers/emac/TARGET_STM/stm32xx_emac.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,10 @@ int STM32_EMAC::low_level_input(emac_mem_buf_t **buf)
654654
/* Build Rx descriptor to be ready for next data reception */
655655
HAL_ETH_BuildRxDescriptors(&EthHandle);
656656

657+
#if !(defined(DUAL_CORE) && defined(CORE_CM4))
657658
/* Invalidate data cache for ETH Rx Buffers */
658659
SCB_InvalidateDCache_by_Addr((uint32_t *)RxBuff.buffer, frameLength);
660+
#endif
659661

660662
*buf = pbuf_alloc(PBUF_RAW, frameLength, PBUF_POOL);
661663
if (*buf) {

0 commit comments

Comments
 (0)