RYMCU
PlatformIO STM32 cubeMX printf 无法打印浮点数 待分类
使用了 GCC 编译器默认不支持浮点数输出,在 platformio.ini 中增加代码如下: build_flags = -Wl,-u_printf_float
Hugh 1 天前
GNU、GCC、gcc、g++ 待分类
GNU 是一个类 Unix 操作系统,GNU 是 GNU is NOT Unix 的递归首字母缩写。 GCC--GNU Compiler Collection,GNU 编译器集合,支持 C,C++,Objective-C,Fortran,Ada,GO 等语语言。gcc/g++,分别为 GCC 编译器 C,C++ 语言前端,分别编译 C 和 C++ 源码,并交给 GCC 后端生成机器码。https:
Hugh 1 天前
在cubeMx工程基础上创建并更改工程名字 待分类
新建工程文件夹,点击 File 选择 save project As... 另存为此文件夹,并点击 GNERATE CODE,生成的新工程名字和文件夹名称一样了。
Hugh 2 天前
RT-thread nano移植Finsh组件无法输入只返回一个字符bug处理办法 RT-Thread
如题,在常规串口调试助手调试有该 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 3 天前
RT-Thread创建线程报错assertion failed at function:rt_timer_control RT-Thread
线程堆栈太小,128 改成 256 及以上即可:task1 = rt_thread_create("task1", task1_entry, RT_NULL, 128, 20, 10);
Hugh 4 天前
RT-Thread undefined reference to `rt_thread_create' RT-Thread
rt_thread_create 属于动态线程,需要开启内存管理在 rtconfig.h 开启:#define RT_USING_HEAP#define RT_USING_SMALL_MEM
Hugh 4 天前
RT-Thread怎么消除这个 warning: #550-D: variable “obj” was set but never used RT-Thread
在 rtconfig.h 启用 #define RT_DEBUG
Hugh 4 天前
vscde platformio移植RT-Thread的platformio.ini配置案例 RT-Thread
; 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 4 天前
RT-Thread VScode platform移植攻略 RT-Thread
创建工程步骤: 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 4 天前
platformio unknown upload protocol cmsis-dap RT-Thread
STM32 官方开发板默认不支持 cmsis-dap,找到系统中对应 .json 文件,添加相应代码即可,例子如下图。
Hugh 5 天前
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 23