Skip to content

Commit 002d9c0

Browse files
The IRQ temp callback buffer needs 4-byte align
We write pointers to the data, make sure it doesn't bus fault
1 parent b4ec924 commit 002d9c0

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

lib/rp2040/liblwip.a

-35.8 KB
Binary file not shown.

libraries/lwIP_Ethernet/src/LwipIntfDev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class LwipIntfDev: public LwipIntf, public RawDev {
195195
#ifdef __FREERTOS
196196
SemaphoreHandle_t _hwMutex;
197197
#endif
198-
uint8_t _irqBuffer[LWIP_CALLBACK_BUFFER_SIZE];
198+
uint8_t _irqBuffer[LWIP_CALLBACK_BUFFER_SIZE] __attribute__ ((aligned (4)));;
199199
protected:
200200
// members
201201
SPIClass& _spiUnit;

0 commit comments

Comments
 (0)