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

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

# 环境 芯片:NXP-MCXN947 开发板:FRDM-MCXN947 BSP:nxp->mcx->mcxn 工具链:Keil 5, ArmClang V6.21 RT-Thread版本:5.1.0 # 现象及复现步骤 **调用 `rt_device_write(can_dev, 0, &msg, sizeof(msg));` 导致阻塞** 在编写CAN外设测评时,简单复制了RT-Thread[官方文档提供的CAN示例代码](https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/programming-manual/device/can/can),可以正常发送一帧ID为0x78的CAN数据帧 但是对设备写入函数rt_device_write进行简单的for循环发送的时候却出现了阻塞,第一条写入函数后的代码均无法执行,尝试取消掉for循环,直接在rt_device_write后加入rt_kprintf也同样无法打印任何内容。 # 目前已知 ## 第一次排查 5.1.0版本的mcxn提供的bsp文件中`drv_can.c`中,`flexcan_callback`函数有部分被注释,尝试取消注释。 ![image](https://github.com/RT-Thread/rt-thread/assets/82697713/7de5ef14-f083-4b6c-a32f-b339708c49f4) 并且`drv_can.c`中的CAN发送函数使用的是NXP提供的FSL库中的阻塞发送函数,推测该函数不能触发发送完成中断。 ![image](https://github.com/RT-Thread/rt-thread/assets/82697713/8091c8fd-cb23-4701-b2c6-7536872d627b) 于是作出如下更改:(红框为原有发送函数,绿框为修改后的函数) 修改后的发送函数确实可以运行至`flexcan_callback`的`kStatus_FLEXCAN_TxIdle`分支...

## 拉取/合并请求描述:(PR description) [ #### 为什么提交这份PR (why to submit this PR) rt_tick_t 是无符号数据类型,而 'timeout' 有时用到负值或与负值比较。 #8758 #### 你的解决方案是什么 (what is your solution) 参考: rt_err_t rt_mutex_take(rt_mutex_t mutex, rt_int32_t timeout); rt_err_t rt_sem_take(rt_sem_t...

discussion

https://github.com/RT-Thread/rt-thread/pull/8672 您好,在这次修改之后,我使用rt-smart时 启动出现如下报错,这一块不太了解,请问是需要添加哪些配置或者代码吗? ![bdd2f2f2e1287cbe35dbd2f277bacc4](https://github.com/RT-Thread/rt-thread/assets/103986797/8556ee22-3d3c-4954-807c-516c4db5e49d)

RT-Thread版本5.1.0,当使用keil5编译bsp\stm32\stm32f103-fire-arbitrary的时候,出现Undefined symbol rt_condvar_init (referred from pipe.o),发现在Kernel文件夹中没有包含condvar.c文件. ![图片](https://github.com/RT-Thread/rt-thread/assets/46878455/0e0b9997-1f99-4f5f-b126-cbe2025fb9bb) 将./components/drivers/ipc/condvar.c加入到工程中即可 ![图片](https://github.com/RT-Thread/rt-thread/assets/46878455/c5451271-2f35-4e03-8c5c-b6bbaa5cd099)

我是一个研一的学生,我导师让我移植rt-thread到我们实验室之前做的裸片,现在我按照官网的教程把移植需要做的配置修改完了(中断函数和时钟等等),但是BSP以及如何编译内核我没有什么头绪,目前我根据网上学到的东西感觉非常零碎,东一块西一块的,我一直没有一个系统的认识该如何做bsp以及对整体软硬件的架构缺乏认识,现在就不知得下一步该干嘛,想请教一下大家!

Arch: RISC-V

无符号数与负数比较: https://github.com/RT-Thread/rt-thread/blob/87d47bf935cecb0651c066969f1696990ac97343/components/drivers/ipc/condvar.c#L50 负值不明确的自动转换为无符号数: https://github.com/RT-Thread/rt-thread/blob/87d47bf935cecb0651c066969f1696990ac97343/components/drivers/ipc/condvar.c#L128

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

in progress

## 拉取/合并请求描述:(PR description) #### 为什么提交这份PR (why to submit this PR) 让rtthread支持线程cpu占用率统计 #### 你的解决方案是什么 (what is your solution) 使用全局tick或者perfcounter组件获取全局时间,然后记录线程运行总时间,最后得到占用率 #### 请提供验证的bsp和config (provide the config and bsp) ### 当前拉取/合并请求的状态 Intent for your...

discussion

## 拉取/合并请求描述:(PR description) [ 规范bsp中软件驱动的延时函数,在cortex-m核下使用统一的rt_hw_us_delay函数 #### 为什么提交这份PR (why to submit this PR) #### 你的解决方案是什么 (what is your solution) #### 请提供验证的bsp和config (provide the config and bsp) - BSP: - .config: -...

proposal