<?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 56F83xxx memory read/write in Digital Signal Controllers</title>
    <link>https://community.nxp.com/t5/Digital-Signal-Controllers/56F83xxx-memory-read-write/m-p/2005328#M3616</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;anyone can explain the fact that when I write data to the 56F83783 chip's flash address 20000, I see in&amp;nbsp; the debug window that my data is actually written to 30000. I have to read it from 30000 to get the written data. all written data has the same offset. please explain the logic and the correct writing process. Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Dec 2024 17:59:28 GMT</pubDate>
    <dc:creator>Ben</dc:creator>
    <dc:date>2024-12-02T17:59:28Z</dc:date>
    <item>
      <title>56F83xxx memory read/write</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/56F83xxx-memory-read-write/m-p/2005328#M3616</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;anyone can explain the fact that when I write data to the 56F83783 chip's flash address 20000, I see in&amp;nbsp; the debug window that my data is actually written to 30000. I have to read it from 30000 to get the written data. all written data has the same offset. please explain the logic and the correct writing process. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 17:59:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/56F83xxx-memory-read-write/m-p/2005328#M3616</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2024-12-02T17:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: 56F83xxx memory read/write</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/56F83xxx-memory-read-write/m-p/2005588#M3618</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I suggest you refer to the application note:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com.cn/docs/en/application-note/AN1952.pdf" target="_blank" rel="noopener"&gt;https://www.nxp.com.cn/docs/en/application-note/AN1952.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;But it is based on DSP56800 core, the MC56F83xxx use DSP56800EX core, so the assembly language has to be modified to adapt to the DSP56800EX core.&lt;/P&gt;
&lt;P&gt;for reading P memory:&lt;/P&gt;
&lt;P&gt;asm short pmemreadns(void * addressFrom,void * addressTo,unsigned short nelem)&lt;BR /&gt;{&lt;BR /&gt;do Y0,endr&lt;BR /&gt;move.w P:(R2)+,y0//addressFrom&lt;BR /&gt;move.w y0,x:(R3)+//addressTo&lt;BR /&gt;endr:&lt;BR /&gt;rts&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Xiangjun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 02:49:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/56F83xxx-memory-read-write/m-p/2005588#M3618</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-12-03T02:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: 56F83xxx memory read/write</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/56F83xxx-memory-read-write/m-p/2006284#M3624</link>
      <description>&lt;P&gt;Hi Rong, thank you for the fast reply. So actually you say that by using the library functions I will not see the address offset I wrote about?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 17:34:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/56F83xxx-memory-read-write/m-p/2006284#M3624</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2024-12-03T17:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: 56F83xxx memory read/write</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/56F83xxx-memory-read-write/m-p/2006510#M3625</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The AN gives source code based on DSP56800 core instead of library.&lt;/P&gt;
&lt;P&gt;You should modify the source code to adapt to the DSP56800EX core because the MC56F83xxx use DSP56800EX core. BTW, the calling convention is the same for the CW compiler.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 02:34:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/56F83xxx-memory-read-write/m-p/2006510#M3625</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-12-04T02:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: 56F83xxx memory read/write</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/56F83xxx-memory-read-write/m-p/2006818#M3627</link>
      <description>&lt;P&gt;sorry, I appreciate your help, but it did not help. I am using the flash space, and is not working with routines like pmemwrite.&lt;/P&gt;&lt;P&gt;anyhow, after investigation where my data is written, I bypassed the problem by adding the address offset while reading my data. I just wanted to understand the reason to the offset.why writing to address 20000... data is written to 30000...&lt;/P&gt;&lt;P&gt;thanks Rong&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;benny&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 08:31:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/56F83xxx-memory-read-write/m-p/2006818#M3627</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2024-12-04T08:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: 56F83xxx memory read/write</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/56F83xxx-memory-read-write/m-p/2006861#M3628</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can you clarify your question?&lt;/P&gt;
&lt;P&gt;This is the program memory map of 56F83xxx.&lt;/P&gt;
&lt;P&gt;The same memory space are mapped to both Program space P: and data space X:&lt;/P&gt;
&lt;P&gt;Furthermore, the 128KW memory are classified as bank 0 and bank 1.&lt;/P&gt;
&lt;P&gt;for example the 64KW memory(bank0) is located at P:0x0000 to 0x FFFF, meanwhile, it is also mapped to X:2_0000 to 0x2_FFFF&lt;/P&gt;
&lt;P&gt;another 64KW memory(bank1) is located at P:0x1_0000 to 0x1_ FFFF, meanwhile, it is also mapped to X:3_0000 to 0x3_FFFF&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1733303520740.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/314004iD39AEEC7126E8A7B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1733303520740.png" alt="xiangjun_rong_0-1733303520740.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If it does not answer your question, I am sorry, pls clarify your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 09:17:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/56F83xxx-memory-read-write/m-p/2006861#M3628</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-12-04T09:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: 56F83xxx memory read/write</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/56F83xxx-memory-read-write/m-p/2007233#M3629</link>
      <description>&lt;P&gt;sorry rong, probably I did not explain myself and cause a confusion:&lt;/P&gt;&lt;P&gt;56F83783&lt;/P&gt;&lt;P&gt;I am writing and reading to the data memory, NOT program memory. when I write data to 2A000 I can see the written data in the debug window at address 35000. if I want to read it - I can read from 35000 and get the data. I am working with it, but do not understand the reason to this offset. (constant B000). it is very strange. both addresses are used by X databus, so writing data to an address should be read at the same address.&lt;/P&gt;&lt;P&gt;I am working with this offset for writing and reading data, and my application works good....&lt;/P&gt;&lt;P&gt;ben&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 16:25:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/56F83xxx-memory-read-write/m-p/2007233#M3629</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2024-12-04T16:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: 56F83xxx memory read/write</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/56F83xxx-memory-read-write/m-p/2007867#M3632</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I come to know your question. I run the PFlash example in SDK. This is the screenshot of PUTTY menu:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1733383301051.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/314223i5571735FE5D2F819/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1733383301051.png" alt="xiangjun_rong_0-1733383301051.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The address P:0x3_F800-&amp;gt;0x4_0000 are Byte address, the real P flash address should be right shift by 1 bit. Or the real address is 0x1_FC00 to 0x2_0000&lt;/P&gt;
&lt;P&gt;I checked the address of P:0x1_FC00&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_1-1733383512517.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/314224i895C22DD5EC10315/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_1-1733383512517.png" alt="xiangjun_rong_1-1733383512517.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can see that the P:0x1_FC00 has changed&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_2-1733383586858.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/314225i5D1D6F2A7D80411A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_2-1733383586858.png" alt="xiangjun_rong_2-1733383586858.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can see that X:3_FC00 also changed.&lt;/P&gt;
&lt;P&gt;If it can not answer your question, pls update the ticket.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 07:28:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/56F83xxx-memory-read-write/m-p/2007867#M3632</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-12-05T07:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: 56F83xxx memory read/write</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/56F83xxx-memory-read-write/m-p/2008020#M3633</link>
      <description>&lt;P&gt;Hi rong&lt;/P&gt;&lt;P&gt;saw your example. you wrote to P:1FC00 and saw the data at X:3FC00. it is normal as in the manual it is written that x:20000-3ffff is mapped from p:0-1ffff.&lt;/P&gt;&lt;P&gt;in my case, I am writing data to x:2A000 and see it at x:35000. reading x:2A000 gives 0.&lt;/P&gt;&lt;P&gt;anyhow, I hope that this is my last project with this old family. I am checking the A153. hope it will be good for industrial / motor applications.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;you gave me good support for the last several years, with this family components.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;ben&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 09:16:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/56F83xxx-memory-read-write/m-p/2008020#M3633</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2024-12-05T09:16:04Z</dc:date>
    </item>
  </channel>
</rss>

