<?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>LPC MicrocontrollersのトピックLPC11C24 Some SDO Entries not working</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-Some-SDO-Entries-not-working/m-p/537162#M11394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kwerner on Mon Jul 22 02:05:36 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am have an LPCXpresso LPC11C24 Board connected via CAN Bus to my PC using an CAN2USb adapter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have setup the CANopen interface with an Object Dictionary containing several entries of various types, length, and sizes. Most of them work fine, reading and writing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But some of them always give the SDO Abort Code "OBJECT DOES NOT EXIST", despite them being defined like the working ones.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!--break--&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example :&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
CAN_ODENTRY OD [] =
{
...
{ 0x2004, 0x00,OD_EXP_RW | 4,(uint8_t *)&amp;amp;A3984_motion },
{ 0x2004, 0x01,OD_EXP_RO | 4,(uint8_t *)&amp;amp;A3984_steps },
{ 0x2004, 0x02,OD_EXP_RW | 4,(uint8_t *)&amp;amp;A3984_speed },
{ 0x2004, 0x03,OD_EXP_RW | 4,(uint8_t *)&amp;amp;A3984_accel },
{ 0x2004, 0x04,OD_EXP_RW | 4,(uint8_t *)&amp;amp;A3984_decel },
{ 0x2004, 0x05,OD_EXP_RW | 4,(uint8_t *)&amp;amp;A3984_current },
...
};
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The subindex 0x00 gives me "OBJECT DOES NOT EXIST", but all other subindices are working fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To check if the SDO-expedited-read callback was the culprit, I ran the code in debugging mode. The callback does not even get called when the Abort Code is returned. It seems like the error lies in the CANopen drivers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or did I make a mistake in defining the Object Dictionary entries? Could the first subindex have some special role? But why then does another index with several subindices work fine?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone experienced the same problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Konstantin Werner&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:36:15 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:36:15Z</dc:date>
    <item>
      <title>LPC11C24 Some SDO Entries not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-Some-SDO-Entries-not-working/m-p/537162#M11394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kwerner on Mon Jul 22 02:05:36 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am have an LPCXpresso LPC11C24 Board connected via CAN Bus to my PC using an CAN2USb adapter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have setup the CANopen interface with an Object Dictionary containing several entries of various types, length, and sizes. Most of them work fine, reading and writing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But some of them always give the SDO Abort Code "OBJECT DOES NOT EXIST", despite them being defined like the working ones.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!--break--&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example :&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
CAN_ODENTRY OD [] =
{
...
{ 0x2004, 0x00,OD_EXP_RW | 4,(uint8_t *)&amp;amp;A3984_motion },
{ 0x2004, 0x01,OD_EXP_RO | 4,(uint8_t *)&amp;amp;A3984_steps },
{ 0x2004, 0x02,OD_EXP_RW | 4,(uint8_t *)&amp;amp;A3984_speed },
{ 0x2004, 0x03,OD_EXP_RW | 4,(uint8_t *)&amp;amp;A3984_accel },
{ 0x2004, 0x04,OD_EXP_RW | 4,(uint8_t *)&amp;amp;A3984_decel },
{ 0x2004, 0x05,OD_EXP_RW | 4,(uint8_t *)&amp;amp;A3984_current },
...
};
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The subindex 0x00 gives me "OBJECT DOES NOT EXIST", but all other subindices are working fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To check if the SDO-expedited-read callback was the culprit, I ran the code in debugging mode. The callback does not even get called when the Abort Code is returned. It seems like the error lies in the CANopen drivers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or did I make a mistake in defining the Object Dictionary entries? Could the first subindex have some special role? But why then does another index with several subindices work fine?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone experienced the same problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Konstantin Werner&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:36:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-Some-SDO-Entries-not-working/m-p/537162#M11394</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 Some SDO Entries not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-Some-SDO-Entries-not-working/m-p/537163#M11395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kwerner on Mon Jul 22 06:28:40 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Update:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The CANOPEN_sdo_req Callback function got called instead of CANOPEN_sdo_exp_read. The Request-Data showed the correct Index and Subindex.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So why did the CANOPEN handler not match that to the index/subindex in the Object dictionary?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I played around with the Object Dictionary entries and changed some Index-Numbers (just to check if other numbers might work) and now no index &amp;gt;0x2000 works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact, when I try to read index 0x2001, it goes immediately to the HardFault_Handler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is going on? :(&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:36:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-Some-SDO-Entries-not-working/m-p/537163#M11395</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 Some SDO Entries not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-Some-SDO-Entries-not-working/m-p/537164#M11396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kwerner on Mon Jul 22 08:16:26 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;... |( &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After 2 days of nerve wracking search for the problem it was just a missing &lt;/SPAN&gt;&lt;I&gt;const &lt;/I&gt;&lt;SPAN&gt;declaration for the Object Dictionaries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;const CAN_ODCONSTENTRY constOD [] = { ... };
const CAN_ODENTRY OD [] = { ... };&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The datasheet mentions the &lt;/SPAN&gt;&lt;I&gt;const&lt;/I&gt;&lt;SPAN&gt;, but the canopen_onchip example that is included with LPCXpressos lacks the &lt;/SPAN&gt;&lt;I&gt;const&lt;/I&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess this is a good example for the validity of RTFM...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:36:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-Some-SDO-Entries-not-working/m-p/537164#M11396</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:36:16Z</dc:date>
    </item>
  </channel>
</rss>

