Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix/enhance: OPTA socket delay and increasing limits.#1099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ppp-one wants to merge3 commits intoarduino:main
base:main
Choose a base branch
Loading
fromppp-one:main
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletionlibraries/SocketWrapper/src/MbedClient.cpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -18,7 +18,7 @@ void arduino::MbedClient::readSocket() {
uint8_t data[SOCKET_BUFFER_SIZE];

while (sock !=nullptr) {
event->wait_any(0xFF,100);

int ret = NSAPI_ERROR_WOULD_BLOCK;
do {
mutex->lock();
Expand Down
5 changes: 5 additions & 0 deletionsvariants/OPTA/conf/mbed_app.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,6 +21,11 @@
"METAL_MAX_DEVICE_REGIONS=2",
"RPMSG_BUFFER_SIZE=512"
]
},
"OPTA": {
"lwip.socket-max":8,
"lwip.tcp-socket-max":8,
"lwip.udp-socket-max":8
}
}
}
18 changes: 9 additions & 9 deletionsvariants/OPTA/defines.txt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@

-DARM_MATH_CM7
-DCM4_BOOT_BY_APPLICATION
-D__CMSIS_RTOS
-DCOMPONENT_4343W_FS=1
-DCOMPONENT_CYW43XXX=1
-DCOMPONENT_FLASHIAP=1
-DCOMPONENT_QSPIF=1
-DCOMPONENT_WHD=1
-DCORE_CM7
-D__CORTEX_M7
-DCYW43XXX_UNBUFFERED_UART
-DDEVICE_ANALOGIN=1
-DDEVICE_ANALOGOUT=1
Expand All@@ -17,8 +15,8 @@
-DDEVICE_EMAC=1
-DDEVICE_FLASH=1
-DDEVICE_I2C=1
-DDEVICE_I2C_ASYNCH=1
-DDEVICE_I2CSLAVE=1
-DDEVICE_I2C_ASYNCH=1
-DDEVICE_INTERRUPTIN=1
-DDEVICE_LPTICKER=1
-DDEVICE_MPU=1
Expand All@@ -33,22 +31,19 @@
-DDEVICE_SERIAL_FC=1
-DDEVICE_SLEEP=1
-DDEVICE_SPI=1
-DDEVICE_SPI_ASYNCH=1
-DDEVICE_SPISLAVE=1
-DDEVICE_SPI_ASYNCH=1
-DDEVICE_STDIO_MESSAGES=1
-DDEVICE_TRNG=1
-DDEVICE_USBDEVICE=1
-DDEVICE_USTICKER=1
-DDEVICE_WATCHDOG=1
-DEXTRA_IDLE_STACK_REQUIRED
-DFEATURE_BLE=1
-D__FPU_PRESENT=1
-D__MBED__=1
-DMBED_BUILD_TIMESTAMP=1751296112.1474662
-D__MBED_CMSIS_RTOS_CM
-DMBED_TICKLESS
-DMBEDTLS_FS_IO
-DMBEDTLS_SHA1_C
-DMBED_BUILD_TIMESTAMP=1761840996.070056
-DMBED_TICKLESS
-DMETAL_INTERNAL
-DMETAL_MAX_DEVICE_REGIONS=2
-DNO_ATOMIC_64_SUPPORT
Expand DownExpand Up@@ -79,6 +74,11 @@
-DUSE_FULL_LL_DRIVER
-DUSE_HAL_DRIVER
-DVIRTIO_DRIVER_ONLY
-D__CMSIS_RTOS
-D__CORTEX_M7
-D__FPU_PRESENT=1
-D__MBED_CMSIS_RTOS_CM
-D__MBED__=1
-DMBED_NO_GLOBAL_USING_DIRECTIVE=1
-DCORE_MAJOR=
-DCORE_MINOR=
Expand Down
Binary file modifiedvariants/OPTA/libs/libmbed.a
View file
Open in desktop
Binary file not shown.
7 changes: 6 additions & 1 deletionvariants/OPTA/linker_script.ld
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -94,7 +94,12 @@ SECTIONS
__bss_end__ = .;
_ebss = .;
} > RAM
.pdm_section0x3800FC00 (NOLOAD): {
.openamp_section (NOLOAD) : {
. =ABSOLUTE(0x38000000);
*(.resource_table)
} >RAM_D3 AT > FLASH
.pdm_section (NOLOAD) : {
. =ABSOLUTE(0x3800FC00);
*(.pdm_buffer)
} > RAM_D3
_dtcm_lma = __etext +SIZEOF(.data);
Expand Down
6 changes: 3 additions & 3 deletionsvariants/OPTA/mbed_config.h
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -227,7 +227,7 @@
#define MBED_CONF_LWIP_PPP_THREAD_STACKSIZE 768 // set by library:lwip
#define MBED_CONF_LWIP_PRESENT 1 // set by library:lwip
#define MBED_CONF_LWIP_RAW_SOCKET_ENABLED 1 // set by application[*]
#define MBED_CONF_LWIP_SOCKET_MAX4 // set bylibrary:lwip
#define MBED_CONF_LWIP_SOCKET_MAX8 // set byapplication[OPTA]
#define MBED_CONF_LWIP_TCPIP_THREAD_PRIORITY osPriorityNormal // set by library:lwip
#define MBED_CONF_LWIP_TCPIP_THREAD_STACKSIZE 1200 // set by library:lwip
#define MBED_CONF_LWIP_TCP_CLOSE_TIMEOUT 1000 // set by library:lwip
Expand All@@ -236,10 +236,10 @@
#define MBED_CONF_LWIP_TCP_MSS 536 // set by library:lwip
#define MBED_CONF_LWIP_TCP_SERVER_MAX 4 // set by library:lwip
#define MBED_CONF_LWIP_TCP_SND_BUF (2 * TCP_MSS) // set by library:lwip
#define MBED_CONF_LWIP_TCP_SOCKET_MAX4 // set bylibrary:lwip
#define MBED_CONF_LWIP_TCP_SOCKET_MAX8 // set byapplication[OPTA]
#define MBED_CONF_LWIP_TCP_SYNMAXRTX 6 // set by library:lwip
#define MBED_CONF_LWIP_TCP_WND (4 * TCP_MSS) // set by library:lwip
#define MBED_CONF_LWIP_UDP_SOCKET_MAX4 // set bylibrary:lwip
#define MBED_CONF_LWIP_UDP_SOCKET_MAX8 // set byapplication[OPTA]
#define MBED_CONF_LWIP_USE_MBED_TRACE 0 // set by library:lwip
#define MBED_CONF_MCR20A_PROVIDE_DEFAULT 0 // set by library:mcr20a
#define MBED_CONF_NANOSTACK_LIBSERVICE_NSDYNMEM_TRACKER_ENABLED 0 // set by library:nanostack-libservice
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp