rt-thread
rt-thread copied to clipboard
RT-Thread is an open source IoT real-time operating system (RTOS).
``` /** * @brief This function will release the previously allocated memory block by * rt_mem_alloc. The released memory block is taken back to system heap. * * @param rmem...
芯片: stm32f429/bsp: stm32/工具链: rt-thread studio,RT-Thread版本-4.03 HAL_Drivers里的can驱动有点问题。 ## 1 插拔线、振动时线松动 会导致发送出错,hcan->State = HAL_CAN_STATE_ERROR; ``` static int _can_sendmsg(struct rt_can_device *can, const void *buf, rt_uint32_t box_num) { CAN_HandleTypeDef *hcan; hcan = &((struct stm32_can...
在使用posix termios进行串口设置时,使用`TCSETA`进行串口配置变更,在如下位置获取了当前串口的`config`项,在本次配置流程中可以确保设置为正确的期望状态,但是对该`config`的修改并未作用到rtt中的串口控制结构体的`config`中,其还保留了旧配置参数,导致在再使用`TCGETA`时获取的为旧配置参数,即导致了串口配置参数与实际状态的分离,是否应在该处取指针来直接将修改作用至串口控制结构体中的`config`上? https://github.com/RT-Thread/rt-thread/blob/f8cf8341af4c7fdd14efdbe125ff38657e4d83fd/components/drivers/serial/serial.c#L1070
## 拉取/合并请求描述:(PR description) [ ## 描述 MAL (mpu abstract layer) 是 rt-thread 官方基于 Memory Protect Unit (MPU) 做的一款用于内存保护的抽象层组件。 ## 作用 内存保护单元(MPU),提供了内存区域保护功能。通过 MPU,可以使程序更具健壮性,提高嵌入式系统的稳定性,使系统更加安全。通过使用 MPU 组件能使 RT-Thread 操作系统在进军军工、医疗、汽车等行业更具竞争力。MAL 组件具有以下特性: - 线程堆栈溢出检测 -...
## 拉取/合并请求描述:(PR description) [ 编译器: GCC 10.2.1 硬件: stm32l475-atk-pandora 编译出警告了 ``` CC build\kernel\components\net\at\at_socket\at_socket.o rt-thread\components\net\at\at_socket\at_socket.c: In function 'at_gethostbyname': rt-thread\components\net\at\at_socket\at_socket.c:1423:9: warning: 'strncpy' specified bound depends on the length of the source argument...
## 拉取/合并请求描述:(PR description) [ 这段方括号里的内容是您**必须填写并替换掉**的,否则PR不可能被合并。**方括号外面的内容不需要修改,但请仔细阅读。** The content in this square bracket must be filled in and replaced, otherwise, PR can not be merged. The contents outside square brackets need not...
## 拉取/合并请求描述:(PR description) [ #### 为什么提交这份PR (why to submit this PR) 方便大家使用codespace 来验证代码 #### 你的解决方案是什么 (what is your solution) 添加codespace container来构建环境 #### 在什么测试环境下测试通过 (what is the test environment) github codespace...
i use fal read flash about i.mx rt2021 exitern flash, it has usb HAB and XIB encrypted ,so do the fal read data is decrypted ? 我用fal read命令读取 i.mx rt2021的片外flash,这个是经过加密的,我的疑问是他读出来的数据是解密的吗?谢谢
## 拉取/合并请求描述:(PR description) [ add:air32f103 bsp ] ### 当前拉取/合并请求的状态 Intent for your PR 必须选择一项 Choose one (Mandatory): - [x] 本拉取/合并请求是一个草稿版本 This PR is for a code-review and is intended to...
## 拉取/合并请求描述:(PR description) [ 解决win11下USB CDC自动安装驱动的问题,在win11下设备显示黄色感叹号,无法自动安装USB串口驱动。 NUC980-IOT开发板已测试 这是微软关于此问题的链接: https://learn.microsoft.com/zh-cn/windows-hardware/drivers/usbcon/usb-driver-installation-based-on-compatible-ids#usbsersys-installation Windows 10 及更高版本 从 Windows 10 开始,Usbser.inf 已添加到 %Systemroot%\INF 目录,该目录加载 Usbser.sys 作为设备堆栈中功能设备对象 (FDO) 。 如果设备属于通信和 CDC 控制设备类, Usbser.sys 加载。 无需编写自己的 INF...