<?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 RW612 - wifi_mqtt example &amp;quot;download firmware failed&amp;quot; in Wi-Fi® + Bluetooth® + 802.15.4</title>
    <link>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/RW612-wifi-mqtt-example-quot-download-firmware-failed-quot/m-p/2008466#M3404</link>
    <description>&lt;P&gt;I have a FRDM-RW612 board, and I'm trying to run the "wifi_mqtt" example from the SDK (version 2.16.100, build 858, 2024-10-02) using MCUXpresso IDE v24.9 (currently the latest release).&amp;nbsp; I'm able to build it and download it using the built-in MCU-Link.&amp;nbsp; But when I run it, I get the following:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;************************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;MQTT client example&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;************************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[i] Initializing Wi-Fi connection...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[wifi_io] Error: Download firmware failed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[wifi] Error: imu_wifi_init failed. status code -1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[wlcm] Error: wifi_init failed. status code -1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[!] WPL Init failed: 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;If I enable&amp;nbsp;&lt;SPAN&gt;CONFIG_WIFI_IO_DEBUG, I just get a few more lines of output.&amp;nbsp; Here's the relevant code snippet:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="imu_wifi_init() from wifi-imu.c" style="width: 599px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/314386iB06A1AC29E074184/image-size/large?v=v2&amp;amp;px=999" role="button" title="snippet_1.png" alt="imu_wifi_init() from wifi-imu.c" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;imu_wifi_init() from wifi-imu.c&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Commenting line 1612 has no effect.&amp;nbsp; Resetting the board manually or unplugging and replugging it produces the same result.&amp;nbsp; I read doc/readme.md, and it mentions "select Wi-Fi module macro in the app_config.h. (see #define WIFI_&amp;lt;SoC Name&amp;gt;_BOARD_&amp;lt;Module Name&amp;gt;)."&amp;nbsp; This is the contents of app_config.h:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="app_config.h" style="width: 512px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/314388iED96C4078AB03EB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="snippet_2.png" alt="app_config.h" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;app_config.h&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Am I doing something wrong?&amp;nbsp; This should be an out-of-the-box example, I'm not sure why it's failing.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dana M.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2024 18:55:02 GMT</pubDate>
    <dc:creator>dmarks_ls</dc:creator>
    <dc:date>2024-12-05T18:55:02Z</dc:date>
    <item>
      <title>RW612 - wifi_mqtt example "download firmware failed"</title>
      <link>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/RW612-wifi-mqtt-example-quot-download-firmware-failed-quot/m-p/2008466#M3404</link>
      <description>&lt;P&gt;I have a FRDM-RW612 board, and I'm trying to run the "wifi_mqtt" example from the SDK (version 2.16.100, build 858, 2024-10-02) using MCUXpresso IDE v24.9 (currently the latest release).&amp;nbsp; I'm able to build it and download it using the built-in MCU-Link.&amp;nbsp; But when I run it, I get the following:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;************************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;MQTT client example&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;************************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[i] Initializing Wi-Fi connection...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[wifi_io] Error: Download firmware failed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[wifi] Error: imu_wifi_init failed. status code -1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[wlcm] Error: wifi_init failed. status code -1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[!] WPL Init failed: 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;If I enable&amp;nbsp;&lt;SPAN&gt;CONFIG_WIFI_IO_DEBUG, I just get a few more lines of output.&amp;nbsp; Here's the relevant code snippet:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="imu_wifi_init() from wifi-imu.c" style="width: 599px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/314386iB06A1AC29E074184/image-size/large?v=v2&amp;amp;px=999" role="button" title="snippet_1.png" alt="imu_wifi_init() from wifi-imu.c" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;imu_wifi_init() from wifi-imu.c&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Commenting line 1612 has no effect.&amp;nbsp; Resetting the board manually or unplugging and replugging it produces the same result.&amp;nbsp; I read doc/readme.md, and it mentions "select Wi-Fi module macro in the app_config.h. (see #define WIFI_&amp;lt;SoC Name&amp;gt;_BOARD_&amp;lt;Module Name&amp;gt;)."&amp;nbsp; This is the contents of app_config.h:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="app_config.h" style="width: 512px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/314388iED96C4078AB03EB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="snippet_2.png" alt="app_config.h" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;app_config.h&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Am I doing something wrong?&amp;nbsp; This should be an out-of-the-box example, I'm not sure why it's failing.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dana M.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 18:55:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/RW612-wifi-mqtt-example-quot-download-firmware-failed-quot/m-p/2008466#M3404</guid>
      <dc:creator>dmarks_ls</dc:creator>
      <dc:date>2024-12-05T18:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: RW612 - wifi_mqtt example "download firmware failed"</title>
      <link>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/RW612-wifi-mqtt-example-quot-download-firmware-failed-quot/m-p/2008578#M3405</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Could you please confirm you downloaded the Wi-Fi firmware using J-Link?&lt;/P&gt;
&lt;P&gt;Please check section 4.1.1 in UM11799 (available in your SDK bundle).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 22:33:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/RW612-wifi-mqtt-example-quot-download-firmware-failed-quot/m-p/2008578#M3405</guid>
      <dc:creator>DanielRuvalcaba</dc:creator>
      <dc:date>2024-12-05T22:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: RW612 - wifi_mqtt example "download firmware failed"</title>
      <link>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/RW612-wifi-mqtt-example-quot-download-firmware-failed-quot/m-p/2008598#M3406</link>
      <description>&lt;P&gt;Ha, nope, that was it.&amp;nbsp; It would be super useful for folks if there was a mention of that specific user manual and section in the readme.md for the Wi-Fi sample projects.&amp;nbsp; I've developed on NXP MCUs for a long time, but having to put a separate binary blob into flash first using a separate manual J-Link command is a new trick.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For those out there running Windows, here's a useful batch file for programming the firmware.&amp;nbsp; Put it in component\conn_fwloader\fw_bin and edit the path to JLink.exe if needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/8888"&gt;@set&lt;/a&gt; JLINK="C:\Program Files\SEGGER\JLink\JLink.exe"
@set FIRMWARE="rw61x_sb_wifi_a2.bin"
@set FLASH_ADDRESS=0x08400000
@set COMMAND_FILE="jlink_command.txt"
@echo loadbin %FIRMWARE%,%FLASH_ADDRESS% &amp;gt; %COMMAND_FILE%
@echo quit &amp;gt;&amp;gt; %COMMAND_FILE%
%JLINK% -device RW612 -if SWD -speed 4000 -CommandFile %COMMAND_FILE%
@pause&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks for the pointer.&lt;/P&gt;&lt;P&gt;Dana M.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 23:51:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/RW612-wifi-mqtt-example-quot-download-firmware-failed-quot/m-p/2008598#M3406</guid>
      <dc:creator>dmarks_ls</dc:creator>
      <dc:date>2024-12-05T23:51:51Z</dc:date>
    </item>
  </channel>
</rss>

