stm8s的UBC參數(shù)問(wèn)題
datasheet:
UBC[7:0] User boot code area
0x00: no UBC, no write-protection
0x01: Page 0 to 1 defined as UBC, memory write-protected
0x02: Page 0 to 3 defined as UBC, memory write-protected
0x03: Page 0 to 4 defined as UBC, memory write-protected
...
0x3E: Pages 0 to 63 defined as UBC, memory write-protected
Other values: Reserved
Note: Refer to the family reference manual (RM0016) section on
Flash write protection for more details.
我的bootload為4K即為4096/128=32頁(yè),那么opt1=32-2=30,但是當(dāng)opt1為此值時(shí)發(fā)現(xiàn)0x9000處不能寫(xiě),后用stvp實(shí)驗(yàn)發(fā)現(xiàn)當(dāng)opt1=6時(shí)恰好前4k寫(xiě)保護(hù)。
有關(guān)stm8s的UBC參數(shù)問(wèn)題的問(wèn)與答:
問(wèn):芯片的具體型號(hào)?
答:stm8s105c6
問(wèn):對(duì)于STM8S105C6而言,F(xiàn)lash的每頁(yè)是512字節(jié)。
答:1page=4blocks!!
問(wèn):錯(cuò),應(yīng)該是:1page = 512bytes
答:也不對(duì),看pm手冊(cè)。
好的,現(xiàn)在我們粘出PM手冊(cè)供大家參考:
好了,我們討論到這里,相信你也懂了,歡迎大家繼續(xù)在此處留言討論,帶所有人都懂得stm8s的UBC參數(shù)問(wèn)題。
有關(guān)stm8s的UBC參數(shù)問(wèn)題的問(wèn)與答:
問(wèn):芯片的具體型號(hào)?
答:stm8s105c6
問(wèn):對(duì)于STM8S105C6而言,F(xiàn)lash的每頁(yè)是512字節(jié)。
答:1page=4blocks!!
問(wèn):錯(cuò),應(yīng)該是:1page = 512bytes
答:也不對(duì),看pm手冊(cè)。
好的,現(xiàn)在我們粘出PM手冊(cè)供大家參考:
好了,我們討論到這里,相信你也懂了,歡迎大家繼續(xù)在此處留言討論,帶所有人都懂得stm8s的UBC參數(shù)問(wèn)題。
評(píng)論