You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mynewt.apache.org by jy...@aritron.com on 2017/08/25 10:21:07 UTC
Regarding Arduino M0 zero serial communication implementation
Dear Sir/Madam,
For testing purpose, we are implementing serial communication with
arduino M0 Pro with ESP8266MOD. I am trying with the basic blinky
application with shell and console implementation. I followed all the
steps mentioned in the links below:
Creating Project and target:
https://mynewt.apache.org/latest/os/tutorials/arduino_zero/
Creating Serial set up:
https://mynewt.apache.org/latest/os/get_started/serial_access/
Console and shell Implementation:
https://mynewt.apache.org/latest/os/tutorials/blinky_console/
After we run the application, cant able to get the shell prompt as
mentioned by you through minicom.
With Arduino IDE and the arduino EDBG boot loader we can able to
communicate with the board.
But with the arduino_boot and arduino_blinky targets in mynewt cant able
to communicate.
We are using Ubuntu system, and can able to run the basic blinky app in
the arduino M0 board.
Please help us to solve the issue.
With regards,
Jyothi.
Re: Regarding Arduino M0 zero serial communication implementation
Posted by jy...@aritron.com.
On 2017-08-25 15:39, Christopher Collins wrote:
> Hi Jyothi,
>
> On Fri, Aug 25, 2017 at 12:10:50PM +0000, jyothi.s@aritron.com wrote:
> [...]
>> After we run the application, cant able to get the shell prompt as
>> mentioned by you through minicom. With Arduino IDE and the arduino
>> EDBG boot loader we can able to communicate with the board. But with
>> the arduino_boot and arduino_blinky targets in mynewt cant able to
>> communicate.
>
> Did you set the BSP_ARDUINO_ZERO_PRO syscfg setting to 1, as indicated
> in https://mynewt.apache.org/latest/os/tutorials/arduino_zero/? That
> step is easy to miss.
>
> Chris
Thanks Chris for your reply.
I made the target syscfg file :
SHELL_TASK: 1
SHELL_PROMPT_MODULE: 1
CONSOLE_TICKS: 1
CONSOLE_PROMPT: 1
BSP_ARDUINO_ZERO_PRO: 1
I can able to run blinky application in my arduino zero only I cannot
able to get the shell and console window in minicom.
Re: Regarding Arduino M0 zero serial communication implementation
Posted by jy...@aritron.com.
On 2017-08-25 16:53, marko kiiskila wrote:
>> On Aug 25, 2017, at 8:39 AM, Christopher Collins <ch...@runtime.io>
>> wrote:
>>
>> Hi Jyothi,
>>
>> On Fri, Aug 25, 2017 at 12:10:50PM +0000, jyothi.s@aritron.com wrote:
>> [...]
>>> After we run the application, cant able to get the shell prompt as
>>> mentioned by you through minicom. With Arduino IDE and the arduino
>>> EDBG boot loader we can able to communicate with the board. But with
>>> the arduino_boot and arduino_blinky targets in mynewt cant able to
>>> communicate.
>>
>> Did you set the BSP_ARDUINO_ZERO_PRO syscfg setting to 1, as indicated
>> in https://mynewt.apache.org/latest/os/tutorials/arduino_zero/? That
>> step is easy to miss.
>>
>
> Also note that blinky does not have shell compiled in. It’s a very
> simple
> app which just blinks an LED. Try the app slinky instead; that one has
> shell
> enabled.
Hi marko,
In this tutorial it is mentioned that we can enable the console and
shell in blinky application.
https://mynewt.apache.org/latest/os/tutorials/blinky_console/
I followed all the steps but didn't able to achieve it.
Re: Regarding Arduino M0 zero serial communication implementation
Posted by jy...@aritron.com.
On 2017-08-29 15:50, marko kiiskila wrote:
>> On Aug 28, 2017, at 11:49 PM, jyothi.s@aritron.com wrote:
>>
>> On 2017-08-28 17:41, marko kiiskila wrote:
>>> I just tried it, it worked for me at least.
>>> Take a look at output from ‘newt target dep <yourtarget>’, make sure
>>> you
>>> seen console/full, as well as shell as listed packages.
>>> Make sure that main() goes and executes
>>> os_eventq_run(os_eventq_dflt_get()) in
>>> a loop, as that’s needed for shell to pick up uart input.
>>>> On Aug 27, 2017, at 9:24 PM, jyothi.s@aritron.com wrote:
>>>> On 2017-08-25 17:21, Christopher Collins wrote:
>>>>> On Fri, Aug 25, 2017 at 09:53:26AM -0700, marko kiiskila wrote:
>>>>>> Also note that blinky does not have shell compiled in. It’s a very
>>>>>> simple
>>>>>> app which just blinks an LED. Try the app slinky instead; that one
>>>>>> has shell
>>>>>> enabled.
>>>>> I believe Jyothi is following this tutorial which adds console and
>>>>> shell
>>>>> to blinky:
>>>>> https://mynewt.apache.org/latest/os/tutorials/blinky_console/.
>>>>> Chris
>>>> Hi chris,
>>>> Yes chris I am following that tutorial only. But not able to succeed
>>>> any one has tried for arduino M0 pro for console and shell.
>> Hi marko,
>> Thqs for your reply.
>> I already implemented all the packages and able to see console/full
>> and shell. And even I checked in main() which has
>> os_eventq_run(os_eventq_dflt_get()) in while loop.
>> In serial port setup tutorial is it must to connect to board FT232H to
>> arduino M0 pro to get the shell commands in console using minicom.
>> I am connecting programming port of arduino M0 pro to my ubuntu system
>> didn't connect FT232H board and can able to see the blink on the board
>> but unable to get the shell console.
>
>
> https://mynewt.apache.org/latest/os/get_started/serial_access/
> <https://mynewt.apache.org/latest/os/get_started/serial_access/>
> The tutorial expects you to use the UART pins from pin header (labeled
> RX<-0 and TX>-1).
> Are you using those?
> Tutorial also calls out minicom as the terminal program, which enables
> hardware flow control
> by default. Remember to turn that off.
Hi Marko,
Thanks for your help. After disabling hardware flow control in minicom
we are getting garble messages. We used minicom at 115200 bauds(the auto
baud rate is also same). One more thing, we cant see any shell prompt as
mentioned in tutorial.
Re: Regarding Arduino M0 zero serial communication implementation
Posted by jy...@aritron.com.
Thanks for all who supported me for solving the issue. Finally I can
able to figure out the solution. That is my USB to TTL converter which I
am using not able to give proper voltage levels. So for testing I
converted my Arduino UNO board to USB TTL converter and connected to
Arduino M0 pro. Now I can able to get the shell prompts from blinky
console app.
On 2017-08-29 15:50, marko kiiskila wrote:
>> On Aug 28, 2017, at 11:49 PM, jyothi.s@aritron.com wrote:
>>
>> On 2017-08-28 17:41, marko kiiskila wrote:
>>> I just tried it, it worked for me at least.
>>> Take a look at output from ‘newt target dep <yourtarget>’, make sure
>>> you
>>> seen console/full, as well as shell as listed packages.
>>> Make sure that main() goes and executes
>>> os_eventq_run(os_eventq_dflt_get()) in
>>> a loop, as that’s needed for shell to pick up uart input.
>>>> On Aug 27, 2017, at 9:24 PM, jyothi.s@aritron.com wrote:
>>>> On 2017-08-25 17:21, Christopher Collins wrote:
>>>>> On Fri, Aug 25, 2017 at 09:53:26AM -0700, marko kiiskila wrote:
>>>>>> Also note that blinky does not have shell compiled in. It’s a very
>>>>>> simple
>>>>>> app which just blinks an LED. Try the app slinky instead; that one
>>>>>> has shell
>>>>>> enabled.
>>>>> I believe Jyothi is following this tutorial which adds console and
>>>>> shell
>>>>> to blinky:
>>>>> https://mynewt.apache.org/latest/os/tutorials/blinky_console/.
>>>>> Chris
>>>> Hi chris,
>>>> Yes chris I am following that tutorial only. But not able to succeed
>>>> any one has tried for arduino M0 pro for console and shell.
>> Hi marko,
>> Thqs for your reply.
>> I already implemented all the packages and able to see console/full
>> and shell. And even I checked in main() which has
>> os_eventq_run(os_eventq_dflt_get()) in while loop.
>> In serial port setup tutorial is it must to connect to board FT232H to
>> arduino M0 pro to get the shell commands in console using minicom.
>> I am connecting programming port of arduino M0 pro to my ubuntu system
>> didn't connect FT232H board and can able to see the blink on the board
>> but unable to get the shell console.
>
>
> https://mynewt.apache.org/latest/os/get_started/serial_access/
> <https://mynewt.apache.org/latest/os/get_started/serial_access/>
> The tutorial expects you to use the UART pins from pin header (labeled
> RX<-0 and TX>-1).
> Are you using those?
> Tutorial also calls out minicom as the terminal program, which enables
> hardware flow control
> by default. Remember to turn that off.
Re: Regarding Arduino M0 zero serial communication implementation
Posted by marko kiiskila <ma...@runtime.io>.
> On Aug 28, 2017, at 11:49 PM, jyothi.s@aritron.com wrote:
>
> On 2017-08-28 17:41, marko kiiskila wrote:
>> I just tried it, it worked for me at least.
>> Take a look at output from ‘newt target dep <yourtarget>’, make sure you
>> seen console/full, as well as shell as listed packages.
>> Make sure that main() goes and executes os_eventq_run(os_eventq_dflt_get()) in
>> a loop, as that’s needed for shell to pick up uart input.
>>> On Aug 27, 2017, at 9:24 PM, jyothi.s@aritron.com wrote:
>>> On 2017-08-25 17:21, Christopher Collins wrote:
>>>> On Fri, Aug 25, 2017 at 09:53:26AM -0700, marko kiiskila wrote:
>>>>> Also note that blinky does not have shell compiled in. It’s a very simple
>>>>> app which just blinks an LED. Try the app slinky instead; that one has shell
>>>>> enabled.
>>>> I believe Jyothi is following this tutorial which adds console and shell
>>>> to blinky:
>>>> https://mynewt.apache.org/latest/os/tutorials/blinky_console/.
>>>> Chris
>>> Hi chris,
>>> Yes chris I am following that tutorial only. But not able to succeed any one has tried for arduino M0 pro for console and shell.
> Hi marko,
> Thqs for your reply.
> I already implemented all the packages and able to see console/full and shell. And even I checked in main() which has os_eventq_run(os_eventq_dflt_get()) in while loop.
> In serial port setup tutorial is it must to connect to board FT232H to arduino M0 pro to get the shell commands in console using minicom.
> I am connecting programming port of arduino M0 pro to my ubuntu system didn't connect FT232H board and can able to see the blink on the board but unable to get the shell console.
https://mynewt.apache.org/latest/os/get_started/serial_access/ <https://mynewt.apache.org/latest/os/get_started/serial_access/>
The tutorial expects you to use the UART pins from pin header (labeled RX<-0 and TX>-1).
Are you using those?
Tutorial also calls out minicom as the terminal program, which enables hardware flow control
by default. Remember to turn that off.
Re: Regarding Arduino M0 zero serial communication implementation
Posted by jy...@aritron.com.
On 2017-08-28 17:41, marko kiiskila wrote:
> I just tried it, it worked for me at least.
>
> Take a look at output from ‘newt target dep <yourtarget>’, make sure
> you
> seen console/full, as well as shell as listed packages.
>
> Make sure that main() goes and executes
> os_eventq_run(os_eventq_dflt_get()) in
> a loop, as that’s needed for shell to pick up uart input.
>
>> On Aug 27, 2017, at 9:24 PM, jyothi.s@aritron.com wrote:
>>
>> On 2017-08-25 17:21, Christopher Collins wrote:
>>> On Fri, Aug 25, 2017 at 09:53:26AM -0700, marko kiiskila wrote:
>>>> Also note that blinky does not have shell compiled in. It’s a very
>>>> simple
>>>> app which just blinks an LED. Try the app slinky instead; that one
>>>> has shell
>>>> enabled.
>>> I believe Jyothi is following this tutorial which adds console and
>>> shell
>>> to blinky:
>>> https://mynewt.apache.org/latest/os/tutorials/blinky_console/.
>>> Chris
>> Hi chris,
>> Yes chris I am following that tutorial only. But not able to succeed
>> any one has tried for arduino M0 pro for console and shell.
Hi marko,
Thqs for your reply.
I already implemented all the packages and able to see console/full and
shell. And even I checked in main() which has
os_eventq_run(os_eventq_dflt_get()) in while loop.
In serial port setup tutorial is it must to connect to board FT232H to
arduino M0 pro to get the shell commands in console using minicom.
I am connecting programming port of arduino M0 pro to my ubuntu system
didn't connect FT232H board and can able to see the blink on the board
but unable to get the shell console.
Re: Regarding Arduino M0 zero serial communication implementation
Posted by marko kiiskila <ma...@runtime.io>.
I just tried it, it worked for me at least.
Take a look at output from ‘newt target dep <yourtarget>’, make sure you
seen console/full, as well as shell as listed packages.
Make sure that main() goes and executes os_eventq_run(os_eventq_dflt_get()) in
a loop, as that’s needed for shell to pick up uart input.
> On Aug 27, 2017, at 9:24 PM, jyothi.s@aritron.com wrote:
>
> On 2017-08-25 17:21, Christopher Collins wrote:
>> On Fri, Aug 25, 2017 at 09:53:26AM -0700, marko kiiskila wrote:
>>> Also note that blinky does not have shell compiled in. It’s a very simple
>>> app which just blinks an LED. Try the app slinky instead; that one has shell
>>> enabled.
>> I believe Jyothi is following this tutorial which adds console and shell
>> to blinky:
>> https://mynewt.apache.org/latest/os/tutorials/blinky_console/.
>> Chris
> Hi chris,
> Yes chris I am following that tutorial only. But not able to succeed any one has tried for arduino M0 pro for console and shell.
Re: Regarding Arduino M0 zero serial communication implementation
Posted by jy...@aritron.com.
On 2017-08-25 17:21, Christopher Collins wrote:
> On Fri, Aug 25, 2017 at 09:53:26AM -0700, marko kiiskila wrote:
>> Also note that blinky does not have shell compiled in. It’s a very
>> simple
>> app which just blinks an LED. Try the app slinky instead; that one has
>> shell
>> enabled.
>
> I believe Jyothi is following this tutorial which adds console and
> shell
> to blinky:
> https://mynewt.apache.org/latest/os/tutorials/blinky_console/.
>
> Chris
Hi chris,
Yes chris I am following that tutorial only. But not able to succeed any
one has tried for arduino M0 pro for console and shell.
Re: Regarding Arduino M0 zero serial communication implementation
Posted by Christopher Collins <ch...@runtime.io>.
On Fri, Aug 25, 2017 at 09:53:26AM -0700, marko kiiskila wrote:
> Also note that blinky does not have shell compiled in. It’s a very simple
> app which just blinks an LED. Try the app slinky instead; that one has shell
> enabled.
I believe Jyothi is following this tutorial which adds console and shell
to blinky:
https://mynewt.apache.org/latest/os/tutorials/blinky_console/.
Chris
Re: Regarding Arduino M0 zero serial communication implementation
Posted by marko kiiskila <ma...@runtime.io>.
> On Aug 25, 2017, at 8:39 AM, Christopher Collins <ch...@runtime.io> wrote:
>
> Hi Jyothi,
>
> On Fri, Aug 25, 2017 at 12:10:50PM +0000, jyothi.s@aritron.com wrote:
> [...]
>> After we run the application, cant able to get the shell prompt as
>> mentioned by you through minicom. With Arduino IDE and the arduino
>> EDBG boot loader we can able to communicate with the board. But with
>> the arduino_boot and arduino_blinky targets in mynewt cant able to
>> communicate.
>
> Did you set the BSP_ARDUINO_ZERO_PRO syscfg setting to 1, as indicated
> in https://mynewt.apache.org/latest/os/tutorials/arduino_zero/? That
> step is easy to miss.
>
Also note that blinky does not have shell compiled in. It’s a very simple
app which just blinks an LED. Try the app slinky instead; that one has shell
enabled.
Re: Regarding Arduino M0 zero serial communication implementation
Posted by Christopher Collins <ch...@runtime.io>.
Hi Jyothi,
On Fri, Aug 25, 2017 at 12:10:50PM +0000, jyothi.s@aritron.com wrote:
[...]
> After we run the application, cant able to get the shell prompt as
> mentioned by you through minicom. With Arduino IDE and the arduino
> EDBG boot loader we can able to communicate with the board. But with
> the arduino_boot and arduino_blinky targets in mynewt cant able to
> communicate.
Did you set the BSP_ARDUINO_ZERO_PRO syscfg setting to 1, as indicated
in https://mynewt.apache.org/latest/os/tutorials/arduino_zero/? That
step is easy to miss.
Chris
Regarding Arduino M0 zero serial communication implementation
Posted by jy...@aritron.com.
Dear Sir/Madam,
For testing purpose, we are implementing serial communication with
arduino M0 Pro with ESP8266MOD. I am trying with the basic blinky
application with shell and console implementation. I followed all the
steps mentioned in the links below:
Creating Project and target:
https://mynewt.apache.org/latest/os/tutorials/arduino_zero/
Creating Serial set up:
https://mynewt.apache.org/latest/os/get_started/serial_access/
Console and shell Implementation:
https://mynewt.apache.org/latest/os/tutorials/blinky_console/
After we run the application, cant able to get the shell prompt as
mentioned by you through minicom.
With Arduino IDE and the arduino EDBG boot loader we can able to
communicate with the board.
But with the arduino_boot and arduino_blinky targets in mynewt cant able
to communicate.
We are using Ubuntu system, and can able to run the basic blinky app in
the arduino M0 board.
Please help us to solve the issue.
With regards,
Jyothi.