<?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: Custom board with Kinetis MKL03Z MCU</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Custom-board-with-Kinetis-MKL03Z-MCU/m-p/813596#M49367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please probe the KL03 RESET pin status without debugger with power up.&lt;/P&gt;&lt;P&gt;And you can just toggle a led to check if your application code works without debugger.&lt;/P&gt;&lt;P&gt;Please let us know the KL03 RESET pin status during power up.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&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>Mon, 02 Jul 2018 02:56:57 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2018-07-02T02:56:57Z</dc:date>
    <item>
      <title>Custom board with Kinetis MKL03Z MCU</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Custom-board-with-Kinetis-MKL03Z-MCU/m-p/813595#M49366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been able to sucessfully compile simple BLINK program and flash my custom board (Kinetis MKL03Z8VFG4R) with Jlink inside MCUXpresso v10.2.0 using command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;////////////////////////////////&lt;BR /&gt;// command to be executed...&lt;BR /&gt;////////////////////////////////&lt;BR /&gt;"C:\Program Files (x86)\SEGGER\JLink_V632b\JLink.exe" -if SWD -speed auto -commanderscript "C:/&lt;EM&gt;[my_path]&lt;/EM&gt;/MCUXpressoIDE_10.2.0_759/workspace/gpio_led_output_test/script.jlink" -device MKL03Z8xxx4 -SelectEmuBySN &lt;EM&gt;[jlink_serial_number]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;////////////////////////////////&lt;BR /&gt;// script.jlink&lt;BR /&gt;////////////////////////////////&lt;BR /&gt;ExitOnError 1&lt;BR /&gt;r&lt;BR /&gt;h&lt;BR /&gt;loadfile "C:\[&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;EM&gt;my_path]&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;/&lt;/SPAN&gt;\MCUXpressoIDE_10.2.0_759\workspace/gpio_led_output_test/Release/gpio_led_output_test.hex"&lt;BR /&gt;qc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;////////////////////////////////&lt;BR /&gt;// command to use in a script&lt;BR /&gt;////////////////////////////////&lt;BR /&gt;set MCUX_WORKSPACE_LOC=C:/&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;EM&gt;[my_path]&lt;/EM&gt;&lt;/SPAN&gt;/MCUXpressoIDE_10.2.0_759/workspace&lt;BR /&gt;set MCUX_JLINK="C:/Program Files (x86)/SEGGER/JLink_V632b/"&lt;/P&gt;&lt;P&gt;"%MCUX_JLINK%/JLink.exe" -if SWD -speed auto -commanderscript "%MCUX_WORKSPACE_LOC%/gpio_led_output_test/script.jlink" -device MKL03Z8xxx4 -SelectEmuBySN &lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;EM&gt;[jlink_serial_number]&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Operation was sucessfull, in console I can see this output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Executing flash operation 'Program' (Program executable into flash gpio_led_output_test.axf) - Mon Jun 25 10:37:04 CEST 2018&lt;BR /&gt;Checking MCU info...&lt;BR /&gt;Scanning for targets...&lt;BR /&gt;Executing flash action...&lt;BR /&gt;SEGGER J-Link Commander V6.32b (Compiled May 8 2018 18:26:51)&lt;BR /&gt;DLL version V6.32b, compiled May 8 2018 18:26:33&lt;BR /&gt;J-Link Command File read successfully.&lt;BR /&gt;Processing script file...&lt;BR /&gt;J-Link Commander will now exit on Error&lt;BR /&gt;J-Link connection not established yet but required for command.&lt;BR /&gt;Connecting to J-Link via USB...O.K.&lt;BR /&gt;Firmware: J-Link ARM-OB STM32 compiled Aug 22 2012 19:52:04&lt;BR /&gt;Hardware version: V7.00&lt;BR /&gt;License(s): RDI,FlashDL,FlashBP,JFlash,GDBFull&lt;BR /&gt;VTref=3.300V&lt;BR /&gt;Target connection not established yet but required for command.&lt;BR /&gt;Device "MKL03Z8XXX4" selected.&lt;BR /&gt;Connecting to target via SWD&lt;BR /&gt;InitTarget()&lt;BR /&gt;Found SW-DP with ID 0x0BC11477&lt;BR /&gt;AP map detection skipped. Manually configured AP map found.&lt;BR /&gt;AP[0]: AHB-AP (IDR: Not set)&lt;BR /&gt;AP[1]: CUSTOM-AP (IDR: Not set)&lt;BR /&gt;AP[0]: Core found&lt;BR /&gt;AP[0]: AHB-AP ROM base: 0xF0002000&lt;BR /&gt;CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)&lt;BR /&gt;Found Cortex-M0 r0p1, Little endian.&lt;BR /&gt;FPUnit: 2 code (BP) slots and 0 literal slots&lt;BR /&gt;CoreSight components:&lt;BR /&gt;ROMTbl[0] @ F0002000&lt;BR /&gt;ROMTbl[0][0]: F0000000, CID: B105900D, PID: 001BB932 MTB-M0+&lt;BR /&gt;ROMTbl[0][1]: F0001000, CID: B105900D, PID: 0008E000 MTBDWT&lt;BR /&gt;ROMTbl[0][2]: E00FF000, CID: B105100D, PID: 000BB4C0 ROM Table&lt;BR /&gt;ROMTbl[1] @ E00FF000&lt;BR /&gt;ROMTbl[1][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS&lt;BR /&gt;ROMTbl[1][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT&lt;BR /&gt;ROMTbl[1][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB&lt;BR /&gt;Cortex-M0 identified.&lt;BR /&gt;Reset delay: 0 ms&lt;BR /&gt;Reset type NORMAL: Resets core &amp;amp; peripherals via SYSRESETREQ &amp;amp; VECTRESET bit.&lt;BR /&gt;Reset: Halt core after reset via DEMCR.VC_CORERESET.&lt;BR /&gt;Reset: Reset device via AIRCR.SYSRESETREQ.&lt;BR /&gt;PC = 1C0000C0, CycleCnt = 00000000&lt;BR /&gt;R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000&lt;BR /&gt;R4 = 00000000, R5 = 1C001CA0, R6 = 00000000, R7 = 00000000&lt;BR /&gt;R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000&lt;BR /&gt;R12= 00000000&lt;BR /&gt;SP(R13)= 20000218, MSP= 20000218, PSP= FFFFFFFC, R14(LR) = 1C0015F9&lt;BR /&gt;XPSR = 61000000: APSR = nZCvq, EPSR = 01000000, IPSR = 000 (NoException)&lt;BR /&gt;CFBP = 00000000, CONTROL = 00, FAULTMASK = 00, BASEPRI = 00, PRIMASK = 00&lt;BR /&gt;FPU regs: FPU not enabled / not implemented on connected CPU.&lt;BR /&gt;Downloading file [C:\&lt;EM&gt;[my_path]&lt;/EM&gt;\MCUXpressoIDE_10.2.0_759\workspace/gpio_led_output_test/Release/gpio_led_output_test.hex]...&lt;BR /&gt;J-Link: Flash download: Bank 0 @ 0x00000000: 1 range affected (1024 bytes)&lt;BR /&gt;J-Link: Flash download: Total time needed: 0.232s (Prepare: 0.046s, Compare: 0.089s, Erase: 0.019s, Program: 0.046s, Verify: 0.016s, Restore: 0.014s)&lt;BR /&gt;O.K.&lt;BR /&gt;Script processing completed.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I can then debug my custom board (I see printed characters from my PRINTF() function in JlLink GDB Server console), but my firmware runs only when in debug session. In source I have set internal LIRC clock (2Mhz) and I have only 1 configuration, ie. BOARD_BootClockRUN(), which I pressume should start CPU in "normal" mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is my board not starting if I only apply power lines to it?&amp;nbsp;Is it depend on any project options: I used default project options, ie. "SDK Debug Console: Semihost", "Redlib (semihost-nf)", etc.)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Edit:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I have also tried to set (Quick Settings--&amp;gt;SDB Debug Console) to "UART console" (as suggested in &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-334074"&gt;MCUXpresso IDE and Semihosting&lt;/A&gt;), but its not working either. My Preprocessor&amp;nbsp;Defined Symbols are as below:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;__REDLIB__&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CPU_MKL03Z8VFK4&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CPU_MKL03Z8VFK4_cm0plus&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CR_INTEGER_PRINTF&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PRINTF_FLOAT_ENABLE=0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;__MCUXPRESSO&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;__USE_CMSIS&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DEBUG&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SDK_DEBUGCONSOLE=1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Using MCUXpresso Config Tools I have manually set UART0 line (is this a problem?). I tried even with different combinations of directives (&lt;STRONG&gt;N&lt;/STRONG&gt;DEBUG, SDK_DEBUGCONSOLE 1/0), but CPU does not start running.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;My PINs initialization routine is:&lt;/EM&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void BOARD_InitPins(void)&lt;BR /&gt;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;CLOCK_EnableClock(kCLOCK_PortA);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;CLOCK_EnableClock(kCLOCK_PortB);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;gpio_pin_config_t LED_GREEN_config = {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.pinDirection = kGPIO_DigitalOutput,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.outputLogic = 0U&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;GPIO_PinInit(BOARD_INITPINS_LED_GREEN_GPIO, &amp;nbsp;&amp;nbsp;&amp;nbsp;BOARD_INITPINS_LED_GREEN_PIN, &amp;amp;LED_GREEN_config);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;gpio_pin_config_t LED_RED_config = {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.pinDirection = kGPIO_DigitalOutput,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.outputLogic = 0U&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GPIO_PinInit(BOARD_INITPINS_LED_RED_GPIO, BOARD_INITPINS_LED_RED_PIN, &amp;amp;LED_RED_config);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; PORT_SetPinMux(BOARD_INITPINS_LED_GREEN_PORT, BOARD_INITPINS_LED_GREEN_PIN, kPORT_MuxAsGpio);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; PORT_SetPinMux(BOARD_INITPINS_LED_RED_PORT, BOARD_INITPINS_LED_RED_PIN, kPORT_MuxAsGpio);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/* PORTB1 (pin 9) is configured as LPUART0_RX */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; PORT_SetPinMux(BOARD_INITPINS_UART_RX_PORT, BOARD_INITPINS_UART_RX_PIN, kPORT_MuxAlt3);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/* PORTB2 (pin 10) is configured as LPUART0_TX */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; PORT_SetPinMux(BOARD_INITPINS_UART_TX_PORT, BOARD_INITPINS_UART_TX_PIN, kPORT_MuxAlt3);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* PORTB3 (pin 11) is configured as I2C0_SCL */&lt;BR /&gt; PORT_SetPinMux(BOARD_INITPINS_SCL_PORT, BOARD_INITPINS_SCL_PIN, kPORT_MuxAlt2);&lt;/P&gt;&lt;P&gt;/* PORTB4 (pin 12) is configured as I2C0_SDA */&lt;BR /&gt; PORT_SetPinMux(BOARD_INITPINS_SDA_PORT, BOARD_INITPINS_SDA_PIN, kPORT_MuxAlt2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIM-&amp;gt;SOPT5 = ((SIM-&amp;gt;SOPT5 &amp;amp;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Mask bits to zero which are setting */&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(~(SIM_SOPT5_LPUART0RXSRC_MASK)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* LPUART0 Receive Data Source Select: LPUART_RX pin. */&lt;/STRONG&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| SIM_SOPT5_LPUART0RXSRC(SOPT5_LPUART0RXSRC_LPUART_RX));&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 09:46:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Custom-board-with-Kinetis-MKL03Z-MCU/m-p/813595#M49366</guid>
      <dc:creator>tomazlov</dc:creator>
      <dc:date>2018-06-25T09:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Custom board with Kinetis MKL03Z MCU</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Custom-board-with-Kinetis-MKL03Z-MCU/m-p/813596#M49367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please probe the KL03 RESET pin status without debugger with power up.&lt;/P&gt;&lt;P&gt;And you can just toggle a led to check if your application code works without debugger.&lt;/P&gt;&lt;P&gt;Please let us know the KL03 RESET pin status during power up.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&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>Mon, 02 Jul 2018 02:56:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Custom-board-with-Kinetis-MKL03Z-MCU/m-p/813596#M49367</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2018-07-02T02:56:57Z</dc:date>
    </item>
  </channel>
</rss>

