<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://e2echina.ti.com:443/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>TMS320F28388D: 8个words 写flash，报Fapi_Error_AsyncIncorrectDataBufferLength</title><link>https://e2echina.ti.com/support/microcontrollers/c2000/f/c2000-microcontrollers-forum/208718/tms320f28388d-8-words-flash-fapi_error_asyncincorrectdatabufferlength</link><description> Part Number: TMS320F28388D TI工程师你好 
 8个 uint16 写flash，报 Fapi_Error_AsyncIncorrectDataBufferLength 
 
 代码如下------------------------------------------------------------------------------- 
 
 uint16 Buffer [8] = {1,2,3,4,5,6,7,8}; 
 
 for(i=0, u32Index</description><dc:language>en-US</dc:language><generator>Telligent Community 11</generator><item><title>RE: TMS320F28388D: 8个words 写flash，报Fapi_Error_AsyncIncorrectDataBufferLength</title><link>https://e2echina.ti.com/thread/657262?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 09:30:35 GMT</pubDate><guid isPermaLink="false">91561404-af28-475a-b96b-cb6cbaadd097:fd9738ec-14d1-4f9e-97ad-33903db7abfe</guid><dc:creator>Susan Yang</dc:creator><description>&lt;p&gt;&lt;span&gt;使用 Fapi_AutoEccGeneration 模式编程时，一次可以编程的 16 位字（为编程功能提供的第三个参数）的数量只有 4 个或 8 个。&lt;/span&gt;当地址为 128 位对齐时，您可以编程 8 个 16 位字。看起来您的代码没有问题。&lt;/p&gt;
&lt;p&gt;请问您的cmd文件是怎样的？&lt;/p&gt;
&lt;p&gt;您可以看一下下面文档第20页上半部分NOTE的内容&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.ti.com/lit/ug/spnu632/spnu632.pdf"&gt;https://www.ti.com/lit/ug/spnu632/spnu632.pdf&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TMS320F28388D: 8个words 写flash，报Fapi_Error_AsyncIncorrectDataBufferLength</title><link>https://e2echina.ti.com/thread/657127?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 03:31:20 GMT</pubDate><guid isPermaLink="false">91561404-af28-475a-b96b-cb6cbaadd097:5dab6d6e-8276-4a17-8d2e-7943182bc2d1</guid><dc:creator>HE HE</dc:creator><description>&lt;p&gt;文中写到&amp;ldquo;&lt;span&gt;(i) if the address is 128-bit aligned, then a max of eight 16-bit words (128-bits) can be programmed at a time.&amp;rdquo;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;没有解决我的疑问，问题再重述，如下&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;写Buffer，unsigned int[8] (Hex) 0x00008000@Data，已经是128bits对齐，为什么写8个words，会报错&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TMS320F28388D: 8个words 写flash，报Fapi_Error_AsyncIncorrectDataBufferLength</title><link>https://e2echina.ti.com/thread/656872?ContentTypeID=1</link><pubDate>Tue, 07 Sep 2021 05:28:33 GMT</pubDate><guid isPermaLink="false">91561404-af28-475a-b96b-cb6cbaadd097:28714d89-1480-431d-8cf2-58a6dd314220</guid><dc:creator>Susan Yang</dc:creator><description>&lt;p&gt;关于此，请您看一下&lt;/p&gt;
&lt;p&gt;https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/951668/faq-faq-on-flash-api-usage-for-c2000-devices&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;10&lt;/strong&gt;&lt;span&gt;. How many bits can be programmed at a time using Fapi_issueProgrammingCommand()?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;中给出的说明&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TMS320F28388D: 8个words 写flash，报Fapi_Error_AsyncIncorrectDataBufferLength</title><link>https://e2echina.ti.com/thread/656870?ContentTypeID=1</link><pubDate>Tue, 07 Sep 2021 05:16:56 GMT</pubDate><guid isPermaLink="false">91561404-af28-475a-b96b-cb6cbaadd097:8485acfa-4ba1-4a88-9db4-5d93697a8b61</guid><dc:creator>HE HE</dc:creator><description>&lt;p&gt;如果采用 64bit对齐，一次写4个word是否可行？&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TMS320F28388D: 8个words 写flash，报Fapi_Error_AsyncIncorrectDataBufferLength</title><link>https://e2echina.ti.com/thread/656859?ContentTypeID=1</link><pubDate>Tue, 07 Sep 2021 04:46:45 GMT</pubDate><guid isPermaLink="false">91561404-af28-475a-b96b-cb6cbaadd097:1f5780dd-4bce-43c8-b0b9-fb599bac609a</guid><dc:creator>HE HE</dc:creator><description>&lt;p&gt;&lt;strong&gt;Buffer，地址如下，已经是128bits对齐&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;unsigned int[8] (Hex) 0x00008000@Data &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>