mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-14 04:18:56 +00:00
increase freerto min task stack for some stm32
This commit is contained in:
parent
8407252fa3
commit
46fd822990
@ -428,6 +428,19 @@ function(family_flash_stlink TARGET)
|
||||
endfunction()
|
||||
|
||||
|
||||
# Add flash st-flash target
|
||||
function(family_flash_stflash TARGET)
|
||||
if (NOT DEFINED ST_FLASH)
|
||||
set(ST_FLASH st-flash)
|
||||
endif ()
|
||||
|
||||
add_custom_target(${TARGET}-stflash
|
||||
DEPENDS ${TARGET}
|
||||
COMMAND ${ST_FLASH} write $<TARGET_FILE_DIR:${TARGET}>/${TARGET}.bin 0x8000000
|
||||
)
|
||||
endfunction()
|
||||
|
||||
|
||||
# Add flash openocd target
|
||||
function(family_flash_openocd TARGET)
|
||||
if (NOT DEFINED OPENOCD)
|
||||
@ -449,6 +462,7 @@ function(family_flash_openocd TARGET)
|
||||
)
|
||||
endfunction()
|
||||
|
||||
|
||||
# Add flash openocd-wch target
|
||||
# compiled from https://github.com/hathach/riscv-openocd-wch or https://github.com/dragonlock2/miscboards/blob/main/wch/SDK/riscv-openocd.tar.xz
|
||||
function(family_flash_openocd_wch TARGET)
|
||||
@ -459,6 +473,7 @@ function(family_flash_openocd_wch TARGET)
|
||||
family_flash_openocd(${TARGET})
|
||||
endfunction()
|
||||
|
||||
|
||||
# Add flash with https://github.com/ch32-rs/wlink
|
||||
function(family_flash_wlink_rs TARGET)
|
||||
if (NOT DEFINED WLINK_RS)
|
||||
@ -471,6 +486,7 @@ function(family_flash_wlink_rs TARGET)
|
||||
)
|
||||
endfunction()
|
||||
|
||||
|
||||
# Add flash pycod target
|
||||
function(family_flash_pyocd TARGET)
|
||||
if (NOT DEFINED PYOC)
|
||||
@ -483,6 +499,7 @@ function(family_flash_pyocd TARGET)
|
||||
)
|
||||
endfunction()
|
||||
|
||||
|
||||
# Flash with UF2
|
||||
function(family_flash_uf2 TARGET FAMILY_ID)
|
||||
add_custom_target(${TARGET}-uf2
|
||||
@ -491,6 +508,7 @@ function(family_flash_uf2 TARGET FAMILY_ID)
|
||||
)
|
||||
endfunction()
|
||||
|
||||
|
||||
# Add flash teensy_cli target
|
||||
function(family_flash_teensy TARGET)
|
||||
if (NOT DEFINED TEENSY_CLI)
|
||||
@ -503,6 +521,7 @@ function(family_flash_teensy TARGET)
|
||||
)
|
||||
endfunction()
|
||||
|
||||
|
||||
# Add flash using NXP's LinkServer (redserver)
|
||||
# https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/linkserver-for-microcontrollers:LINKERSERVER
|
||||
function(family_flash_nxplink TARGET)
|
||||
|
@ -58,7 +58,7 @@
|
||||
#define configCPU_CLOCK_HZ SystemCoreClock
|
||||
#define configTICK_RATE_HZ ( 1000 )
|
||||
#define configMAX_PRIORITIES ( 5 )
|
||||
#define configMINIMAL_STACK_SIZE ( 128 )
|
||||
#define configMINIMAL_STACK_SIZE ( 200 )
|
||||
#define configTOTAL_HEAP_SIZE ( configSUPPORT_DYNAMIC_ALLOCATION*4*1024 )
|
||||
#define configMAX_TASK_NAME_LEN 16
|
||||
#define configUSE_16_BIT_TICKS 0
|
||||
|
@ -58,7 +58,7 @@
|
||||
#define configCPU_CLOCK_HZ SystemCoreClock
|
||||
#define configTICK_RATE_HZ ( 1000 )
|
||||
#define configMAX_PRIORITIES ( 5 )
|
||||
#define configMINIMAL_STACK_SIZE ( 128 )
|
||||
#define configMINIMAL_STACK_SIZE ( 200 )
|
||||
#define configTOTAL_HEAP_SIZE ( configSUPPORT_DYNAMIC_ALLOCATION*4*1024 )
|
||||
#define configMAX_TASK_NAME_LEN 16
|
||||
#define configUSE_16_BIT_TICKS 0
|
||||
|
@ -15,7 +15,7 @@ set(CMAKE_SYSTEM_PROCESSOR cortex-m0plus CACHE INTERNAL "System Processor")
|
||||
set(CMAKE_TOOLCHAIN_FILE ${TOP}/examples/build_system/cmake/toolchain/arm_${TOOLCHAIN}.cmake)
|
||||
|
||||
set(FAMILY_MCUS STM32G0 CACHE INTERNAL "")
|
||||
|
||||
set(OPENOCD_OPTION "-f interface/stlink.cfg -f target/stm32g0x.cfg")
|
||||
|
||||
#------------------------------------
|
||||
# BOARD_TARGET
|
||||
@ -112,6 +112,7 @@ function(family_configure_example TARGET RTOS)
|
||||
target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb)
|
||||
|
||||
# Flashing
|
||||
family_flash_stlink(${TARGET})
|
||||
family_flash_jlink(${TARGET})
|
||||
family_flash_stlink(${TARGET})
|
||||
#family_flash_openocd(${TARGET})
|
||||
endfunction()
|
||||
|
@ -58,7 +58,7 @@
|
||||
#define configCPU_CLOCK_HZ SystemCoreClock
|
||||
#define configTICK_RATE_HZ ( 1000 )
|
||||
#define configMAX_PRIORITIES ( 5 )
|
||||
#define configMINIMAL_STACK_SIZE ( 128 )
|
||||
#define configMINIMAL_STACK_SIZE ( 200 )
|
||||
#define configTOTAL_HEAP_SIZE ( configSUPPORT_DYNAMIC_ALLOCATION*4*1024 )
|
||||
#define configMAX_TASK_NAME_LEN 16
|
||||
#define configUSE_16_BIT_TICKS 0
|
||||
|
@ -1201,7 +1201,7 @@ TU_ATTR_FAST_FUNC void dcd_event_handler(dcd_event_t const* event, bool in_isr)
|
||||
break;
|
||||
|
||||
case DCD_EVENT_SETUP_RECEIVED:
|
||||
// TU_ASSERT(event->setup_received.bRequest != 0,);
|
||||
// TU_ASSERT(event->setup_received.bRequest != 0,); // for catching issue with ch32v203 and windows with -O0/-Og
|
||||
_usbd_queued_setup++;
|
||||
send = true;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user