<?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>LPC MicrocontrollersのトピックRe: LPC55S16 ThreadX Secure Boot Runtime Error</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-ThreadX-Secure-Boot-Runtime-Error/m-p/1829760#M55677</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/75501"&gt;@rjmalmeida0&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about reading data out then comparing with programed image?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And which IDE do you used? How about using IDE program? Also compare the two value using two method programed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
    <pubDate>Sun, 17 Mar 2024 06:13:56 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2024-03-17T06:13:56Z</dc:date>
    <item>
      <title>LPC55S16 ThreadX Secure Boot Runtime Error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-ThreadX-Secure-Boot-Runtime-Error/m-p/1808987#M55429</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I developed a simple application for LPC55S16 platform with ThreadX that blinks the blue LED every second. During debug and after board reset, all works fine: the LED blinks and the debug UART also logs data.&lt;/P&gt;&lt;P&gt;The next step I tested was secure boot flashing using the MCUXpresso Secure Provisioning tool. I booted the board on ISP mode and connected to it through UART w/ 57600 baud. I selected "Plain" on Boot tab and built the image with a Success status. Then I flashed the image on the "Write Image" tab (as shown in the screenshot). The log shows success, as shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;### Parse input arguments ###
### Check connection ###
/opt/nxp/MCUX_Provi_v7/bin/tools/spsdk /opt/nxp/MCUX_Provi_v7/bin
/opt/nxp/MCUX_Provi_v7/bin/tools/spsdk/blhost -t 2000 -p /dev/ttyUSB0,57600 -j -- get-property 1 0
/opt/nxp/MCUX_Provi_v7/bin
{
   "command": "get-property",
   "response": [
      1258487808
   ],
   "status": {
      "description": "0 (0x0) Success.",
      "value": 0
   }
}
blhost succeeded
### Write Customer Field Programmable Area [CFPA] ###
/opt/nxp/MCUX_Provi_v7/bin/tools/spsdk /opt/nxp/MCUX_Provi_v7/bin
/opt/nxp/MCUX_Provi_v7/bin/tools/spsdk/blhost -t 5000 -p /dev/ttyUSB0,57600 -j -- write-memory 0x0003DE00 /home/rui/environments/lpc55s16/secure_provisioning/gen_sb/cfpa.bin
/opt/nxp/MCUX_Provi_v7/bin
{
   "command": "write-memory",
   "response": [
      512
   ],
   "status": {
      "description": "0 (0x0) Success.",
      "value": 0
   }
}
blhost succeeded
### Write NON-SEALED Customer Manufacturing/Factory Programmable Area [CMPA] ###
/opt/nxp/MCUX_Provi_v7/bin/tools/spsdk /opt/nxp/MCUX_Provi_v7/bin
/opt/nxp/MCUX_Provi_v7/bin/tools/spsdk/blhost -t 5000 -p /dev/ttyUSB0,57600 -j -- write-memory 0x0003E400 /home/rui/environments/lpc55s16/secure_provisioning/gen_sb/cmpa_non_sealed.bin
/opt/nxp/MCUX_Provi_v7/bin
{
   "command": "write-memory",
   "response": [
      512
   ],
   "status": {
      "description": "0 (0x0) Success.",
      "value": 0
   }
}
blhost succeeded
### Erase flash ###
/opt/nxp/MCUX_Provi_v7/bin/tools/spsdk /opt/nxp/MCUX_Provi_v7/bin
/opt/nxp/MCUX_Provi_v7/bin/tools/spsdk/blhost -t 50215 -p /dev/ttyUSB0,57600 -j -- flash-erase-region 0x00000000 21504 0
/opt/nxp/MCUX_Provi_v7/bin
{
   "command": "flash-erase-region",
   "response": [],
   "status": {
      "description": "0 (0x0) Success.",
      "value": 0
   }
}
blhost succeeded
### Write image ###
/opt/nxp/MCUX_Provi_v7/bin/tools/spsdk /opt/nxp/MCUX_Provi_v7/bin
/opt/nxp/MCUX_Provi_v7/bin/tools/spsdk/blhost -t 5000 -p /dev/ttyUSB0,57600 -j -- write-memory 0x00000000 /home/rui/environments/lpc55s16/secure_provisioning/bootable_images/dfrb_app_v0_1.bin
/opt/nxp/MCUX_Provi_v7/bin
{
   "command": "write-memory",
   "response": [
      21112
   ],
   "status": {
      "description": "0 (0x0) Success.",
      "value": 0
   }
}
blhost succeeded&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;After reset, the application does not start tho. The initializations are shown correctly but the threads do not run. Here's an example of the thread the blinks the blue LED:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/**
 * @brief Main application task
 *
 *  args null
 */
void thfnc_DFRBMngmnt(VOID *args)
{
    (void)args;
    PRINTF("starting thfnc_DFRBMngmnt...\r\n");
    /* Main entry */
    UINT status = TX_FALSE;
    UINT counter = 0;
    while (1)
    {
        /* Increment counter */
        counter++;
        /* Send message to transmission queue  */
        status = tx_queue_send(&amp;amp;thq_TxQueue, &amp;amp;counter, TX_WAIT_FOREVER);
        /* Log message */
        PRINTF("thfnc_DFRBMngmnt::sent message...\r\n");
        /* Toggle LED */
        GPIO_PortToggle(GPIO, BOARD_LED_PORT, 1u &amp;lt;&amp;lt; BOARD_LED_PIN);
        /* Sleep for 1 second */
        tx_thread_sleep(1000);
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;No UART logs nor the LED blinks.&lt;/P&gt;&lt;P&gt;Is this a ThreadX configuration or am I doing something wrong?&lt;BR /&gt;Any help would be nice,&lt;BR /&gt;Rui&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 09:33:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-ThreadX-Secure-Boot-Runtime-Error/m-p/1808987#M55429</guid>
      <dc:creator>rjmalmeida0</dc:creator>
      <dc:date>2024-02-15T09:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S16 ThreadX Secure Boot Runtime Error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-ThreadX-Secure-Boot-Runtime-Error/m-p/1812676#M55476</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/75501"&gt;@rjmalmeida0&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about first test with a simple led project without ThreadX?&lt;/P&gt;
&lt;P&gt;About using MCUXpresso Secure Provisioning Tool, please refer to "LPC55(S)0x/1x/2x/6x device workflow" of &amp;lt;MCUXpresso Secure Provisioning Tool user guide&amp;gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 09:18:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-ThreadX-Secure-Boot-Runtime-Error/m-p/1812676#M55476</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-02-21T09:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S16 ThreadX Secure Boot Runtime Error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-ThreadX-Secure-Boot-Runtime-Error/m-p/1812689#M55477</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;With a simple application without ThreadX the secure provisioning works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Rui&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 09:29:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-ThreadX-Secure-Boot-Runtime-Error/m-p/1812689#M55477</guid>
      <dc:creator>rjmalmeida0</dc:creator>
      <dc:date>2024-02-21T09:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S16 ThreadX Secure Boot Runtime Error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-ThreadX-Secure-Boot-Runtime-Error/m-p/1829478#M55672</link>
      <description>&lt;P&gt;Any news on this matter?&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Rui&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 14:20:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-ThreadX-Secure-Boot-Runtime-Error/m-p/1829478#M55672</guid>
      <dc:creator>rjmalmeida0</dc:creator>
      <dc:date>2024-03-15T14:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S16 ThreadX Secure Boot Runtime Error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-ThreadX-Secure-Boot-Runtime-Error/m-p/1829760#M55677</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/75501"&gt;@rjmalmeida0&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about reading data out then comparing with programed image?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And which IDE do you used? How about using IDE program? Also compare the two value using two method programed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2024 06:13:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-ThreadX-Secure-Boot-Runtime-Error/m-p/1829760#M55677</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-03-17T06:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S16 ThreadX Secure Boot Runtime Error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-ThreadX-Secure-Boot-Runtime-Error/m-p/1833868#M55721</link>
      <description>&lt;P&gt;Have you tried to replicate the problem?&amp;nbsp;&lt;BR /&gt;I created another project for the same platform, a little more complex one. Still, same behaviour.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 16:31:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S16-ThreadX-Secure-Boot-Runtime-Error/m-p/1833868#M55721</guid>
      <dc:creator>rjmalmeida0</dc:creator>
      <dc:date>2024-03-22T16:31:49Z</dc:date>
    </item>
  </channel>
</rss>

