<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic After writing NVOPT register, firmware does not work anymore in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/After-writing-NVOPT-register-firmware-does-not-work-anymore/m-p/388206#M21256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I developed a firmware with bootloader for the MC9S08DV32 microcontroller.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm now trying to secure the device so that the flash cannot be read after the device is shipped.&lt;/P&gt;&lt;P&gt;When I try to secure the device by defining a variable like...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;"&lt;EM&gt;const unsigned char NVOPT_INIT&amp;nbsp; @0xFFBF = 0x7C&lt;/EM&gt;" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;...the device is secured, but the firmware does not work anymore as expected (normally there should be CAN messages sent every 20 ms, but there is no activity on the bus at all).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When i change the line back to...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;"&lt;EM&gt;const unsigned char NVOPT_INIT&amp;nbsp; @0xFFBF = 0x02&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;...everything works again as expected. I have no idea why only writing one byte to NVOPT changes the behavior in such a way. Because the Debug-Mode is disenabled when the device is secure, i have no way to debug this problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Can you help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I use the classic CodeWarrior IDE, lastest version, and a P&amp;amp;E micro USB Multilink Interface to program the chip.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thank you very much,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Friedemann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Feb 2015 08:16:03 GMT</pubDate>
    <dc:creator>eisenrah</dc:creator>
    <dc:date>2015-02-20T08:16:03Z</dc:date>
    <item>
      <title>After writing NVOPT register, firmware does not work anymore</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/After-writing-NVOPT-register-firmware-does-not-work-anymore/m-p/388206#M21256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I developed a firmware with bootloader for the MC9S08DV32 microcontroller.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm now trying to secure the device so that the flash cannot be read after the device is shipped.&lt;/P&gt;&lt;P&gt;When I try to secure the device by defining a variable like...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;"&lt;EM&gt;const unsigned char NVOPT_INIT&amp;nbsp; @0xFFBF = 0x7C&lt;/EM&gt;" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;...the device is secured, but the firmware does not work anymore as expected (normally there should be CAN messages sent every 20 ms, but there is no activity on the bus at all).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When i change the line back to...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;"&lt;EM&gt;const unsigned char NVOPT_INIT&amp;nbsp; @0xFFBF = 0x02&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;...everything works again as expected. I have no idea why only writing one byte to NVOPT changes the behavior in such a way. Because the Debug-Mode is disenabled when the device is secure, i have no way to debug this problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Can you help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I use the classic CodeWarrior IDE, lastest version, and a P&amp;amp;E micro USB Multilink Interface to program the chip.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thank you very much,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Friedemann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 08:16:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/After-writing-NVOPT-register-firmware-does-not-work-anymore/m-p/388206#M21256</guid>
      <dc:creator>eisenrah</dc:creator>
      <dc:date>2015-02-20T08:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: After writing NVOPT register, firmware does not work anymore</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/After-writing-NVOPT-register-firmware-does-not-work-anymore/m-p/388207#M21257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your first value ($7C) disables vector redirection, the second ($02) enables it.&lt;/P&gt;&lt;P&gt;That is a significant difference if the code is meant to work with or without redirection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 13:47:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/After-writing-NVOPT-register-firmware-does-not-work-anymore/m-p/388207#M21257</guid>
      <dc:creator>tonyp</dc:creator>
      <dc:date>2015-02-20T13:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: After writing NVOPT register, firmware does not work anymore</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/After-writing-NVOPT-register-firmware-does-not-work-anymore/m-p/388208#M21258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right, thank you very much! I missed the FNORED bit.&lt;/P&gt;&lt;P&gt;I'm now securing with value &lt;EM&gt;0x3C &lt;/EM&gt;and unsecure with &lt;EM&gt;0x3E&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 15:20:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/After-writing-NVOPT-register-firmware-does-not-work-anymore/m-p/388208#M21258</guid>
      <dc:creator>eisenrah</dc:creator>
      <dc:date>2015-02-20T15:20:56Z</dc:date>
    </item>
  </channel>
</rss>

