<?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>Kinetis MicrocontrollersのトピックRe: Can flash security settings in the K66 block the SDRAM controller?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-flash-security-settings-in-the-K66-block-the-SDRAM/m-p/761581#M46410</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 10.0pt;"&gt;So is it reasonable that since the flash security is not enabled, then the SIM_OPT2(FBSL) bits have no effect and there can be no bus accesses by the SDRAM controller?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Yes, There shouldn't be any problem if you didn't set the security bit and additional to this, if you are using IAR to download the code, it provably didn't set the security bit, because IAR has to be configured in a specific way to allow this. So, with this information we can conclude that the problem is not related with your security status.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Hope this information could help you, I'm looking forward to your reply. Please don't hesitate to contact me if you have any other question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Nov 2017 02:21:09 GMT</pubDate>
    <dc:creator>jorge_a_vazquez</dc:creator>
    <dc:date>2017-11-15T02:21:09Z</dc:date>
    <item>
      <title>Can flash security settings in the K66 block the SDRAM controller?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-flash-security-settings-in-the-K66-block-the-SDRAM/m-p/761580#M46409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;I’m hoping you can help us on a problem we are having with trying to use SDRAM on the K66. We have some example code from a K65 reference board and an appnote on how to configure the SDRAM controller that we are following. I am able to see the bus activity with a logic analyzer, and while I see precharge and refresh cycles, the code to set the mode register and read or write produces no bus activity. It seems like there is another setting somewhere that is blocking the SDRAM controller from accessing the SDRAM. Do you have any ideas on this? &lt;BR /&gt; &lt;BR /&gt; Last night I found this in the K66 manual: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;&lt;BR /&gt; 9.3.1 Security interactions with FlexBus and SDRAM controller &lt;BR /&gt; When flash security is enabled, SIM_SOPT2[FBSL] enables/disables off-chip accesses &lt;BR /&gt; through the FlexBus and the SDRAM interfaces. The FBSL bitfield also has an option to &lt;BR /&gt; allow opcode and operand accesses or only operand accesses. &lt;BR /&gt; &lt;BR /&gt; There is also this warning in the description of the FBSL bits in the SIM_OPT2 register: &lt;BR /&gt; &lt;BR /&gt; 9–8 &lt;BR /&gt; FBSL &lt;BR /&gt; FlexBus security level &lt;BR /&gt; If flash security is enabled, then this field affects what CPU operations can access off-chip via the &lt;BR /&gt; FlexBus or SDRAMinterface. This field has no effect if flash security is not enabled. &lt;BR /&gt; 00 All off-chip accesses (instruction and data) via the FlexBus or SDRAM are disallowed. &lt;BR /&gt; 01 All off-chip accesses (instruction and data) via the FlexBus or SDRAM are disallowed. &lt;BR /&gt; 10 Off-chip instruction accesses are disallowed. Data accesses are allowed. &lt;BR /&gt; 11 Off-chip instruction accesses and data accesses are allowed. &lt;BR /&gt; &lt;BR /&gt; I looked through the K66 manual to find that the flash security bits live in the FTFE_FSEC register. I read this register in our code and found that the SEC bits (1-0) are 10b which is the unsecure state. So is it reasonable that since the flash security is not enabled, then the SIM_OPT2(FBSL) bits have no effect and there can be no bus accesses by the SDRAM controller? &lt;BR /&gt; &lt;BR /&gt; To complicate matters, the FTFE_FSEC register is read-only and gets it's contents from the flash security byte in the Flash Configuration Field in the flash program memory (from pg 748 of the K66 Ref manual). How then can I enable the SDRAM controller? Compiler switch for code security? We are using IAR workbench.&lt;BR /&gt; &lt;BR /&gt; Does this make any sense at all?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 21:12:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-flash-security-settings-in-the-K66-block-the-SDRAM/m-p/761580#M46409</guid>
      <dc:creator>jch4416</dc:creator>
      <dc:date>2017-11-08T21:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can flash security settings in the K66 block the SDRAM controller?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-flash-security-settings-in-the-K66-block-the-SDRAM/m-p/761581#M46410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 10.0pt;"&gt;So is it reasonable that since the flash security is not enabled, then the SIM_OPT2(FBSL) bits have no effect and there can be no bus accesses by the SDRAM controller?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Yes, There shouldn't be any problem if you didn't set the security bit and additional to this, if you are using IAR to download the code, it provably didn't set the security bit, because IAR has to be configured in a specific way to allow this. So, with this information we can conclude that the problem is not related with your security status.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Hope this information could help you, I'm looking forward to your reply. Please don't hesitate to contact me if you have any other question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 02:21:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-flash-security-settings-in-the-K66-block-the-SDRAM/m-p/761581#M46410</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2017-11-15T02:21:09Z</dc:date>
    </item>
  </channel>
</rss>

