跳到主要內容

MCC LIN TX 一些隱藏的小問題

 

這2個函數有可能在多個地方被重複呼叫,主要是在中斷時用到

.mcc_generated_files/LINDrivers/lin_master.c:230:: advisory: (1510) non-reentrant function "_LIN_getChecksum" appears in multiple call graphs and has been duplicated by the compiler

mcc_generated_files/LINDrivers/lin_master.c:270:: advisory: (1510) non-reentrant function "_LIN_stopTimer" appears in multiple call graphs and has been duplicated by the compiler

解法:其中一個不呼叫直接放內容或呼叫改名例如LIN_stopTimer_init()


避免重覆設定


開始計時也要將計數器歸零(同接收問題)LIN_timerCallBack=0

這2個函數有可能在多個地方被重複呼叫(但不會同時使用,暫時先不修正)

C:\Program Files\Microchip\xc8\v3.10\pic\sources\c99\common\memcpy.c:4:: advisory: (1510) non-reentrant function "_memcpy" appears in multiple call graphs and has been duplicated by the compiler

C:\Program Files\Microchip\xc8\v3.10\pic\sources\c99\common\memset.c:3:: advisory: (1510) non-reentrant function "_memset" appears in multiple call graphs and has been duplicated by the compiler

            要傳送的資料要放進SW_STATE_Date[]



留言

這個網誌中的熱門文章

AD9 SCH尋找相同net

 ALT+滑鼠左鍵點net 不容易找到相同的net 加上這個設定 會有紅線 很容易找到相同的net 取消選取  在空白處點一下滑鼠左鍵   再 Shift+C

VScode-json-debug&compiler

  {     // Use IntelliSense to learn about possible attributes.     // Hover to view descriptions of existing attributes.     // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387     "version" : "0.2.0" ,     "configurations" : [         {             // Note: Properties here can override MPLAB project settings             "name" : "Debug" ,             "type" : "mplab-core-da" ,             "request" : "launch" ,             "project" : "My_Project" ,             "configuration" : "default" ,             "stopOnEntry" : true ,         },         {             "name" : "Program" ,         ...

MPLAB X IDE 不能在.h檔裡宣告變數,否則debug mode時會出問題,找不函數.

  MPLAB X IDE 不能在.h檔裡宣告變數,否則debug mode時會出問題,找不函數. 但編輯和燒錄時功能都正常.