<?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: MySerialPtr = AS1_Init(NULL); problem in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/MySerialPtr-AS1-Init-NULL-problem/m-p/789155#M4162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich&lt;/P&gt;&lt;P&gt;Thanks for getting back to me.&lt;/P&gt;&lt;P&gt;I added the line;&lt;/P&gt;&lt;P&gt;MySerialPtr = AS1_Init(NULL);&lt;/P&gt;&lt;P&gt;to the&amp;nbsp;init_task within mqx_tasks.c&lt;/P&gt;&lt;P&gt;I noticed the header file AS1.h was in the main.c file, so added it to the mqx_tasks.c just to be sure but it made no difference.&lt;/P&gt;&lt;P&gt;When I try to compile the programme, the line&amp;nbsp;&lt;SPAN&gt;MySerialPtr = AS1_Init(NULL); still returns an error indicating too many arguments to function AS1_init....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Appreciate the help with this....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ken&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2018 13:58:15 GMT</pubDate>
    <dc:creator>MWMinor</dc:creator>
    <dc:date>2018-09-24T13:58:15Z</dc:date>
    <item>
      <title>MySerialPtr = AS1_Init(NULL); problem</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/MySerialPtr-AS1-Init-NULL-problem/m-p/789153#M4160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use the ASerialLDD1 serial component - more specifically the RecvBlock and SendBlock functions.&lt;/P&gt;&lt;P&gt;I found the following code in the help on the component;&lt;/P&gt;&lt;P&gt;Component documentation - Typical Usage&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="left" style="padding-left: 15px; padding-right: 10px; width: 907.8px;" valign="top"&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE class=""&gt;volatile bool DataReceivedFlg = FALSE; char OutData[] = "Hello world"; char InpData[10]; LDD_TError Error; LDD_TDeviceData *MySerialPtr;&amp;nbsp; void main(void) {&amp;nbsp;&amp;nbsp; . . .&amp;nbsp;&amp;nbsp; MySerialPtr = AS1_Init(NULL);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialization of AS1 component */&amp;nbsp;&amp;nbsp; for(;;) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error = AS1_ReceiveBlock(MySerialPtr, InpData, 1U);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Start reception of one character */&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (!DataReceivedFlg) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Wait until 'e' character is received */&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (InpData[0] == 'e') {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error = AS1_SendBlock(MySerialPtr, OutData, sizeof(OutData)); /* Send block of characters */&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataReceivedFlg = FALSE;&amp;nbsp;&amp;nbsp; } }
 &lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN&gt;But when I add this code to my project, I get an error message from the compiler;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MySerialPtr = AS1_Init(NULL);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;too many agrumentsto function AS1_Init void value not ignored as it should be.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Has anyone else seen this or am I doing something wrong...?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 08:12:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/MySerialPtr-AS1-Init-NULL-problem/m-p/789153#M4160</guid>
      <dc:creator>MWMinor</dc:creator>
      <dc:date>2018-09-24T08:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: MySerialPtr = AS1_Init(NULL); problem</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/MySerialPtr-AS1-Init-NULL-problem/m-p/789154#M4161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The prototype is&lt;/P&gt;&lt;P&gt;LDD_TDeviceData* AS1_Init(LDD_TUserData *UserDataPtr)&lt;/P&gt;&lt;P&gt;so it really takes an argument.&lt;/P&gt;&lt;P&gt;Have you missed to include the header file?&lt;/P&gt;&lt;P&gt;#include "AS1.h"&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 10:28:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/MySerialPtr-AS1-Init-NULL-problem/m-p/789154#M4161</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2018-09-24T10:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: MySerialPtr = AS1_Init(NULL); problem</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/MySerialPtr-AS1-Init-NULL-problem/m-p/789155#M4162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich&lt;/P&gt;&lt;P&gt;Thanks for getting back to me.&lt;/P&gt;&lt;P&gt;I added the line;&lt;/P&gt;&lt;P&gt;MySerialPtr = AS1_Init(NULL);&lt;/P&gt;&lt;P&gt;to the&amp;nbsp;init_task within mqx_tasks.c&lt;/P&gt;&lt;P&gt;I noticed the header file AS1.h was in the main.c file, so added it to the mqx_tasks.c just to be sure but it made no difference.&lt;/P&gt;&lt;P&gt;When I try to compile the programme, the line&amp;nbsp;&lt;SPAN&gt;MySerialPtr = AS1_Init(NULL); still returns an error indicating too many arguments to function AS1_init....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Appreciate the help with this....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ken&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 13:58:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/MySerialPtr-AS1-Init-NULL-problem/m-p/789155#M4162</guid>
      <dc:creator>MWMinor</dc:creator>
      <dc:date>2018-09-24T13:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: MySerialPtr = AS1_Init(NULL); problem</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/MySerialPtr-AS1-Init-NULL-problem/m-p/789156#M4163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ken,&lt;/P&gt;&lt;P&gt;I would search the sources for any AS1_Init (maybe you have something weird in there?).&lt;/P&gt;&lt;P&gt;And maybe have a look at the preprocessor listing to see from where this comes from?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 14:07:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/MySerialPtr-AS1-Init-NULL-problem/m-p/789156#M4163</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2018-09-24T14:07:44Z</dc:date>
    </item>
  </channel>
</rss>

