rt-thread icon indicating copy to clipboard operation
rt-thread copied to clipboard

RT-Thread is an open source IoT real-time operating system (RTOS).

Results 626 rt-thread issues
Sort by recently updated
recently updated
newest added

### RT-Thread Version master ### Hardware Type/Architectures stm32和07 ### Develop Toolchain Other ### Describe the bug 1. 多次使用cat进行open/close同一个文件 2. 使用list fs观察 计数情况 3. 发现ref一直在增加,这样就算没有使用这个文件了,这个malloc一直存在 ```sh msh /flash/log>list fd fd type...

## 拉取/合并请求描述:(PR description) [ #### 你的解决方案是什么 (what is your solution) - ETH驱动层初始化失败不影响lwip的功能;在ETH驱动层改变link的状态前请检查ETH的device是否初始化成功,否则需要再次初始化一次; ``` if (!(xxx_eth_device.parent.parent.flag & RT_DEVICE_FLAG_ACTIVATED)) { if (RT_EOK != xxx_eth_device.parent.parent.init(&xxx_eth_device.parent.parent)) return; } eth_device_linkchange(&xxx_eth_device.parent, RT_TRUE); ``` ] ### 当前拉取/合并请求的状态...

component: net
Component
component: net/lwip

### RT-Thread Version master ### Hardware Type/Architectures stm32f401 ### Develop Toolchain IAR ### Describe the bug 启用SD驱动不得不启用RT_USING_BLK 进而有大量依赖被载入 但是无法通过编译 ### Other additional context _No response_

## 拉取/合并请求描述:(PR description) Replace https://github.com/RT-Thread/rt-thread/pull/9496 Closes: https://github.com/RT-Thread/rt-thread/issues/9482 [ #### 为什么提交这份PR (why to submit this PR) #### 你的解决方案是什么 (what is your solution) #### 请提供验证的bsp和config (provide the config and bsp) - BSP:...

-1
BSP
Kernel
action
tools
BSP: Cvitek

# RT-Thread Board Support Package for ESP32-C3 ## 📝 Introduction This is the Board Support Package (BSP) for the Espressif **ESP32-C3** series of microcontrollers, built to run the RT-Thread Real-Time...

BSP

### Describe problem solved by the proposed feature 如果用户使能了RT_USING_SFUD,并且板级使能多个SPI接口,那么都会调用rt_sfud_flash_probe接口挂在spi flash,实际上并不合理,可能有的SPI接口是用作其他功能,比如OLED、WIFI模块,这样导致其他设备初始化异常。 ### Describe your preferred solution 其实,只有用户清楚SPI FLASH连接到哪个SPI接口,当然不排除芯片的几个SPI接口都是连接SPI FLASH芯片的可能,所以,我认为,这部分更应该交给用户实现,而不是集成到gd32_drivers驱动。 ### Describe possible alternatives 在板级配置SPI FLASH连接至哪个SPI接口,drv_spi_flash.c按照该宏定义初始化flash_configs结构体,即可实现,当然,也可能存在一个SPI接口连接多个SPI FLASH芯片,还是无可避免修改drv_spi_flash.c的实现,还不如一开始就交给用户实现。

…emory allocation when a thread polls multiple file descriptors ## 拉取/合并请求描述:(PR description) [ #### 为什么提交这份PR (why to submit this PR) 因为内存分配使用什么锁进行临界区保护很重要,因此对于实时系统如果使用“关中断”或者“禁止调度”这两种措施,对于实时系统是不可接受的,项目中使用这两种临界保护,实时性受到很大影响,特别在堆使用片外sdram时,实时性受影响巨大。所以这两种措施虽然可以解决系统不崩溃问题,但是已经偏离了实时系统的本意。故,只能使用互斥锁,不影响实时线程的调度。但是使用互斥锁的情况下,在某线程使用多fd同时poll时存在致命的bug,系统会死机。早期的rt-thread版本使用的是信号量,同样存在此问题。 #### 你的解决方案是什么 (what is your solution) 对于在某线程使用多个fd同时poll,且内存分配使用互斥类锁时,建议修改poll的机制,不要使用calloc分配node,否则free时会触发bug。 #### 请提供验证的bsp和config...

Component

### RT-Thread Version e1c1a07c48200fd3a99b6edc05cc2d80cfa6ff18 ### Hardware Type/Architectures qemu-virt64-riscv ### Develop Toolchain GCC ### Describe the bug ``` bash wxk@local:~/work/dl-linux/rt-thread/bsp/qemu-virt64-riscv$ ./run.sh OpenSBI v0.9 ____ _____ ____ _____ / __ \ /...

Resolves #10635 ## 拉取/合并请求描述:(PR description) [ 本PR增强了STM32硬件I2C驱动(drv_hard_i2c),支持在运行时通过控制接口动态调整I2C速率,并在开启DMA的情况下安全地重建DMA与中断配置,避免通信异常。同时清理了无效/未实现的占空比设置项,统一英文注释,并将控制宏移动到头文件,整体风格与现有代码保持一致。 #### 为什么提交这份PR (why to submit this PR) - 现有驱动在初始化时固定速率,运行期无法调整; - #### 你的解决方案是什么 (what is your solution) - 新增运行时速率设置路径:通过 `i2c_bus->ops->i2c_bus_control(bus, I2C_CTRL_SET_SPEED, &speed)` 调整速率。 -...

BSP: STM32
BSP

## 拉取/合并请求描述:(PR description) [ #### 为什么提交这份PR (why to submit this PR) #### 你的解决方案是什么 (what is your solution) #### 请提供验证的bsp和config (provide the config and bsp) - BSP: - .config: - action:...

action