<?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 Re: Bootloader Code for the MPC5748G in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Bootloader-Code-for-the-MPC5748G/m-p/1288915#M18441</link>
    <description>&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the code provided. It gave us a good starting point for writing our own BL code.&lt;/P&gt;&lt;P&gt;But I have an issue while writing SREC file into the flash. It doesnt get write fully. We try to read the flash area for some 200 bytes and only 100 bytes of the App srec are written.&lt;/P&gt;&lt;P&gt;Can you explain what the below statements mean in your code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Select all blocks except blocks occupied by bootloader */&lt;BR /&gt;lowBlockSelect = 0x17C;&lt;BR /&gt;midBlockSelect = 0x3FE;&lt;BR /&gt;highBlockSelect = 0x0;&lt;BR /&gt;n256KBlockSelect.first256KBlockSelect = 0x003FFFFF;&lt;BR /&gt;n256KBlockSelect.second256KBlockSelect = 0x0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How this mapping is done in terms of "0x00F8C000--0x00F8FFFF and 0x00F90000--0x00F93FFF".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have provided like this:&lt;/P&gt;&lt;P&gt;blockSelect.lowBlockSelect = 0x100U;&lt;BR /&gt;blockSelect.midBlockSelect = 0x0U;&lt;BR /&gt;blockSelect.highBlockSelect = 0x0U;&lt;BR /&gt;blockSelect.first256KBlockSelect = 0x0FFFU; // Select all blocks except blocks occupied by boot-loader&lt;BR /&gt;blockSelect.second256KBlockSelect = 0x0U;&lt;BR /&gt;g_usrCnt = 0U;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and our BL linker is :&lt;/P&gt;&lt;P&gt;/* Define FLASH */&lt;BR /&gt;FLASH_BASE_ADDR = DEFINED(__flash_base_addr__) ? __flash_base_addr__ : 0x00FB0000;&lt;BR /&gt;FLASH_SIZE = DEFINED(__flash_size__) ? __flash_size__ : 160k;&lt;/P&gt;&lt;P&gt;/* Define SRAM */&lt;BR /&gt;SRAM_BASE_ADDR = DEFINED(__sram_base_addr__) ? __sram_base_addr__ : 0x40000000;&lt;BR /&gt;SRAM_SIZE = DEFINED(__sram_size__) ? __sram_size__ : 256K;&lt;/P&gt;&lt;P&gt;/* Define RAppID boot data address */&lt;BR /&gt;RAPPID_BOOT_APP_DELAY_ADDR = 0x00FA0008;&lt;BR /&gt;RAPPID_BOOT_APP_KEY_ADDR = 0x00FA000C;&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;flash_rchw : org = 0x00FA0000, len = 0x4&lt;BR /&gt;cpu0_reset_vec : org = 0x00FA0000+0x10, len = 0x4&lt;BR /&gt;cpu1_reset_vec : org = 0x00FA0000+0x14, len = 0x4&lt;BR /&gt;cpu2_reset_vec : org = 0x00FA0000+0x04, len = 0x4&lt;BR /&gt;rappid_boot_data : org = 0x00FA0000+0x08, len = 0x8&lt;/P&gt;&lt;P&gt;m_text : org = FLASH_BASE_ADDR, len = FLASH_SIZE&lt;BR /&gt;m_data : org = SRAM_BASE_ADDR, len = SRAM_SIZE&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please guide us where are we going wrong.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jun 2021 08:32:09 GMT</pubDate>
    <dc:creator>maharajshreekum</dc:creator>
    <dc:date>2021-06-08T08:32:09Z</dc:date>
    <item>
      <title>Bootloader Code for the MPC5748G</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Bootloader-Code-for-the-MPC5748G/m-p/1284643#M18387</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using the MPC5748G board. I have used the MPC5748G.rbf file and flashed the application using RappID And the application works.&lt;/P&gt;&lt;P&gt;But I want to add some functionalities in the bootloader related to the validation of the application, Can you please help me where can I find the code for the bootloader so that I can modify it to use for the purpose?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 08:43:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Bootloader-Code-for-the-MPC5748G/m-p/1284643#M18387</guid>
      <dc:creator>jiteshka</dc:creator>
      <dc:date>2021-05-31T08:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Bootloader Code for the MPC5748G</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Bootloader-Code-for-the-MPC5748G/m-p/1284727#M18389</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I’m afraid that the source files of Rappid bootloader are considered as proprietary code and it can’t be shared with customers. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There’s only an option to request another configuration (different CAN or UART interface, different speed). In this case, the bootloader is modified by our SW team and new rbf file is provided. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If customers want to develop own solution, we provide this application note written for MPC5748G which can be used as starting point:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN5319.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN5319.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note-software/AN5319SW.zip" target="_blank"&gt;https://www.nxp.com/docs/en/application-note-software/AN5319SW.zip&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Another option is to use solutions from third parties like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.vector.com/int/en/products/products-a-z/embedded-components/flash-bootloader/" target="_blank"&gt;https://www.vector.com/int/en/products/products-a-z/embedded-components/flash-bootloader/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Lukas&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 10:30:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Bootloader-Code-for-the-MPC5748G/m-p/1284727#M18389</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2021-05-31T10:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Bootloader Code for the MPC5748G</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Bootloader-Code-for-the-MPC5748G/m-p/1288915#M18441</link>
      <description>&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the code provided. It gave us a good starting point for writing our own BL code.&lt;/P&gt;&lt;P&gt;But I have an issue while writing SREC file into the flash. It doesnt get write fully. We try to read the flash area for some 200 bytes and only 100 bytes of the App srec are written.&lt;/P&gt;&lt;P&gt;Can you explain what the below statements mean in your code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Select all blocks except blocks occupied by bootloader */&lt;BR /&gt;lowBlockSelect = 0x17C;&lt;BR /&gt;midBlockSelect = 0x3FE;&lt;BR /&gt;highBlockSelect = 0x0;&lt;BR /&gt;n256KBlockSelect.first256KBlockSelect = 0x003FFFFF;&lt;BR /&gt;n256KBlockSelect.second256KBlockSelect = 0x0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How this mapping is done in terms of "0x00F8C000--0x00F8FFFF and 0x00F90000--0x00F93FFF".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have provided like this:&lt;/P&gt;&lt;P&gt;blockSelect.lowBlockSelect = 0x100U;&lt;BR /&gt;blockSelect.midBlockSelect = 0x0U;&lt;BR /&gt;blockSelect.highBlockSelect = 0x0U;&lt;BR /&gt;blockSelect.first256KBlockSelect = 0x0FFFU; // Select all blocks except blocks occupied by boot-loader&lt;BR /&gt;blockSelect.second256KBlockSelect = 0x0U;&lt;BR /&gt;g_usrCnt = 0U;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and our BL linker is :&lt;/P&gt;&lt;P&gt;/* Define FLASH */&lt;BR /&gt;FLASH_BASE_ADDR = DEFINED(__flash_base_addr__) ? __flash_base_addr__ : 0x00FB0000;&lt;BR /&gt;FLASH_SIZE = DEFINED(__flash_size__) ? __flash_size__ : 160k;&lt;/P&gt;&lt;P&gt;/* Define SRAM */&lt;BR /&gt;SRAM_BASE_ADDR = DEFINED(__sram_base_addr__) ? __sram_base_addr__ : 0x40000000;&lt;BR /&gt;SRAM_SIZE = DEFINED(__sram_size__) ? __sram_size__ : 256K;&lt;/P&gt;&lt;P&gt;/* Define RAppID boot data address */&lt;BR /&gt;RAPPID_BOOT_APP_DELAY_ADDR = 0x00FA0008;&lt;BR /&gt;RAPPID_BOOT_APP_KEY_ADDR = 0x00FA000C;&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;flash_rchw : org = 0x00FA0000, len = 0x4&lt;BR /&gt;cpu0_reset_vec : org = 0x00FA0000+0x10, len = 0x4&lt;BR /&gt;cpu1_reset_vec : org = 0x00FA0000+0x14, len = 0x4&lt;BR /&gt;cpu2_reset_vec : org = 0x00FA0000+0x04, len = 0x4&lt;BR /&gt;rappid_boot_data : org = 0x00FA0000+0x08, len = 0x8&lt;/P&gt;&lt;P&gt;m_text : org = FLASH_BASE_ADDR, len = FLASH_SIZE&lt;BR /&gt;m_data : org = SRAM_BASE_ADDR, len = SRAM_SIZE&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please guide us where are we going wrong.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 08:32:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Bootloader-Code-for-the-MPC5748G/m-p/1288915#M18441</guid>
      <dc:creator>maharajshreekum</dc:creator>
      <dc:date>2021-06-08T08:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Bootloader Code for the MPC5748G</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Bootloader-Code-for-the-MPC5748G/m-p/1289250#M18443</link>
      <description>&lt;P&gt;Hi Lucas,&lt;/P&gt;&lt;P&gt;I have used SRECCONV tool and converted .srec file into alinged .s19 file. I flashed .srec file using IDE , it works fine. But, if I flash aligned .s19 file using IDE, it get flashed but it does not work.Here are the files i attached in folder.I made application to just blink two LEDs&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 14:57:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Bootloader-Code-for-the-MPC5748G/m-p/1289250#M18443</guid>
      <dc:creator>jiteshka</dc:creator>
      <dc:date>2021-06-08T14:57:32Z</dc:date>
    </item>
  </channel>
</rss>

