Skip to content

Commit 9088b70

Browse files
authored
Make Bossa Compatible with 8K devices
Reduce the Write Buffer to 2048 so that the stack is no overwritten during write procedure
1 parent 1827d02 commit 9088b70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Samba.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ class Samba
8282

8383
bool canWriteBuffer() { return _canWriteBuffer; }
8484
void writeBuffer(uint32_t src_addr, uint32_t dst_addr, uint32_t size);
85-
uint32_t writeBufferSize() { return 4096; }
85+
uint32_t writeBufferSize() { return 2048; }
8686

8787
bool canChecksumBuffer() { return _canChecksumBuffer; }
8888
uint16_t checksumBuffer(uint32_t start_addr, uint32_t size);
89-
uint32_t checksumBufferSize() { return 4096; }
89+
uint32_t checksumBufferSize() { return 2048; }
9090
uint16_t checksumCalc(uint8_t c, uint16_t crc);
9191

9292
private:

0 commit comments

Comments
 (0)