【问题标题】:Mbed Ethernet with serial port error Nucleo F746ZG带有串行端口错误的 Mbed 以太网 Nucleo F746ZG
【发布时间】:2018-11-28 08:59:01
【问题描述】:

我正在尝试在 Nucleo F746ZG 上使用以太网连接, 但是,每当我使用 mbed 的官方包含时,我的别针就不再被识别了。 除此之外,一些标准命令也不能像 digitalout 一样工作。 欢迎所有帮助,并提前致谢。

#include "EthernetInterface.h"
#include "mbed.h" //Includes a diffent map.
#include <string>

Serial pc(USBTX, USBRX);//Selects the type of serial and assigns a name to it.
DigitalOut led1(LED1);//Selects the led.
CAN can1(PD_0, PD_1); <---- // CAN isnt recognized anymore //Sets the pins for the CAN.

这是我收到的错误:

错误:标识符“CAN”在“Nucleo_F746ZG_Ethernet/main.cpp”中未定义,行:7,列:2

【问题讨论】:

  • “不再 [sic] 被识别”是什么意思?你的意思是你得到构建错误?请在构建时复制粘贴(作为文本)完整的输出。
  • @Someprogrammerdude 我已经编辑过了

标签: c++ ethernet can-bus mbed


【解决方案1】:

我建议更新到最新的 Mbed OS 版本,我已经在 Mbed OS 5.10 上针对 Nucleo-F746ZG 进行了测试,它可以正常编译。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-12-04
    • 2010-11-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-16
    • 1970-01-01
    相关资源
    最近更新 更多