C++
不纯洁的锌
机械电子 汽车电子 移动机器人 https://github.com/XiaoxingChen
展开
-
C++读取*.bin文件时无法获取0x20
http://www.cplusplus.com/forum/beginner/145308/Angeljruiz (185):大家好,我在读取一个二进制文件时,有些值不正确,请帮助一下我!下面是相关的代码:#include #include #include "CPU.h"using namespace std;void clear(){ for(int翻译 2015-12-03 21:54:31 · 1002 阅读 · 0 评论 -
STM32F4 LAN8720以及LWIP的移植调试记录 (2)
背景在硬件工程师完成了PCB和原理图设计后,根据正点原子的教程对例程进行修改,验证了硬件的正确性。 STM32F407和LAN8720调试记录. 正点原子 网络通信实验下一步的工作需要在产品的板子上实现功能。 原产品采用W5500的硬TCP/IP协议方案。 调试路线尝试先从UDP回环开始。约定所有调用接口全部按照 lwip\src\include\lwip\socket...原创 2018-02-26 15:22:54 · 5504 阅读 · 0 评论 -
jlink gdb server with arm-none-eabi-gdb
Launch JLinkGDBServer:$ JLinkGDBServer -if SWD -device STM32F103ZE原创 2017-11-07 18:04:09 · 1293 阅读 · 0 评论 -
Use std::functional and std::bind in STM32 project
-I/usr/include/newlib/c++/4.8/arm-none-eabi/armv7e-m-I/usr/include/newlib/c++/4.8原创 2017-09-29 20:24:38 · 358 阅读 · 0 评论 -
cmake arm-none-eabi-gcc for stm32 cpp project
尝试把原有的stm32工程F1canBootloader用cmake来管理,遇到了以下几个坑:1. 报错,undefined reference to `__dso_handle'。CMakeFiles/app.elf.dir/home/chenxx/engineering/stmproj/F1canBootLoader/iap/uartIapDevice.cpp.obj: In fu原创 2017-10-07 16:05:25 · 2653 阅读 · 0 评论 -
The way to minimize the C++ binary file compiled by arm g++
CFLAGS += -Os It means optimize for space. CFLAGS += -ffunction-sections -fdata-sections It means save the function and data to its own sections.LFLAGS += –gc-sections It means enable garbage col原创 2017-09-08 17:37:11 · 270 阅读 · 0 评论 -
GCC STM23 cannot find -lstdc++
Chose the C++ project incorrectly when create the new project.The correct way is:File–>Project–>C Project–>Project name–>Cross ARM GCC–>Tools chain path–>Finsh.But the problem is that still don know ho原创 2017-09-08 12:55:34 · 499 阅读 · 0 评论 -
Gdb install faild: Unpacking gdb-arm-none-eabi (7.6.50.20131218-0ubuntu1+1) ... dpkg: error processi
Unpacking gdb-arm-none-eabi (7.6.50.20131218-0ubuntu1+1) ...dpkg: error processing archive /var/cache/apt/archives/gdb-arm-none-eabi_7.6.50.20131218-0ubuntu1+1_i386.deb (--unpack): trying to overwri原创 2017-09-07 22:55:37 · 669 阅读 · 0 评论 -
Nuttx编译时报:ERROR: arm-nuttx-eabi-gcc failed: 127
在make menuconfig时,检查下编译工具System Type -> Tool chain selection -> Generic GNU eabi tool chain under linux这个才是正解。之前默认是Buildroot(Cygwin or Linux)这个不知道是什么鬼原创 2017-08-16 00:50:46 · 552 阅读 · 0 评论 -
在正点原子alientek探索者板子上跑Nuttx
nuttx原创 2017-08-16 00:31:16 · 2334 阅读 · 1 评论 -
Add your own board to Nuttx configuration
Add your own board to Nuttx原创 2017-08-15 23:09:38 · 787 阅读 · 0 评论 -
Nuttx buttons example: undefined reference to 'poll’
error debug原创 2017-08-19 13:08:43 · 473 阅读 · 0 评论