禁用調用函數HalLcdWriteString後向串口輸出調試信息

調用的程序為:
    HalUARTWrite(0,changeline,2);
    HalUARTWrite(0,"Coord have sent:\r\n",18);
    HalUARTWrite(0,theMessageData,len);    
//    HalLcdWriteString( "Coord send 0001", HAL_LCD_LINE_1 );
//    HalLcdWriteString( "LED_All Blink", HAL_LCD_LINE_2 );
    HalLcdWriteScreen("Coord send 0001","LED_All Blink");
LCD顯示成功,串口輸出為:正確信息+LCD顯示的內容(有亂碼)
void HalLcdWriteScreen( char *line1, char *line2 )
{
#if (HAL_LCD == TRUE)
  HalLcdWriteString( line1, 1 );
  HalLcdWriteString( line2, 2 );
#endif
}
所以跟蹤HalLcdWriteString
----> 
void HalLcdWriteString ( char *str, uint8 option)
{
...

/* Send it out */
#if defined (ZTOOL_P1) || defined (ZTOOL_P2)

#if defined(SERIAL_DEBUG_SUPPORTED)
//      debug_str( (uint8*)buf );  //modify by deebug
#endif //LCD_SUPPORTED

#endif //ZTOOL_P1

      /* Free mem */
      osal_mem_free( buf );
    }
  }

  /* Display the string */
  HalLcd_HW_WriteLine (option, str);

#endif //HAL_LCD

}
注釋掉debug_str( (uint8*)buf )立刻解決問題 。

類似問題解決方案:
http://e2e.ti.com/support/low_power_rf/f/158/p/47950/172059.aspx 
http://zb4osgi.aaloa.org/pipermail/commit/2013-October/000706.html
http://zb4osgi.aaloa.org/redmine/projects/zb4osgi/repository/diff?rev=846&type=sbs 
 

Deebug20140307
ccnu

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值