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

你好!

在正常狀態下,我用WriteRow寫NAR時報0xF00000AA(安全暫存器禁止寫入)錯誤,

請問是什麼原因?

補充一點:這部分程式碼我是放在CM4裡的,這樣可以嗎?

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/TRAVEO-T2G/example-program-of-writing-NAR-in-SFLASH-of-a-CYT2B9/td-p/741915

9 回應
lock attach
Attachments are accessible only for community members.
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

你好,

0xF00000AA這個錯誤應該是flash的FLASHC_MAIN_FLASH_SAFETY寫使能位沒有設置,放CM4執行沒有問題。 33.4 .25寫入行。

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/TRAVEO-T2G/example-program-of-writing-NAR-in-SFLASH-of-a-CYT2B9/m-p/742015

0
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

你好!

在你提供的範例程式基礎上,我加了一點防死循環程式碼,發現17001a00並沒有變成期望值0x95,還是預設值0x80,請參考截圖。

zdlwzh2006_0-1713426840226.png

 

另外,我想禁用DAP訪問,設定0x95對嗎?

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/TRAVEO-T2G/example-program-of-writing-NAR-in-SFLASH-of-a-CYT2B9/m-p/742261

0
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

你好,

停用DAP存取該位址應該在NAR的區域和0x17001A00,請確認位址是否正確。

如果你把DAP永久禁用了,就沒有任何方法進行DAP調試和編程了,請一定注意這一點。

關於DAP存取的設置,可以參考AN228680_-_Secure_system_configuration_in_TRAVEO_TM_T2G_family

第7.4章,如果只是暫時性的禁用,那麼0x95是對的。

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/TRAVEO-T2G/example-program-of-writing-NAR-in-SFLASH-of-a-CYT2B9/m-p/743605

0
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

你好!

目前我的樣機是可以透過DAP正常調試的,那麼表示作業沒有作業,再次確認了位址是0x17001A00,請看截圖:

zdlwzh2006_0-1713748272121.png

我參考過AN22但是8680的附錄G,好用。 0x95 。

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/TRAVEO-T2G/example-program-of-writing-NAR-in-SFLASH-of-a-CYT2B9/m-p/743661

0
lock attach
Attachments are accessible only for community members.
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

你好,

理論上應該沒問題,只是如果改成0x95是無法再恢復到0x80的,可能位址的資料位元只能向上增加。

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/TRAVEO-T2G/example-program-of-writing-NAR-in-SFLASH-of-a-CYT2B9/m-p/743691

0
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

你好!

由於程式碼需要在CM4裡執行,我沒有測試你提供的CM0+的例程。 ) 0x17001A00的值變成了0x95了),重新上電後就不能修改了。禁用了,請問可能的原因是什麼?

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/TRAVEO-T2G/example-program-of-writing-NAR-in-SFLASH-of-a-CYT2B9/m-p/745569

0
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

你好,

猜測可能CPUSS_AP_CTL這個註冊的值並沒有修改成功,所以建議在沒有掌握的情況下,先嘗試停用一個核心,這樣至少還有一個核心可以調試查看情況。

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/TRAVEO-T2G/example-program-of-writing-NAR-in-SFLASH-of-a-CYT2B9/m-p/745615

0
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

你好!

我同意你的分析。但是在07的情況下還是無法調試,請問什麼原因?

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/TRAVEO-T2G/example-program-of-writing-NAR-in-SFLASH-of-a-CYT2B9/m-p/745685

0
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

你好,

參考KBA的11.2節

https://community.infineon.com/t5/Knowledge-Base-Articles/TRAVEO-T2G-Automotive-Body-Controller-FAQ-...

理論上應該沒有問題。

我們在IAR上測試過,曾經測過設定為0x84,只禁用掉CM4,然後把註冊值重新啟用,是可以重新調試的,請注意這個過程中不能有重置的動作。

0