问答

汇集网友智慧,解决技术难题

luckyren

TA的家园币:101  

  • HC32F460采用CAN通讯时发送错误计数突然增加是怎么回事?

    TECorRECreachedwarninglimit.RxErrorCount=0,TxErrorCount=132.candecode6,96curvedate:4curvedate:4PTBtransmitted.TECorRECreachedwarninglimit.RxErrorCount=0,TxErrorCount=131.TECorRECreachedwarninglimit.RxErrorCount=0,TxErrorCount=131.candecode6,96curvedate:4curvedate:4PTBtransmitted.TECorRECreachedwarninglimit.RxErrorCount=0,TxErrorCount=130.TECorRECreachedwarninglimit.RxErrorCount=0,TxErrorCount=130.candecode6,96curvedate:4curvedate:4PTBtransmitted.TECorRECreachedwarninglimit.RxErrorCount=0,TxErrorCount=129.TECorRECreachedwarninglimit.RxErrorCount=0,TxErrorCount=129.candecode6,96curvedate:4curvedate:4PTBtransmitted.TECorRECreachedwarninglimit.RxErrorCount=0,TxErrorCount=128.TECorRECreachedwarninglimit.RxErrorCount=0,TxErrorCount=128.candecode6,96curvedate:4curvedate:4PTBtransmitted.TECorRECreachedwarninglimit.RxErrorCount=0,TxErrorCount=127.TECorRECreachedwarninglimit.RxErrorCount=0,TxErrorCount=127.candecode6,96curvedate:4curvedate:4PTBtransmitted.TECorRECreachedwarninglimit.RxErrorCount=0,TxErrorCount=190.TECorRECreachedwarninglimit.RxErrorCount=0,TxErrorCount=190.candecode6,96curvedate:4curvedate:4PTBtransmitted.TECorRECreachedwarninglimit.RxErrorCount=0,TxErrorCount=189.TECorRECreachedwarninglimit.RxErrorCount=0,TxErrorCount=189.candecode6,96curvedate:4curvedate:4PTBtransmitted.TECorRECreachedwarninglimit.RxErrorCount=0,TxErrorCount=188.TECorRECreachedwarninglimit.RxErrorCount=0,TxErrorCount=188.candecode6,96curvedate:4curvedate:4PTBtransmitted.TECorRECreachedwarninglimit.RxErrorCount=0,TxErrorCount=187.TECorRECreachedwarninglimit.RxErrorCount=0,TxErrorCount=187.candecode6

    CAN hc32f460

    2023-03-21 1
  • HC32F460的CAN出现CAN_FLAG_TEC_REC_WARN错误

    目前CAN波特路设置为125k,用200米的线进行通讯时出现CAN_FLAG_TEC_REC_WARN这个错误,有人知道怎么回事吗?

    2023-03-20 15
  • 小华单片机HC32F460的跑官方例程时会发送不成功

    目前在调试HC32F460时会卡在如下代码:在while(CAN_GetStatus(CAN_UNIT,CAN_FLAG_STB_TX)==RESET){},哪位大佬可以指点一下吗?staticvoidCanTx(void){uint8_ti;staticuint8_tu8Data;for(i=0U;i<CAN_TX_DATA_SIZE;i++){m_stcTx1.au8Data=u8Data++;m_stcTx2.au8Data=u8Data++;m_stcTx3.au8Data=u8Data++;}/*FramewithCAN_ID1*/m_stcTx1.u32Ctrl=0x0UL;m_stcTx1.u32ID=CAN_TX_ID1;m_stcTx1.IDE=CAN_TX_ID1_IDE;m_stcTx1.DLC=CAN_TX_DLC;(void)CAN_FillTxFrame(CAN_UNIT,CAN_TX_BUF_PTB,&m_stcTx1);/*StartPTBTX*/CAN_StartTx(CAN_UNIT,CAN_TX_REQ_PTB);/*Checktransmissionend.*/while(CAN_GetStatus(CAN_UNIT,CAN_FLAG_PTB_TX)==RESET){}CAN_ClearStatus(CAN_UNIT,CAN_FLAG_PTB_TX);/*FramewithCAN_ID2*/m_stcTx2.u32Ctrl=0x0UL;m_stcTx2.u32ID=CAN_TX_ID2;m_stcTx2.IDE=CAN_TX_ID2_IDE;m_stcTx2.DLC=CAN_TX_DLC;(void)CAN_FillTxFrame(CAN_UNIT,CAN_TX_BUF_STB,&m_stcTx2);/*FramewithCAN_ID3*/m_stcTx3.u32Ctrl=0x0UL;m_stcTx3.u32ID=CAN_TX_ID3;m_stcTx3.IDE=CAN_TX_ID3_IDE;m_stcTx3.DLC=CAN_TX_DLC;(void)CAN_FillTxFrame(CAN_UNIT,CAN_TX_BUF_STB,&m_stcTx3);/*StartSTBTX*/CAN_StartTx(CAN_UNIT,CAN_TX_REQ_STB_ALL);/*Checktransmissionend.*/while(CAN_GetStatus(CAN_UNIT,CAN_FLAG_STB_TX)==RESET){}CAN_ClearStatus(CAN_UNIT,CAN_FLAG_STB_TX);}

    hc32f460 CAN

    2023-03-02 6
  • HC32F460 CAN通讯问题

    我在调试HC32F460的CAN通讯时发现如果同时收到了两帧数据,第二帧数据会保存下来,导致下面接收的数据是上一帧的数据,然后后面的接收都错位了,中断里也清标志位了,有人指导一下吗?我的初始化及中断接收处理如下:[code]staticvoidCanInitConfig(uint16_tCAN_Baud_Rate){stc_can_init_config_tstcCanInitCfg;stc_can_filter_tastcFilters[CAN_FILTERS_COUNT]=\{{0x00000000ul,0x111ul,CanFilterSel1,CanAllFrames}};//

    hc32f460 CAN

    2023-01-13 21
  • GD32F103RET6的standby模式中IBAT Battery supply current是什么意思?

    如图,是我从GD32F103数据手册中截取出来的,请问该模式下VDD是掉电的吗?那么当他被唤醒时VDD是自动上电吗?请大神讲解一下!多谢大佬!