Skip to content

Commit da69e33

Browse files
committed
Potenta: increase RPC message buffer size
1 parent 2d40560 commit da69e33

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

libraries/RPC/src/RPC.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ void rpc::client::send_msgpack(RPCLIB_MSGPACK::sbuffer *buffer) {
1111
OPENAMP_send(&rp_endpoints[ENDPOINT_RAW], (const uint8_t*)buffer->data(), buffer->size());
1212
}
1313

14-
static RingBufferN<256> intermediate_buffer;
15-
static RingBufferN<256> intermediate_buffer_resp;
14+
static RingBufferN<RPMSG_BUFFER_SIZE> intermediate_buffer;
15+
static RingBufferN<RPMSG_BUFFER_SIZE> intermediate_buffer_resp;
1616
//static uint8_t intermediate_buffer_resp[256];
1717
static rtos::Mutex rx_mtx;
1818

variants/PORTENTA_H7_M4/conf/mbed_app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"VIRTIO_SLAVE_ONLY",
1818
"NO_ATOMIC_64_SUPPORT",
1919
"METAL_MAX_DEVICE_REGIONS=2",
20-
"RPMSG_BUFFER_SIZE=100"
20+
"RPMSG_BUFFER_SIZE=2048"
2121
]
2222
}
2323
}

variants/PORTENTA_H7_M4/defines.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
-DNO_ATOMIC_64_SUPPORT
5656
-DNO_VTOR_RELOCATE
5757
-DQSPI_NO_SAMPLE_SHIFT
58-
-DRPMSG_BUFFER_SIZE=100
58+
-DRPMSG_BUFFER_SIZE=2048
5959
-DSTM32H747xx
6060
-DTARGET_CORDIO
6161
-DTARGET_CORTEX

variants/PORTENTA_H7_M7/conf/mbed_app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"VIRTIO_MASTER_ONLY",
2323
"NO_ATOMIC_64_SUPPORT",
2424
"METAL_MAX_DEVICE_REGIONS=2",
25-
"RPMSG_BUFFER_SIZE=100"
25+
"RPMSG_BUFFER_SIZE=2048"
2626
]
2727
}
2828
}

variants/PORTENTA_H7_M7/defines.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
-DMETAL_MAX_DEVICE_REGIONS=2
5555
-DNO_ATOMIC_64_SUPPORT
5656
-DQSPI_NO_SAMPLE_SHIFT
57-
-DRPMSG_BUFFER_SIZE=100
57+
-DRPMSG_BUFFER_SIZE=2048
5858
-DSTM32H747xx
5959
-DTARGET_CORDIO
6060
-DTARGET_CORTEX

0 commit comments

Comments
 (0)