<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 加密系統(tǒng)調(diào)試_HCS12學(xué)習(xí)筆記(8)

          加密系統(tǒng)調(diào)試_HCS12學(xué)習(xí)筆記(8)

          作者: 時(shí)間:2016-11-24 來源:網(wǎng)絡(luò) 收藏
          最近搞了一下關(guān)于加密的調(diào)試,在此做個(gè)記錄。

          本文引用地址:http://www.ex-cimer.com/article/201611/321080.htm

          其實(shí)很簡單,只是對#FF0F進(jìn)行操作一下就可以了,具體位操作詳見S12FTS256KV2.PDF,寄存器FESC。

          在MAIN.C的最后加上

          const volatile unsigned char SecureReg @(0xFF0F)=0xFC;

          即可,注意VOLATILE字樣,如果沒有的話,可能被DUBUG掉。

          我對所有的程序進(jìn)行了調(diào)試,一切正常,只有在涉及到FLASH擦寫時(shí),程序無法正常運(yùn)行,或者把程序段放入FLASH分頁時(shí)無法正常運(yùn)行。查了N多資料,未果。

          于是找了FREESCALE的技術(shù)支持,交流過后發(fā)現(xiàn),是我芯片型號的問題,因?yàn)槲业男酒腗ASK是1K79X,比較老的型號,所以確實(shí)在這個(gè)方面是有問題的,如果換成了DT256或者高版本的MASK,即可解決問題。

          這里是1K79X參錯(cuò)里的內(nèi)容,描述了這個(gè)問題。

          MUCts00603: FLASH
          Program & erase blocked in normal single chip mode when secure
          Description
          In normal single chip mode, when security is enabled, it is not possible to launch the Program ($20), Sector-Erase ($40) and Erase-Verify ($05) commands in the Flash. The Mass-Erase ($41) command can be launched.


          Workaround
          To enable the Program ($20), Sector-Erase ($40) and Erase-Verify ($05) commands in the flash, security must be disabled via the backdoor key sequence. See Flash User Guide for details of the backdoor key operation.

          至此問題解決。




          評論


          技術(shù)專區(qū)

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();