<?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: Serial_LDD - impossible to make entire driver work in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Serial-LDD-impossible-to-receive-characters/m-p/442788#M26028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is initialization done by PE_low_level_init() or by separate AS1_Init() ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you enable receiver and transmitter in Processor expert?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2015 15:30:34 GMT</pubDate>
    <dc:creator>lategoodbye</dc:creator>
    <dc:date>2015-08-14T15:30:34Z</dc:date>
    <item>
      <title>Serial_LDD - impossible to receive characters</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Serial-LDD-impossible-to-receive-characters/m-p/442787#M26027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot seem to get the Serial_LDD module to receive any characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What bothers me is that I've set a breakpoint in the Event.c onBlockReceive interrupt, but the program NEVER reaches it. I have tried arduino console, putty, python for sending serial characters, checked the serial port a hundred times, doesn't seem related to the computer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;Main.c:&lt;/H3&gt;&lt;P&gt;/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/&lt;/P&gt;&lt;P&gt;&amp;nbsp; PE_low_level_init();&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*** End of Processor Expert internal initialization.&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; ***/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Write your code here */&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* For example: for(;;) { } */&lt;/P&gt;&lt;P&gt;&amp;nbsp; set_serial_state(FALSE);&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint8_t data[10];&lt;/P&gt;&lt;P&gt;&amp;nbsp; AS1_ReceiveBlock(AS1_DeviceData, data, 1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(;;)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(get_serial_state())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Send it back&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS1_SendBlock(AS1_DeviceData, data, 1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set_serial_state(FALSE);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;functions.h&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#ifndef SOURCES_FUNCTIONS_H_&lt;/P&gt;&lt;P&gt;#define SOURCES_FUNCTIONS_H_&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include "PE_Types.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;extern bool serial_rx_state;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void set_serial_state(bool state);&lt;/P&gt;&lt;P&gt;bool get_serial_state();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#endif /* SOURCES_FUNCTIONS_H_ */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;functions.c&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bool serial_rx_state;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void set_serial_state(bool state)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; serial_rx_state = state;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bool get_serial_state()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; return serial_rx_state;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;And the interrupt in Events.c&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void AS1_OnBlockReceived(LDD_TUserData *UserDataPtr)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;/* Write your code here ... */&lt;/P&gt;&lt;P&gt;&amp;nbsp; set_serial_state(TRUE);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If somebody can hint me why it's not working, I would appreciate it because I'm completely stuck. I'm just stunned that this simple code won't simply work. I'm using KDS 3.00 and KL26Z&lt;/P&gt;&lt;P&gt;BTW the documentation of the serial_ldd component seems out of date, it is referring to a ProcessorExpert.c file, but I cannot find this file anywhere in the hierarchy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS : No block code in this online editor ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT : I cannot even send characters now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;Main .c&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* Write your code here */&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* For example: for(;;) { } */&lt;/P&gt;&lt;P&gt;&amp;nbsp; set_serial_state(FALSE);&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint8_t data[10];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; AS1_ReceiveBlock(AS1_DeviceData, data, 1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint32_t i = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(i &amp;gt;= 10000)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; data[0] = "o";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; data[1] = "k";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; AS1_SendBlock(AS1_DeviceData, data, 2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; i = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; i++;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I receive strictly nothing. Also checked speed (9600 bauds), same on both sides. This is starting to be very frustrating&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 09:22:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Serial-LDD-impossible-to-receive-characters/m-p/442787#M26027</guid>
      <dc:creator>remibeges</dc:creator>
      <dc:date>2015-08-14T09:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Serial_LDD - impossible to make entire driver work</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Serial-LDD-impossible-to-receive-characters/m-p/442788#M26028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is initialization done by PE_low_level_init() or by separate AS1_Init() ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you enable receiver and transmitter in Processor expert?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 15:30:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Serial-LDD-impossible-to-receive-characters/m-p/442788#M26028</guid>
      <dc:creator>lategoodbye</dc:creator>
      <dc:date>2015-08-14T15:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Serial_LDD - impossible to make entire driver work</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Serial-LDD-impossible-to-receive-characters/m-p/442789#M26029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is done in PE_low_level_init&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52719i3EFB9B80B7D211B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything else to activate transmitter and emitter ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT :&lt;/P&gt;&lt;P&gt;I forgot to check transmitter and emitter pins, for using KL26Z usb serial I think they were wrong by default.&lt;/P&gt;&lt;P&gt;I think the following pins are right : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Receiver : TSI0_CH2/PTA1/UART0_RX/TPM2_CH0&lt;/P&gt;&lt;P&gt;Transmitter : TSI0_CH3/PTA2/UART0_TX/TPM2_CH1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll edit once I tested that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 15:37:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Serial-LDD-impossible-to-receive-characters/m-p/442789#M26029</guid>
      <dc:creator>remibeges</dc:creator>
      <dc:date>2015-08-14T15:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Serial_LDD - impossible to receive characters</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Serial-LDD-impossible-to-receive-characters/m-p/442790#M26030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK now I can send characters appropriately. I also solved my initial issue, the mcu never seemed to receive the incoming characters because I am using the MULT2B sensor shield that hosts a bluetooth module. This module will capture any incoming data on the openSDA port, that will not be forwarded to the MCU. And thus the MCU will never see this data if connected by USB cable. Once I removed the shield, the MCU behaved as expected. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 12:14:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Serial-LDD-impossible-to-receive-characters/m-p/442790#M26030</guid>
      <dc:creator>remibeges</dc:creator>
      <dc:date>2015-08-17T12:14:16Z</dc:date>
    </item>
  </channel>
</rss>

