<?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>CodeWarrior Development ToolsのトピックRe: Setting I/O pin on Kinetis from debugger script</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Setting-I-O-pin-on-Kinetis-from-debugger-script/m-p/646573#M5620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SCOTT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your sharing.&lt;/P&gt;&lt;P&gt;I have a question about "before the download starts, but then the P&amp;amp;E Cyclone seems to be resetting it so it turns on again.",&lt;/P&gt;&lt;P&gt;what do you meaning about this , you said dowload starts , if do load download project , how to set I/O ?&lt;/P&gt;&lt;P&gt;In fact , i want to know after doing what , you checked the P&amp;amp;E resetting the pins to turns on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And whether in your project you configure the pins&amp;nbsp; ,while you ignore .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoping you share your result to us , thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Dec 2016 04:02:01 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2016-12-30T04:02:01Z</dc:date>
    <item>
      <title>Setting I/O pin on Kinetis from debugger script</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Setting-I-O-pin-on-Kinetis-from-debugger-script/m-p/646568#M5615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a K22F-based board that needs to have a couple of GPIO pins initialized to appropriate values before startup - there's a transmitter connected that shouldn't be left running during the flash load process. &amp;nbsp;It looks like I ought to be able to do this with mem commands (or possibly reg commands) from the init_kinetis.tcl script, but I'm not having any luck getting it to work.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm able to set the SCGC5 register without an error, but any port control registers I try to access give me an error. &amp;nbsp;I'm guessing it's just a matter of setting up a missing clock setting or something, but it's late and I'm tired of trying to hunt it down. &amp;nbsp;Does anyone have a working example of a debugger script for the K22 that just sets an I/O pin?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 02:47:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Setting-I-O-pin-on-Kinetis-from-debugger-script/m-p/646568#M5615</guid>
      <dc:creator>scottm</dc:creator>
      <dc:date>2016-12-28T02:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Setting I/O pin on Kinetis from debugger script</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Setting-I-O-pin-on-Kinetis-from-debugger-script/m-p/646569#M5616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SOTT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Which pin do you want to configure ?Please send your project or the init_kinetis.tcl&amp;nbsp; file to me ,&lt;/P&gt;&lt;P&gt;i will help you to check and test it on my side .&lt;/P&gt;&lt;P&gt;And could you please tell me why do you want configureit before startup ?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 02:49:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Setting-I-O-pin-on-Kinetis-from-debugger-script/m-p/646569#M5616</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-12-29T02:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Setting I/O pin on Kinetis from debugger script</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Setting-I-O-pin-on-Kinetis-from-debugger-script/m-p/646570#M5617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to set PTA4 on pin 26 low. &amp;nbsp;The pin controls an external transmitter, and for some reason it's either high or floating&amp;nbsp;during flash programming, which causes the transmitter to activate. &amp;nbsp;If I hit F11 and walk away either the transmitter or the dummy load it's connected to could eventually overheat. &amp;nbsp;PTA5 also controls a transmitter but it seems to come up in a safe state. &amp;nbsp;Mostly it's just a nuisance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what I was trying in the init_kinetis.tcl file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc set_pins {} {&lt;BR /&gt; # Clear PTT&lt;BR /&gt; # Set SCGC5&lt;BR /&gt; mem 40048038 = 40382&lt;BR /&gt; #SIM_SCGC7&lt;BR /&gt; mem 40048040 = 6&lt;BR /&gt; #MPU_CEST&lt;BR /&gt; mem 4000d000 = 815100&lt;BR /&gt; #AXBS_PRS0&lt;BR /&gt; mem 40004000 = 430210&lt;BR /&gt; #AXBS_PRS1&lt;BR /&gt; mem 40004100 = 430210&lt;BR /&gt; #AXBS_PRS2&lt;BR /&gt; mem 40004200 = 430210&lt;BR /&gt; #AXBS_PRS3&lt;BR /&gt; mem 40004300 = 430210&lt;BR /&gt; #AXBS_PRS4&lt;BR /&gt; mem 40004400 = 430210&lt;BR /&gt; # Set PORTA_PCR4&lt;BR /&gt; mem 40049010 = 143&lt;BR /&gt; # Set GPIOA_PDDR&lt;BR /&gt; mem 400ff014 = 10&lt;BR /&gt; # Set GPIOA_PDOR&lt;BR /&gt; mem 400ff000 = 0&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I started with SCGC5 and PORTA and then started adding in the other registers as I found them in the startup code. &amp;nbsp;I don't want to assume that I'm setting the wrong registers until I know that the mem command actually works and gets me the result I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 03:48:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Setting-I-O-pin-on-Kinetis-from-debugger-script/m-p/646570#M5617</guid>
      <dc:creator>scottm</dc:creator>
      <dc:date>2016-12-29T03:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Setting I/O pin on Kinetis from debugger script</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Setting-I-O-pin-on-Kinetis-from-debugger-script/m-p/646571#M5618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SCOTT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you configure the pin PTA4 to GPIO function on the register of&lt;/P&gt;&lt;P&gt;PORTA_PCR4-&amp;gt; MUX&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4061i00ACFF9A26B0A051/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;About the k22 , i only have FRDM-K22, while the CW doesn't support it , so i test on FRDM-K64 board,&lt;/P&gt;&lt;P&gt;while it is the same .&lt;/P&gt;&lt;P&gt;I set the PTE26 to low , i write the below codes in the file of init_kinetis.tcl:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg SIM_SCGC5 = 0X2000&lt;BR /&gt;reg GPIOE_PDDR = 0X04000000&lt;BR /&gt;reg GPIOE_PDOR = 0x00000000&lt;BR /&gt;reg PORTE_PCR26 = 0X0100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to this configure your pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice Yang&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>Thu, 29 Dec 2016 07:41:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Setting-I-O-pin-on-Kinetis-from-debugger-script/m-p/646571#M5618</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-12-29T07:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Setting I/O pin on Kinetis from debugger script</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Setting-I-O-pin-on-Kinetis-from-debugger-script/m-p/646572#M5619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm most of the way there. &amp;nbsp;Here's what I'm using now in init_kinetis.tcl:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg SIM_SCGC5 = 0X00040382&lt;BR /&gt; reg GPIOA_PDDR = 0X00000030&lt;BR /&gt; reg GPIOA_PDOR = 0x00000000&lt;BR /&gt; reg PORTA_PCR4 = 0X00000100&lt;BR /&gt; reg PORTA_PCR5 = 0X00000100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sets both PTA4 and PTA5 low. &amp;nbsp;I'd swear I tried it exactly that way before but maybe I had a typo. &amp;nbsp;In any case, this does set the pins properly before the download starts, but then the P&amp;amp;E Cyclone seems to be resetting it so it turns on again. &amp;nbsp;I added the same tcl code above to a separate .tcl file and set up a task in the debugger's 'Execute Tasks' pane. &amp;nbsp;That clears the pins again. &amp;nbsp;It has to do a second flash load after that and the pins stay cleared for the duration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might be possible for me to disable the 'perform standard download' and replace it with equivalent tasks so I can control the order of execution, but I'm already talking to P&amp;amp;E about an issue today so I'll check with them before I do anything else. &amp;nbsp;At least this gets me to a point where I can hit F11 and take a coffee break without worrying about a transmitter overheating while I'm gone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 20:34:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Setting-I-O-pin-on-Kinetis-from-debugger-script/m-p/646572#M5619</guid>
      <dc:creator>scottm</dc:creator>
      <dc:date>2016-12-29T20:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Setting I/O pin on Kinetis from debugger script</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Setting-I-O-pin-on-Kinetis-from-debugger-script/m-p/646573#M5620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SCOTT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your sharing.&lt;/P&gt;&lt;P&gt;I have a question about "before the download starts, but then the P&amp;amp;E Cyclone seems to be resetting it so it turns on again.",&lt;/P&gt;&lt;P&gt;what do you meaning about this , you said dowload starts , if do load download project , how to set I/O ?&lt;/P&gt;&lt;P&gt;In fact , i want to know after doing what , you checked the P&amp;amp;E resetting the pins to turns on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And whether in your project you configure the pins&amp;nbsp; ,while you ignore .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoping you share your result to us , thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2016 04:02:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Setting-I-O-pin-on-Kinetis-from-debugger-script/m-p/646573#M5620</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-12-30T04:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Setting I/O pin on Kinetis from debugger script</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Setting-I-O-pin-on-Kinetis-from-debugger-script/m-p/646574#M5621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reg commands set the pins properly, and then the Cyclone ACP starts and performs a hardware reset on the target, so the pins reset again. &amp;nbsp;The next script sets the pins back to a safe state and they stay that way through another target task that loads the bootloader. &amp;nbsp;According to P&amp;amp;E the target task download function is Freescale-provided and they don't know anything about how it's implemented. &amp;nbsp;The problem here is in the P&amp;amp;E standard download and I've got P&amp;amp;E working on a solution. &amp;nbsp;Here's the log output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Executing Initialization File: ...\Project_Settings\Debugger\init_kinetis.tcl&lt;BR /&gt;radix x &lt;BR /&gt;cmdwin::eclipse::config hexprefix 0x &lt;BR /&gt;cmdwin::eclipse::config MemIdentifier p &lt;BR /&gt;cmdwin::eclipse::config MemWidth 32 &lt;BR /&gt;cmdwin::eclipse::config MemAccess 32 &lt;BR /&gt;cmdwin::eclipse::config MemSwap off &lt;BR /&gt;&lt;STRONG&gt;cmdwin::reg SIM_SCGC5 = 0X00040382 &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cmdwin::reg GPIOA_PDDR = 0X00000030 &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cmdwin::reg GPIOA_PDOR = 0x00000000 &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cmdwin::reg PORTA_PCR4 = 0X00000100 &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cmdwin::reg PORTA_PCR5 = 0X00000100&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;/* pins are now set properly */&lt;/P&gt;&lt;P&gt;cmdwin::reg User\/System Mode Registers/LR = 0xFFFFFFFF &lt;BR /&gt;cmdwin::reg Core Debug Registers/DEMCR = 0x1000001 &lt;BR /&gt;cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_FUNCTION0 = 0x0 &lt;BR /&gt;cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_FUNCTION1 = 0x0 &lt;BR /&gt;cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_FUNCTION2 = 0x0 &lt;BR /&gt;cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_FUNCTION3 = 0x0 &lt;BR /&gt;cmdwin::reg Flash Patch and Breakpoint Unit Registers/FP_COMP0 = 0x0 &lt;BR /&gt;cmdwin::reg Flash Patch and Breakpoint Unit Registers/FP_COMP1 = 0x0 &lt;BR /&gt;cmdwin::reg Flash Patch and Breakpoint Unit Registers/FP_COMP2 = 0x0 &lt;BR /&gt;cmdwin::reg Flash Patch and Breakpoint Unit Registers/FP_COMP3 = 0x0 &lt;BR /&gt;cmdwin::reg Flash Patch and Breakpoint Unit Registers/FP_COMP4 = 0x0 &lt;BR /&gt;cmdwin::reg Flash Patch and Breakpoint Unit Registers/FP_COMP5 = 0x0 &lt;BR /&gt;cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_CTRL = 0x40000000 &lt;BR /&gt;cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_CYCCNT = 0x0 &lt;BR /&gt;cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_CPICNT = 0x0 &lt;BR /&gt;cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_EXCCNT = 0x0 &lt;BR /&gt;cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_SLEEPCNT = 0x0 &lt;BR /&gt;cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_LSUCNT = 0x0 &lt;BR /&gt;cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_FOLDCNT = 0x0 &lt;BR /&gt;cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_COMP0 = 0x0 &lt;BR /&gt;cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_COMP1 = 0x0 &lt;BR /&gt;cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_COMP2 = 0x0 &lt;BR /&gt;cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_COMP3 = 0x0 &lt;BR /&gt;cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_MASK0 = 0x0 &lt;BR /&gt;cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_MASK1 = 0x0 &lt;BR /&gt;cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_MASK2 = 0x0 &lt;BR /&gt;cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_MASK3 = 0x0 &lt;BR /&gt;cmdwin::reg Instrumentation Trace Macrocell Registers/ITM_LAR = 0xc5acce55 &lt;BR /&gt;cmdwin::reg Instrumentation Trace Macrocell Registers/ITM_TER = 0x0 &lt;BR /&gt;cmdwin::reg Instrumentation Trace Macrocell Registers/ITM_TPR = 0x0 &lt;BR /&gt;cmdwin::reg Instrumentation Trace Macrocell Registers/ITM_TCR = 0x0 &lt;BR /&gt;cmdwin::reg Instrumentation Trace Macrocell Registers/ITM_LAR = 0x1 &lt;BR /&gt;cmdwin::reg Embedded Trace Funnel Registers/ETF_FCR = 0x300 &lt;BR /&gt;cmdwin::reg System Control Registers/SCB_VTOR = 0x20000000&lt;/P&gt;&lt;P&gt;Starting 3rd party flash programming...&lt;BR /&gt;GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry : SPECIFY_NETWORKCARD_ENABLED, Value : 0, R) =&amp;gt; DI_OK&lt;BR /&gt;GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : PARTITION_PARAM, Value : 0, R) =&amp;gt; DI_ERR_NONFATAL&lt;BR /&gt;GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : DO_PARTITIONING, Value : 0, R) =&amp;gt; DI_ERR_NONFATAL&lt;BR /&gt;GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : DOTRIM, Value : 0, R) =&amp;gt; DI_OK&lt;BR /&gt;GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : CUSTOM_TRIM, Value : 0, R) =&amp;gt; DI_OK&lt;BR /&gt;GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : NGS_TRIM_OVERRIDE_REFERENCE_FREQUENCY, Value : 3276800, R) =&amp;gt; DI_OK&lt;BR /&gt;GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : PARTITION_PARAM, Value : 0, R) =&amp;gt; DI_ERR_NONFATAL&lt;BR /&gt;GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : DO_PARTITIONING, Value : 0, R) =&amp;gt; DI_ERR_NONFATAL&lt;BR /&gt;GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : DOTRIM, Value : 0, R) =&amp;gt; DI_OK&lt;BR /&gt;GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : CUSTOM_TRIM, Value : 0, R) =&amp;gt; DI_OK&lt;BR /&gt;GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : NGS_TRIM_OVERRIDE_REFERENCE_FREQUENCY, Value : 3276800, R) =&amp;gt; DI_OK&lt;BR /&gt;INF: Copyright 2012 P&amp;amp;E Microcomputer Systems,Inc.&lt;BR /&gt;INF: Command Line :"C:\Freescale\CW MCU v10.7\eclipse\..\MCU\bin\de.exe" -noni -language en -ORBendPoint giop:tcp:127.0.0.1: -ORBtraceLevel 0 &lt;BR /&gt;GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : IS_GDB_CONFIG, Value : 0, R) =&amp;gt; DI_ERR_NONFATAL&lt;BR /&gt;GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : PARTITION_PARAM, Value : 0, R) =&amp;gt; DI_ERR_NONFATAL&lt;BR /&gt;GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : DO_PARTITIONING, Value : 0, R) =&amp;gt; DI_ERR_NONFATAL&lt;BR /&gt;GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : DOTRIM, Value : 0, R) =&amp;gt; DI_OK&lt;BR /&gt;GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : CUSTOM_TRIM, Value : 0, R) =&amp;gt; DI_OK&lt;BR /&gt;GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : NGS_TRIM_OVERRIDE_REFERENCE_FREQUENCY, Value : 3276800, R) =&amp;gt; DI_OK&lt;BR /&gt;&lt;STRONG&gt;INF: CMD&amp;gt;RE&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;INF: Initializing.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;INF: Target has been RESET and is active.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/* pins are now back to default state */&lt;/P&gt;&lt;P&gt;INF: CMD&amp;gt;CM C:\Freescale\CW MCU v10.7\MCU\bin\Plugins\support\arm\gdi\P&amp;amp;E\k22fn1m0m12_pflash_pipeline.arp&lt;BR /&gt;INF: Initializing.&lt;BR /&gt;INF: Initialized.&lt;BR /&gt;INF: ;version 1.01, 07/17/2013, Copyright P&amp;amp;E Microcomputer Systems, &lt;A href="https://community.nxp.com/www.pemicro.com" target="test_blank"&gt;www.pemicro.com&lt;/A&gt; [mk22_1024k_n_pflash0_pflash1_m10]&lt;BR /&gt;INF: ;device freescale, k22fn1m0m12, 1x32x256k, desc=pflash_pipeline&lt;BR /&gt;INF: ;begin_cs device=$00000000, length=$00100000, ram=$20000000&lt;BR /&gt;INF: Loading programming algorithm ... &lt;BR /&gt;INF: Done.&lt;BR /&gt;INF: CMD&amp;gt;EM&lt;BR /&gt;INF: Erasing.&lt;BR /&gt;INF: Module has been erased.&lt;BR /&gt;INF: Reloading programming algorithm ... &lt;BR /&gt;INF: done.&lt;BR /&gt;INF: CMD&amp;gt;PM&lt;BR /&gt;INF: Programming.&lt;BR /&gt;INF: Processing Object File Data ... &lt;BR /&gt;INF: . &lt;BR /&gt;INF: Programmed.&lt;BR /&gt;INF: CMD&amp;gt;VC&lt;BR /&gt;INF: Verifying object file CRC-16 to device ranges ... &lt;BR /&gt;INF: block 00000000-00000187 ... &lt;BR /&gt;INF: Ok.&lt;BR /&gt;INF: block 00000410-00000413 ... &lt;BR /&gt;INF: Ok.&lt;BR /&gt;INF: block 00000418-00031CB3 ... &lt;BR /&gt;INF: Ok.&lt;BR /&gt;INF: Checksum Verification Successful. (Cumulative CRC-16=$93C7)&lt;BR /&gt;INF: CMD&amp;gt;RE&lt;BR /&gt;INF: Initializing.&lt;BR /&gt;INF: Target has been RESET and is active.&lt;/P&gt;&lt;P&gt;Executing download task: S:\projects\ADS-SR2\code\Project_Settings\Debugger\set_ptt.tcl&lt;BR /&gt;&lt;STRONG&gt;cmdwin::reg SIM_SCGC5 = 0X00040382 &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cmdwin::reg GPIOA_PDDR = 0X00000030 &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cmdwin::reg GPIOA_PDOR = 0x00000000 &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cmdwin::reg PORTA_PCR4 = 0X00000100 &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cmdwin::reg PORTA_PCR5 = 0X00000100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/* pins are safe again, and stay that way through the rest of the process */&lt;/P&gt;&lt;P&gt;Executing download task: ...\Load Bootloader.tcl&lt;BR /&gt;cmdwin::fl::target -lc SR2 Debug &lt;BR /&gt;thread break: Stopped, 0x0, 0x0, cpuARMLittle, ADS-SR2.elf (state, tid, pid, cpu, target) &lt;BR /&gt;cmdwin::fl::target -b 0x1fff0000 0x20000 &lt;BR /&gt;cmdwin::fl::target -v off -l off &lt;BR /&gt;cmdwin::fl::device -d FTFE_PFlash1M0 -o 128Kx64x1 -a 0x0 0xfffff &lt;BR /&gt;cmdwin::fl::image -f ...K22Bootloader.elf -t Auto Detect -re on -r 0xf9000 0xfffff -oe off &lt;BR /&gt;cmdwin::fl::write &lt;BR /&gt; Beginning Operation ... &lt;BR /&gt;------------------------- &lt;BR /&gt;Using restricted address range 0x000F9000 to 0x000FFFFF &lt;BR /&gt;Programming file ...K22Bootloader.elf &lt;BR /&gt;Auto-detection is successful. &lt;BR /&gt; File is of type Elf Format. &lt;BR /&gt; &lt;BR /&gt;Performing target initialization ... &lt;BR /&gt; Downloading Flash Device Driver ... &lt;BR /&gt;Reading flash ID ... &lt;BR /&gt;Auto-detection is successful. &lt;BR /&gt; File is of type Elf Format. &lt;BR /&gt; &lt;BR /&gt;Downloading 0x00003C08 bytes to be programmed at 0x000F9000 &lt;BR /&gt;Executing program .... &lt;BR /&gt; Program Command Succeeded &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 17:17:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Setting-I-O-pin-on-Kinetis-from-debugger-script/m-p/646574#M5621</guid>
      <dc:creator>scottm</dc:creator>
      <dc:date>2017-01-02T17:17:31Z</dc:date>
    </item>
  </channel>
</rss>

