RYMCU
RT-thread nano移植Finsh组件无法输入只返回一个字符bug处理办法 待分类
如题,在常规串口调试助手调试有该 bug:注释掉 board.c 函数 rt_hw_console_getchar(void) 中 10ms 延时,如下:#ifdef RT_USING_FINSH char rt_hw_console_getchar(void) { /* Note: the initial value of ch must < 0 */ int ch = -1;
Hugh 1 天前
RT-Thread创建线程报错assertion failed at function:rt_timer_control 待分类
线程堆栈太小,128 改成 256 及以上即可:task1 = rt_thread_create("task1", task1_entry, RT_NULL, 128, 20, 10);
Hugh 2 天前
RT-Thread undefined reference to `rt_thread_create' 待分类
rt_thread_create 属于动态线程,需要开启内存管理在 rtconfig.h 开启:#define RT_USING_HEAP#define RT_USING_SMALL_MEM
Hugh 2 天前
RT-Thread怎么消除这个 warning: #550-D: variable “obj” was set but never used 待分类
在 rtconfig.h 启用 #define RT_DEBUG
Hugh 2 天前
vscde platformio移植RT-Thread的platformio.ini配置案例 待分类
; PlatformIO Project Configuration File ; ; Build options: build flags, source filter ; Upload options: custom upload port, speed and extra flags ; Library options: dependencies, extra library s
Hugh 2 天前
RT-Thread VScode platform移植攻略 待分类
创建工程步骤: 1)按cubeMX教程操作,生成时Toolchain/IDE选择Makefile 教程1:https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-nano/nano-port-cube/an0041-nano-port-cube.md 教程2:https://rymcu.com/article/11
Hugh 2 天前
platformio unknown upload protocol cmsis-dap 待分类
STM32 官方开发板默认不支持 cmsis-dap,找到系统中对应 .json 文件,添加相应代码即可,例子如下图。
Hugh 3 天前
RYMCU资料下载 资料下载
欢迎来到 RYMCURYMCU 是一个嵌入式知识学习交流平台,专注于做好芯片厂商与开发者之间的桥梁,让开发变得更容易。RY 取自”容易”的首字母,寓意为:从容入门,轻易设计。我们正在构建一个小众社区。大家在这里相互信任 ,以平等 、自由 和奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。最后请大家共同爱护这个自由的交流环境,相信这里会成为你注册过的所有社区中用户体验
Hugh 10 天前
ESP32串口接收不定长数据方法 ESP32 串口接收 不定长数据
采用消息队列方式接收,步骤如下:1.创建消息队列2.串口初始化,并关联消息队列3.创建串口数据处理线程,并在线程函数中等待消息伪代码如下:1.创建消息队列 static QueueHandle_t uart1_queue;2.串口初始化,并关联消息队列 void uart_init(void){ uart_config_t uart_config = { .baud_rate = 115200,
Hugh 12 天前
ESP32使用代码关闭或过滤调试信息 ESP32 关闭调试信息 过滤调试信息
调用 esp_log_level_set() 方法,例如:esp_log_level_set(RYMCU_TAG, ESP_LOG_NONE); //无输出参数定义如下:typedef enum { ESP_LOG_NONE, /*!< No log output */ ESP_LOG_ERROR, /*!< Critical errors, software module
Hugh 12 天前
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 23