Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

你好,我目前實現了PBL&SBL 但目前的問題是:將SBL下載到RAM區域後,透過SBL下載App正常;但從App跳回PBL在下載SBL,進入SBL後上位機發送的CAN 訊息回應逾時。我在SBL中加入調試報文,報文正常發送出來。 App與PBL的RAM區域都為240k,SBL的ram區域為64k,另外一部分我用來儲存SBL的程式碼。請問有什麼解決方法嗎?謝謝。

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/AURIX/TC387-PBL-amp-SBL%E5%AE%9E%E7%8E%B0/td-p/737723

3 回應
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

從你的描述看,第一次PBL載入SBL, SBL可以順利從上位機下載APP。

第二次PBL 載入SBL, SBL 接收上位機的封包逾時。

如果是這種情況,就需要調試。建議看看SBL程式碼中,是否有影響CAN總線的地方。

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/AURIX/TC387-PBL-amp-SBL%E5%AE%9E%E7%8E%B0/m-p/737792

0
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

你好,PBL & SBL中關於CAN Driver的這部分代碼一致。

1.如果將SBL下載到PF0區域存儲,將SBL的DSPR改為240k,無此問題;

2.如果將PBL的DSPR改為64k,從App跳回PBL,PBL也會出現同樣的問題。

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/AURIX/TC387-PBL-amp-SBL%E5%AE%9E%E7%8E%B0/m-p/737802

0
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

可能是問題出在記憶體的管理上,建議先計算各個程式對記憶體的佔用大小,再進行記憶體分配。

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/AURIX/TC387-PBL-amp-SBL%E5%AE%9E%E7%8E%B0/m-p/737822

0