<?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 TWR-K22F120M tower bootloader msd flash issue in MCU Bootloader</title>
    <link>https://community.nxp.com/t5/MCU-Bootloader/TWR-K22F120M-tower-bootloader-msd-flash-issue/m-p/626076#M198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I flashed tower bootloader into the K22F120M board, K22 appeared as "FSL bootloader" folder on my host pc. &amp;nbsp;Board info is correct in the file INFO.TXT inside this filder:&lt;/P&gt;&lt;P&gt;Kinetis Bootloader K2.0.0&lt;/P&gt;&lt;P&gt;System device ID: 0x22001e99&lt;BR /&gt;Flash size: 524288 bytes&lt;BR /&gt;Flash range: 0x00000000-0x0007ffff&lt;BR /&gt;Flash sector size: 2048 bytes&lt;BR /&gt;Flash blocks: 2&lt;BR /&gt;RAM size: 131072 bytes&lt;BR /&gt;RAM range: 0x1fff0000-0x2000ffff&lt;BR /&gt;Reserved region 0: 0x00000000-0x0000dfff&lt;BR /&gt;Reserved region 1: 0x1fff0000-0x1fff25d7&lt;BR /&gt;Verify writes: yes&lt;BR /&gt;Check reserved regions: yes&lt;BR /&gt;Boot config present: no&lt;BR /&gt;Peripheral detection timeout: 0 ms&lt;BR /&gt;CPU clock: 48000000 Hz&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The STATUS.TXT file says "Ready"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I drag the led demo&amp;nbsp;led_demo_tower_20000.bin file into the folder, nothing is happenning.&amp;nbsp;&lt;SPAN&gt;The STATUS.TXT file still says "Ready"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I used the sb format (led_demo_tower_20000.sb),&amp;nbsp;The STATUS.TXT file still says "Transfe". It looks like the file is transferring, but it hang forever.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The board file I used:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sources {&lt;BR /&gt; demo = extern(0);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;section (0) {&lt;BR /&gt; erase 0x20000..0x7ffff;&lt;/P&gt;&lt;P&gt;load demo &amp;gt; 0x20000;&lt;/P&gt;&lt;P&gt;// jump to entry point&lt;BR /&gt; reset;&lt;BR /&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The BCA info is:&lt;/P&gt;&lt;P&gt;.section .bca, "a"&lt;/P&gt;&lt;P&gt;//__bootloaderConfigurationArea ; 0x3c0&lt;BR /&gt;// .long 'kcfg' // [00:03] tag - Tag value used to validate the bootloader configuration data. Must be set to 'kcfg'&lt;BR /&gt; .long 0x6766636b&lt;BR /&gt; .long 0xFFFFFFFF // [04:07] crcStartAddress&lt;BR /&gt; .long 0xFFFFFFFF // [08:0b] crcByteCount&lt;BR /&gt; .long 0xFFFFFFFF // [0c:0f] crcExpectedValue&lt;BR /&gt; .byte 0xFF // [10:10] enabledPeripherals&lt;BR /&gt; .byte 0xFF // [11:11] i2cSlaveAddress&lt;BR /&gt; .short 5000 // [12:13] peripheralDetectionTimeoutMs - Timeout in milliseconds for peripheral detection before jumping to application code&lt;BR /&gt; .short 0x15A2 // [14:15] usbVid&lt;BR /&gt; .short 0x0073 // [16:17] usbPid&lt;BR /&gt; .long 0xFFFFFFFF // [18:1b] usbStringsPointer&lt;BR /&gt; .byte 0xFF // [1c:1c] clockFlags - High Speed and other clock options&lt;BR /&gt; .byte 0xFF // [1d:1d] clockDivider - One's complement of clock divider, zero divider is divide by 1&lt;BR /&gt; .short 0xFFFF // [1e:1f] reserved&lt;BR /&gt; // Fill to align with flash configuration field.&lt;BR /&gt; .long 0xFFFFFFFF&lt;BR /&gt; .long 0xFFFFFFFF&lt;BR /&gt; .long 0xFFFFFFFF&lt;BR /&gt; .long 0xFFFFFFFF&lt;BR /&gt; .long 0xFFFFFFFF&lt;BR /&gt; .long 0xFFFFFFFF&lt;BR /&gt; .long 0xFFFFFFFF&lt;BR /&gt; .long 0xFFFFFFFF // Reserved for user TRIM value&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am assuming that tower_bootloader will copy my led demo app into flash address 0x20000, and reset the board, then jump to the app. But it was not happenning. I am not sure what step I missed here. Please give me some advise!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2016 12:11:14 GMT</pubDate>
    <dc:creator>imx_proc_user</dc:creator>
    <dc:date>2016-09-16T12:11:14Z</dc:date>
    <item>
      <title>TWR-K22F120M tower bootloader msd flash issue</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/TWR-K22F120M-tower-bootloader-msd-flash-issue/m-p/626076#M198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I flashed tower bootloader into the K22F120M board, K22 appeared as "FSL bootloader" folder on my host pc. &amp;nbsp;Board info is correct in the file INFO.TXT inside this filder:&lt;/P&gt;&lt;P&gt;Kinetis Bootloader K2.0.0&lt;/P&gt;&lt;P&gt;System device ID: 0x22001e99&lt;BR /&gt;Flash size: 524288 bytes&lt;BR /&gt;Flash range: 0x00000000-0x0007ffff&lt;BR /&gt;Flash sector size: 2048 bytes&lt;BR /&gt;Flash blocks: 2&lt;BR /&gt;RAM size: 131072 bytes&lt;BR /&gt;RAM range: 0x1fff0000-0x2000ffff&lt;BR /&gt;Reserved region 0: 0x00000000-0x0000dfff&lt;BR /&gt;Reserved region 1: 0x1fff0000-0x1fff25d7&lt;BR /&gt;Verify writes: yes&lt;BR /&gt;Check reserved regions: yes&lt;BR /&gt;Boot config present: no&lt;BR /&gt;Peripheral detection timeout: 0 ms&lt;BR /&gt;CPU clock: 48000000 Hz&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The STATUS.TXT file says "Ready"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I drag the led demo&amp;nbsp;led_demo_tower_20000.bin file into the folder, nothing is happenning.&amp;nbsp;&lt;SPAN&gt;The STATUS.TXT file still says "Ready"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I used the sb format (led_demo_tower_20000.sb),&amp;nbsp;The STATUS.TXT file still says "Transfe". It looks like the file is transferring, but it hang forever.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The board file I used:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sources {&lt;BR /&gt; demo = extern(0);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;section (0) {&lt;BR /&gt; erase 0x20000..0x7ffff;&lt;/P&gt;&lt;P&gt;load demo &amp;gt; 0x20000;&lt;/P&gt;&lt;P&gt;// jump to entry point&lt;BR /&gt; reset;&lt;BR /&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The BCA info is:&lt;/P&gt;&lt;P&gt;.section .bca, "a"&lt;/P&gt;&lt;P&gt;//__bootloaderConfigurationArea ; 0x3c0&lt;BR /&gt;// .long 'kcfg' // [00:03] tag - Tag value used to validate the bootloader configuration data. Must be set to 'kcfg'&lt;BR /&gt; .long 0x6766636b&lt;BR /&gt; .long 0xFFFFFFFF // [04:07] crcStartAddress&lt;BR /&gt; .long 0xFFFFFFFF // [08:0b] crcByteCount&lt;BR /&gt; .long 0xFFFFFFFF // [0c:0f] crcExpectedValue&lt;BR /&gt; .byte 0xFF // [10:10] enabledPeripherals&lt;BR /&gt; .byte 0xFF // [11:11] i2cSlaveAddress&lt;BR /&gt; .short 5000 // [12:13] peripheralDetectionTimeoutMs - Timeout in milliseconds for peripheral detection before jumping to application code&lt;BR /&gt; .short 0x15A2 // [14:15] usbVid&lt;BR /&gt; .short 0x0073 // [16:17] usbPid&lt;BR /&gt; .long 0xFFFFFFFF // [18:1b] usbStringsPointer&lt;BR /&gt; .byte 0xFF // [1c:1c] clockFlags - High Speed and other clock options&lt;BR /&gt; .byte 0xFF // [1d:1d] clockDivider - One's complement of clock divider, zero divider is divide by 1&lt;BR /&gt; .short 0xFFFF // [1e:1f] reserved&lt;BR /&gt; // Fill to align with flash configuration field.&lt;BR /&gt; .long 0xFFFFFFFF&lt;BR /&gt; .long 0xFFFFFFFF&lt;BR /&gt; .long 0xFFFFFFFF&lt;BR /&gt; .long 0xFFFFFFFF&lt;BR /&gt; .long 0xFFFFFFFF&lt;BR /&gt; .long 0xFFFFFFFF&lt;BR /&gt; .long 0xFFFFFFFF&lt;BR /&gt; .long 0xFFFFFFFF // Reserved for user TRIM value&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am assuming that tower_bootloader will copy my led demo app into flash address 0x20000, and reset the board, then jump to the app. But it was not happenning. I am not sure what step I missed here. Please give me some advise!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 12:11:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/TWR-K22F120M-tower-bootloader-msd-flash-issue/m-p/626076#M198</guid>
      <dc:creator>imx_proc_user</dc:creator>
      <dc:date>2016-09-16T12:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K22F120M bootloader issue</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/TWR-K22F120M-tower-bootloader-msd-flash-issue/m-p/626077#M199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like that activePeripheral =0. msc_active = FALSE and hid_active=FALSE when called&amp;nbsp;peripheral-&amp;gt;controlInterface-&amp;gt;pollForActivity(). &amp;nbsp;&lt;/P&gt;&lt;P&gt;The USB and interface information is given in the BCA area. If the bca info is in the application image, and the application image is still in the host, how could bootloader read those info? &amp;nbsp;I think the bca should be part of bootloader, not part of the application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 13:59:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/TWR-K22F120M-tower-bootloader-msd-flash-issue/m-p/626077#M199</guid>
      <dc:creator>imx_proc_user</dc:creator>
      <dc:date>2016-09-16T13:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K22F120M tower bootloader msd flash issue</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/TWR-K22F120M-tower-bootloader-msd-flash-issue/m-p/626078#M200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;jimzhang wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt;When I used the sb format (led_demo_tower_20000.sb),&amp;nbsp;The STATUS.TXT file still says "Transfe". It looks like the file is transferring, but it hang forever.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Jim, did you ever solve this? I'm seeing the same thing on the KL25.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Oct 2016 18:56:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/TWR-K22F120M-tower-bootloader-msd-flash-issue/m-p/626078#M200</guid>
      <dc:creator>frankvanhooft</dc:creator>
      <dc:date>2016-10-08T18:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K22F120M tower bootloader msd flash issue</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/TWR-K22F120M-tower-bootloader-msd-flash-issue/m-p/626079#M201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the late response. I did not come back for a while. Did you s9olve the issue? My issue was that BCA direct mode flag was not set correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 16:19:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/TWR-K22F120M-tower-bootloader-msd-flash-issue/m-p/626079#M201</guid>
      <dc:creator>imx_proc_user</dc:creator>
      <dc:date>2016-11-16T16:19:45Z</dc:date>
    </item>
  </channel>
</rss>

