<?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: How to setup external PRAM Debugging for DSP56F8367 in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-setup-external-PRAM-Debugging-for-DSP56F8367/m-p/620256#M5279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eventually I figured out that I had to swap the values for my "change x" commands.&amp;nbsp;This got my chip selects and other registered configured properly.&amp;nbsp;However I have still not been able to get my Debug connection to actually program the PRAM section. I have a related, but distinct issue where I was unable to get my &lt;EM&gt;internal&lt;/EM&gt; PRAM section programmed through the debugger.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2017 22:06:25 GMT</pubDate>
    <dc:creator>steve_n</dc:creator>
    <dc:date>2017-01-20T22:06:25Z</dc:date>
    <item>
      <title>How to setup external PRAM Debugging for DSP56F8367</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-setup-external-PRAM-Debugging-for-DSP56F8367/m-p/620254#M5277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for some help getting&amp;nbsp;CodeWarrior for MCU 10.6.4 to download program code to a external&amp;nbsp;memory chip.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an 56F8367, with CS0 tied to the memory chip's enable pin, D0:15 for data, and A0:17 for address.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following C code written by Processor Expert allows me to read and write to it at runtime:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;/* External bus initialization */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;/* SEMI_CSBAR_0: ADR23=0,ADR22=0,ADR21=0,ADR20=0,ADR19=0,ADR18=1,ADR17=0,ADR16=0,ADR15=0,ADR14=0,ADR13=0,ADR12=0,BLKSZ3=0,BLKSZ2=1,BLKSZ1=1,BLKSZ0=0 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;setReg16(SEMI_CSBAR_0, 1286U); /* Chip select 0 base address register */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;/* SEMI_CSOR_0: RWS=2,BYTE_EN=3,R_W=3,PS_DS=2,WWS=2 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;setReg16(SEMI_CSOR_0, 6082U); /* Chip select 0 option register */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;/* SEMI_CSTC_0: WWSS=1,WWSH=1,RWSS=1,RWSH=0,??=0,??=0,??=0,??=0,??=0,MDAR=1 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;setReg16(SEMI_CSTC_0, 21505U); /* Chip select 0 timing control register */ &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;/* GPIO_D_PER: PE|=256 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;setReg16Bits(GPIO_D_PER, 256U);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;/* SEMI_BCR: DRV=1,BMDAR=0,??=0,??=0,BWWS=18,BRWS=28 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;setReg16(SEMI_BCR, 33372U); /* Bus control register */ &lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can write code that writes P code to&amp;nbsp;the external ram and then runs from the external ram, but I would like the debugger to set up the chip selects and directly program to external ram, and then run from it.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a linker command file that writes and links and .elf to 0x50000 which is where i have my chip select (&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;CSBAR_0 = 0x506&lt;/SPAN&gt;).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the MC56F8367_PRAM.tcl, which I thought I could modify to do just that. So I took the values in the C code above and translated it to the initialization file, for example:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;# /* SEMI_CSBAR_0: ADR23=0,ADR22=0,ADR21=0,ADR20=0,ADR19=0,ADR18=1,ADR17=0,ADR16=0,ADR15=0,ADR14=0,ADR13=0,ADR12=0,BLKSZ3=0,BLKSZ2=1,BLKSZ1=1,BLKSZ0=0 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;# CSBAR_0 = 0xF020, 1286U = 0x0506&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;change x:0xF020 0x0506&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;# /* SEMI_CSOR_0: RWS=2,BYTE_EN=3,R_W=3,PS_DS=2,WWS=2 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;# CSOR_0 = 0xF028, 6082U = 0x17C2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;change x:0x00f028 0x17C2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;# /* SEMI_CSTC_0: WWSS=1,WWSH=1,RWSS=1,RWSH=0,??=0,??=0,??=0,??=0,??=0,MDAR=1 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;# CSTC_0 = 0xF030, 21505U = 0x5401&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;change x:0x00f030 0x5401&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;# /* GPIO_D_PER: PE|=256 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;# GPIO_D_PER = 0xF323, 256U = 0x100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;change x:0x00f323 0xff1f&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;# /* SEMI_BCR: DRV=1,BMDAR=0,??=0,??=0,BWWS=18,BRWS=28 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;# EMI_BCR = 0xF038, 33372U = 0x825C&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 11px;"&gt;change x:0x00f038 0x825C&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This however does not work. The EMI registers appear unchanged by any of those &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;change&lt;/SPAN&gt; arguments.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, am I missing something? For example,does the memory configuration file (*.mem) need to be modified? Are there any samples I can download somewhere?&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 18:23:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-setup-external-PRAM-Debugging-for-DSP56F8367/m-p/620254#M5277</guid>
      <dc:creator>steve_n</dc:creator>
      <dc:date>2016-09-14T18:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup external PRAM Debugging for DSP56F8367</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-setup-external-PRAM-Debugging-for-DSP56F8367/m-p/620255#M5278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Hello Stephen&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;By default, the register should be able to be configured in memory initialization file (*.tcl).&amp;nbsp; Please check whether GPIO_D_PER register is 0x00FF after your programming.&amp;nbsp; And whether the other registers configured in *.tcl are also shown as Reset Value in debugger.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;If so, it shows that the debugger generates a reset signal before running the application. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Best Regards&lt;BR /&gt;Fiona Kuang&lt;BR /&gt;TIC - Technical Information Center&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Mark Correct button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 09:54:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-setup-external-PRAM-Debugging-for-DSP56F8367/m-p/620255#M5278</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2016-09-20T09:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup external PRAM Debugging for DSP56F8367</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-setup-external-PRAM-Debugging-for-DSP56F8367/m-p/620256#M5279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eventually I figured out that I had to swap the values for my "change x" commands.&amp;nbsp;This got my chip selects and other registered configured properly.&amp;nbsp;However I have still not been able to get my Debug connection to actually program the PRAM section. I have a related, but distinct issue where I was unable to get my &lt;EM&gt;internal&lt;/EM&gt; PRAM section programmed through the debugger.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 22:06:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-setup-external-PRAM-Debugging-for-DSP56F8367/m-p/620256#M5279</guid>
      <dc:creator>steve_n</dc:creator>
      <dc:date>2017-01-20T22:06:25Z</dc:date>
    </item>
  </channel>
</rss>

