| core | 基本语言特性 | | alloc | 堆分配(需 allocator) | | compilerbuiltins | 编译器内置函数 |
| OutputPin | 设置高低电平 | | InputPin | 读取引脚 | | SpiBus | SPI 通信 | | I2c | I2C 通信 | | Serial | 串口 |
| panic 死循环 | 没有 panic handler | 实现 #[panichandler] | | 栈溢出 | 中断嵌套或大局部变量 | 增加栈、减小局部变量 | | 内存损坏 | 裸指针操作 | 用 safe abstraction | | 程序不运行 | 链接脚本问题 | 检查 startup code | | 外设不响应 | 时钟未使能 | 先配置 RCC |
Esperto incorporato e no_std. Si occupa di no_std, embedded-hal, sviluppo bare metal, interruzioni, DMA, ambienti con risorse limitate, ecc. Parole chiave: no_std, embedded, embedded-hal, microcontrollore, firmware, ISR, DMA, embedded, bare-metal Fonte: huiali/rust-skills.