添加ExternTools
内置了一些变量,说明如下(详细可以打开help 搜索 extern tools)
提供一个可以online调试的配置
https://download.youkuaiyun.com/download/done1182818968/89080922
https://download.youkuaiyun.com/download/done1182818968/89080922
CubeIDE printf 重定向不生效,一定要加 \r\n
ASCII 码中0 是不可见字符,因此串口打印出来看不到
static uint8_t I2C_sendBuf[10] = {0,1,2,3,4,5,6,7,8,9}; // 这个通过串口打印出来是看不到的
static char I2C_sendBuf[10] = {0,1,2,3,4,5,6,7,8,9}; // 这个通过串口打印出来是看不到的
要么改成下面这种
static uint8_t I2C_sendBuf[10] = {48,49,50,51,52,53,54,55,56,57};
或者修改数组元素的类型
static char I2C_sendBuf[10] = {'0','1','2','3','4','5','6','7','8',