flashing tinytile


Dharmappa, Savinay <savinay.dharmappa@...>
 

Hi Tamra,

Flash sample/synchronization/ application you will be able to see the prints. Flashing via dfu-util for tinytile works fine. After flashing "hello world" sample application ,a reset is required which is disconnecting /dev/ttyACM0 not sure
Why it is happening.

Regards
savinay

-----Original Message-----
From: zephyr-devel-bounces@... [mailto:zephyr-devel-bounces@...] On Behalf Of zephyr-devel-request@...
Sent: Thursday, September 21, 2017 3:35 PM
To: zephyr-devel@...
Subject: Zephyr-devel Digest, Vol 9, Issue 41

Send Zephyr-devel mailing list submissions to
zephyr-devel@...

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.zephyrproject.org/mailman/listinfo/zephyr-devel
or, via email, send a message with subject or body 'help' to
zephyr-devel-request@...

You can reach the person managing the list at
zephyr-devel-owner@...

When replying, please edit your Subject line so it is more specific than "Re: Contents of Zephyr-devel digest..."


Today's Topics:

1. Is it possible to have two processes communicate in ARM Qemu?
(Hui Yie Teh)
2. Re: Is it possible to have two processes communicate in ARM
Qemu? (Andrei Emeltchenko)
3. Re: flash tinytile (Buriez, Patrice)


----------------------------------------------------------------------

Message: 1
Date: Thu, 21 Sep 2017 21:16:21 +1200
From: Hui Yie Teh <hteh703@...>
To: zephyr-devel@...
Subject: [Zephyr-devel] Is it possible to have two processes
communicate in ARM Qemu?
Message-ID:
<CAPLZ2xMBUo66S92EUQWOQGA1Bj7NhfUSVO9ynoWtKwUCZKwwbg@...>
Content-Type: text/plain; charset="utf-8"

Hi,

Is there an inter-process communication functionality on Zephyr running on Linux for Qemu?

I have an application on Zephyr that gets data from an external source.
However, since I do not have the actual device, I will be emulating this on Qemu. So I will have 2 applications, one solely for generating the output.

However, how can these two applications communicate? I know this can be done in C using named pipes. Is it possible to do that with Zephyr as well?

Any help would be much appreciated. Thanks.

Cheers,
Yie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zephyrproject.org/pipermail/zephyr-devel/attachments/20170921/ab9c3e62/attachment-0001.html>

------------------------------

Message: 2
Date: Thu, 21 Sep 2017 12:54:05 +0300
From: Andrei Emeltchenko <andrei.emeltchenko.news@...>
To: Hui Yie Teh <hteh703@...>
Cc: zephyr-devel@...
Subject: Re: [Zephyr-devel] Is it possible to have two processes
communicate in ARM Qemu?
Message-ID: <20170921095403.gbbhmcsbzxk6upgc@...>
Content-Type: text/plain; charset=iso-8859-1

Hi,

On Thu, Sep 21, 2017 at 09:16:21PM +1200, Hui Yie Teh wrote:
Hi,

Is there an inter-process communication functionality on Zephyr running on
Linux for Qemu??
I have an application on Zephyr that gets data from an external source.
However, since I do not have the actual device, I will be emulating this
on Qemu. So I will have 2 applications, one solely for generating the
output.?
However, how can these two applications communicate? I know this can be
done in C using named pipes. Is it possible to do that with Zephyr as
well?
We use QEMU_EXTRA_FLAGS for providing this parameter for QEMU, for example in bluetooth we may run btproxy on Linux host and QEMU_EXTRA_FLAGS like following:

QEMU_EXTRA_FLAGS = -serial unix:/tmp/bt-server-bredr

Best regards
Andrei Emeltchenko


------------------------------

Message: 3
Date: Thu, 21 Sep 2017 10:04:46 +0000
From: "Buriez, Patrice" <patrice.buriez@...>
To: Tamra Oyama <tamrako@...>,
"zephyr-devel@..."
<zephyr-devel@...>
Subject: Re: [Zephyr-devel] flash tinytile
Message-ID:
<8BBE948C60307D47AD16B5B5B92A387E96922654@...>

Content-Type: text/plain; charset="utf-8"

Hi Tamra,

I don?t have a tinytile at hand, but you might want to try the following command:
ZEPHYR_FLASH_OVER_DFU=y make BOARD=tinytile flash

You will find more information about make-assisted dfu-util method at: https://www.zephyrproject.org/doc/boards/x86/arduino_101/doc/board.html#flashing

Regards,
Patrice

From: zephyr-devel-bounces@... [mailto:zephyr-devel-bounces@...] On Behalf Of Tamra Oyama
Sent: Thursday, September 21, 2017 9:09 AM
To: zephyr-devel@...
Subject: [Zephyr-devel] flash tinytile

Hello all,

I am trying to flash my tinytile. When I use the commands make BOARD=tinytile flash or make flash or the dfu-util command, I get the errors below. Tinytile does not have a jtag connection and it seems like it's looking for a jtag connection. I want to flash using the dfu-util command. I was able to do this with my arduino_101. I am trying to use the same command, dfu-util -a x86_app -D outdir/tinytile/zephyr.bin. This part is successful. However, when I open minicom, minicom freezes and it appears the code is not being executed. Since I can't see anything in minicom, I am not sure how to debug this issue or what's really going on. Any ideas? It would be super great if someone could point us in the right direction. Thank you for your time!

tamrako@tamrako-Inspiron-13-7378:~/CODK/zephyr/samples/bluetooth/beacon$ make BOARD=tinytile
make[1]: Entering directory '/home/tamrako/CODK/zephyr'
make[2]: Entering directory '/home/tamrako/CODK/zephyr/samples/bluetooth/beacon/outdir/tinytile'
CHK include/generated/generated_dts_board.conf
Using /home/tamrako/CODK/zephyr as source for kernel
GEN ./Makefile
CHK include/generated/version.h
CHK include/generated/generated_dts_board.h
CHK misc/generated/configs.c
CHK include/generated/offsets.h
make[2]: Leaving directory '/home/tamrako/CODK/zephyr/samples/bluetooth/beacon/outdir/tinytile'
make[1]: Leaving directory '/home/tamrako/CODK/zephyr'
tamrako@tamrako-Inspiron-13-7378:~/CODK/zephyr/samples/bluetooth/beacon$ make flash
Using /home/tamrako/CODK/zephyr/boards/x86/qemu_x86/qemu_x86_defconfig as base
Merging /home/tamrako/CODK/zephyr/kernel/configs/kernel.config
Merging prj.conf
#
# configuration written to .config
#
make[1]: Entering directory '/home/tamrako/CODK/zephyr'
make[2]: Entering directory '/home/tamrako/CODK/zephyr/samples/bluetooth/beacon/outdir/qemu_x86'
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/generated/generated_dts_board.conf
UPD include/generated/generated_dts_board.conf
CHK include/generated/generated_dts_board.conf
Flashing not supported with this board.
Please check the documentation for alternate instructions.
make[2]: Leaving directory '/home/tamrako/CODK/zephyr/samples/bluetooth/beacon/outdir/qemu_x86'
make[1]: Leaving directory '/home/tamrako/CODK/zephyr'

tamrako@tamrako-Inspiron-13-7378:~/CODK/zephyr/samples/bluetooth/beacon$ make BOARD=tinytile flash
make[1]: Entering directory '/home/tamrako/CODK/zephyr'
make[2]: Entering directory '/home/tamrako/CODK/zephyr/samples/bluetooth/beacon/outdir/tinytile'
CHK include/generated/generated_dts_board.conf
Using /home/tamrako/CODK/zephyr as source for kernel
GEN ./Makefile
CHK include/generated/version.h
CHK include/generated/generated_dts_board.h
CHK misc/generated/configs.c
CHK include/generated/offsets.h
Flashing tinytile
Flashing Target Device
Open On-Chip Debugger 0.9.0-dirty (2017-05-16-18:46)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
adapter speed: 1000 kHz
trst_only separate trst_push_pull
jtag_ntrst_delay: 300
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6010, description 'Flyswatter2' and serial '*'

/home/tamrako/CODK/zephyr/Makefile:1330: recipe for target 'flash' failed
make[2]: *** [flash] Error 1
make[2]: Leaving directory '/home/tamrako/CODK/zephyr/samples/bluetooth/beacon/outdir/tinytile'
Makefile:178: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/tamrako/CODK/zephyr'
/home/tamrako/CODK/zephyr/Makefile.inc:88: recipe for target 'flash' failed
make: *** [flash] Error 2

Sincerely,
Tamra
Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zephyrproject.org/pipermail/zephyr-devel/attachments/20170921/361149ab/attachment.html>

------------------------------

_______________________________________________
Zephyr-devel mailing list
Zephyr-devel@...
https://lists.zephyrproject.org/mailman/listinfo/zephyr-devel


End of Zephyr-devel Digest, Vol 9, Issue 41
*******************************************


Tamra Oyama <tamrako@...>
 

Hi Savinay,

Thanks for your help. Are you using minicom? My samples such as beacon and hello_world compiles and it is successful but I can't see any output on minicom. I did this before with the arduino_101 and minicom and I would see the "beacon demo starting" come up on minicom and such. Do you know what could be going on? I've also tried picocom, cutecom, and gtkterm, but those didn't work as well.

Thank you,
Tamra

On Thu, Sep 21, 2017 at 1:44 AM Dharmappa, Savinay <savinay.dharmappa@...> wrote:
Hi Tamra,

Flash sample/synchronization/   application you will be able to see the prints. Flashing via dfu-util for tinytile works fine. After flashing "hello world" sample application ,a reset is required which is disconnecting /dev/ttyACM0 not sure
Why it is happening.

Regards
savinay

-----Original Message-----
From: zephyr-devel-bounces@... [mailto:zephyr-devel-bounces@...] On Behalf Of zephyr-devel-request@...
Sent: Thursday, September 21, 2017 3:35 PM
To: zephyr-devel@...
Subject: Zephyr-devel Digest, Vol 9, Issue 41

Send Zephyr-devel mailing list submissions to
        zephyr-devel@...

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.zephyrproject.org/mailman/listinfo/zephyr-devel
or, via email, send a message with subject or body 'help' to
        zephyr-devel-request@...

You can reach the person managing the list at
        zephyr-devel-owner@...

When replying, please edit your Subject line so it is more specific than "Re: Contents of Zephyr-devel digest..."


Today's Topics:

   1. Is it possible to have two processes communicate in       ARM Qemu?
      (Hui Yie Teh)
   2. Re: Is it possible to have two processes communicate in ARM
      Qemu? (Andrei Emeltchenko)
   3. Re: flash tinytile (Buriez, Patrice)


----------------------------------------------------------------------

Message: 1
Date: Thu, 21 Sep 2017 21:16:21 +1200
From: Hui Yie Teh <hteh703@...>
To: zephyr-devel@...
Subject: [Zephyr-devel] Is it possible to have two processes
        communicate in  ARM Qemu?
Message-ID:
        <CAPLZ2xMBUo66S92EUQWOQGA1Bj7NhfUSVO9ynoWtKwUCZKwwbg@...>
Content-Type: text/plain; charset="utf-8"

Hi,

Is there an inter-process communication functionality on Zephyr running on Linux for Qemu?

I have an application on Zephyr that gets data from an external source.
However, since I do not have the actual device, I will be emulating this on Qemu. So I will have 2 applications, one solely for generating the output.

However, how can these two applications communicate? I know this can be done in C using named pipes. Is it possible to do that with Zephyr as well?

Any help would be much appreciated. Thanks.

Cheers,
Yie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zephyrproject.org/pipermail/zephyr-devel/attachments/20170921/ab9c3e62/attachment-0001.html>

------------------------------

Message: 2
Date: Thu, 21 Sep 2017 12:54:05 +0300
From: Andrei Emeltchenko <andrei.emeltchenko.news@...>
To: Hui Yie Teh <hteh703@...>
Cc: zephyr-devel@...
Subject: Re: [Zephyr-devel] Is it possible to have two processes
        communicate in ARM Qemu?
Message-ID: <20170921095403.gbbhmcsbzxk6upgc@...>
Content-Type: text/plain; charset=iso-8859-1

Hi,

On Thu, Sep 21, 2017 at 09:16:21PM +1200, Hui Yie Teh wrote:
>    Hi,
>
>    Is there an inter-process communication functionality on Zephyr running on
>    Linux for Qemu??
>    I have an application on Zephyr that gets data from an external source.
>    However, since I do not have the actual device, I will be emulating this
>    on Qemu. So I will have 2 applications, one solely for generating the
>    output.?
>    However, how can these two applications communicate? I know this can be
>    done in C using named pipes. Is it possible to do that with Zephyr as
>    well?

We use QEMU_EXTRA_FLAGS for providing this parameter for QEMU, for example in bluetooth we may run btproxy on Linux host and QEMU_EXTRA_FLAGS like following:

QEMU_EXTRA_FLAGS = -serial unix:/tmp/bt-server-bredr

Best regards
Andrei Emeltchenko


------------------------------

Message: 3
Date: Thu, 21 Sep 2017 10:04:46 +0000
From: "Buriez, Patrice" <patrice.buriez@...>
To: Tamra Oyama <tamrako@...>,
        "zephyr-devel@..."
        <zephyr-devel@...>
Subject: Re: [Zephyr-devel] flash tinytile
Message-ID:
        <8BBE948C60307D47AD16B5B5B92A387E96922654@...>

Content-Type: text/plain; charset="utf-8"

Hi Tamra,

I don?t have a tinytile at hand, but you might want to try the following command:
ZEPHYR_FLASH_OVER_DFU=y make BOARD=tinytile flash

You will find more information about make-assisted dfu-util method at: https://www.zephyrproject.org/doc/boards/x86/arduino_101/doc/board.html#flashing

Regards,
Patrice

From: zephyr-devel-bounces@... [mailto:zephyr-devel-bounces@...] On Behalf Of Tamra Oyama
Sent: Thursday, September 21, 2017 9:09 AM
To: zephyr-devel@...
Subject: [Zephyr-devel] flash tinytile

Hello all,

I am trying to flash my tinytile. When I use the commands make BOARD=tinytile flash or make flash or the dfu-util command, I get the errors below. Tinytile does not have a jtag connection and it seems like it's looking for a jtag connection. I want to flash using the dfu-util command. I was able to do this with my arduino_101. I am trying to use the same command, dfu-util -a x86_app -D outdir/tinytile/zephyr.bin. This part is successful. However, when I open minicom, minicom freezes and it appears the code is not being executed. Since I can't see anything in minicom, I am not sure how to debug this issue or what's really going on. Any ideas? It would be super great if someone could point us in the right direction. Thank you for your time!

tamrako@tamrako-Inspiron-13-7378:~/CODK/zephyr/samples/bluetooth/beacon$ make BOARD=tinytile
make[1]: Entering directory '/home/tamrako/CODK/zephyr'
make[2]: Entering directory '/home/tamrako/CODK/zephyr/samples/bluetooth/beacon/outdir/tinytile'
  CHK     include/generated/generated_dts_board.conf
  Using /home/tamrako/CODK/zephyr as source for kernel
  GEN     ./Makefile
  CHK     include/generated/version.h
  CHK     include/generated/generated_dts_board.h
  CHK     misc/generated/configs.c
  CHK     include/generated/offsets.h
make[2]: Leaving directory '/home/tamrako/CODK/zephyr/samples/bluetooth/beacon/outdir/tinytile'
make[1]: Leaving directory '/home/tamrako/CODK/zephyr'
tamrako@tamrako-Inspiron-13-7378:~/CODK/zephyr/samples/bluetooth/beacon$ make flash
Using /home/tamrako/CODK/zephyr/boards/x86/qemu_x86/qemu_x86_defconfig as base
Merging /home/tamrako/CODK/zephyr/kernel/configs/kernel.config
Merging prj.conf
#
# configuration written to .config
#
make[1]: Entering directory '/home/tamrako/CODK/zephyr'
make[2]: Entering directory '/home/tamrako/CODK/zephyr/samples/bluetooth/beacon/outdir/qemu_x86'
  GEN     ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/generated/generated_dts_board.conf
  UPD     include/generated/generated_dts_board.conf
  CHK     include/generated/generated_dts_board.conf
Flashing not supported with this board.
Please check the documentation for alternate instructions.
make[2]: Leaving directory '/home/tamrako/CODK/zephyr/samples/bluetooth/beacon/outdir/qemu_x86'
make[1]: Leaving directory '/home/tamrako/CODK/zephyr'

tamrako@tamrako-Inspiron-13-7378:~/CODK/zephyr/samples/bluetooth/beacon$ make BOARD=tinytile flash
make[1]: Entering directory '/home/tamrako/CODK/zephyr'
make[2]: Entering directory '/home/tamrako/CODK/zephyr/samples/bluetooth/beacon/outdir/tinytile'
  CHK     include/generated/generated_dts_board.conf
  Using /home/tamrako/CODK/zephyr as source for kernel
  GEN     ./Makefile
  CHK     include/generated/version.h
  CHK     include/generated/generated_dts_board.h
  CHK     misc/generated/configs.c
  CHK     include/generated/offsets.h
Flashing tinytile
Flashing Target Device
Open On-Chip Debugger 0.9.0-dirty (2017-05-16-18:46)
Licensed under GNU GPL v2
For bug reports, read
            http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
adapter speed: 1000 kHz
trst_only separate trst_push_pull
jtag_ntrst_delay: 300
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6010, description 'Flyswatter2' and serial '*'

/home/tamrako/CODK/zephyr/Makefile:1330: recipe for target 'flash' failed
make[2]: *** [flash] Error 1
make[2]: Leaving directory '/home/tamrako/CODK/zephyr/samples/bluetooth/beacon/outdir/tinytile'
Makefile:178: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/tamrako/CODK/zephyr'
/home/tamrako/CODK/zephyr/Makefile.inc:88: recipe for target 'flash' failed
make: *** [flash] Error 2

Sincerely,
Tamra
Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zephyrproject.org/pipermail/zephyr-devel/attachments/20170921/361149ab/attachment.html>

------------------------------

_______________________________________________
Zephyr-devel mailing list
Zephyr-devel@...
https://lists.zephyrproject.org/mailman/listinfo/zephyr-devel


End of Zephyr-devel Digest, Vol 9, Issue 41
*******************************************
_______________________________________________
Zephyr-devel mailing list
Zephyr-devel@...
https://lists.zephyrproject.org/mailman/listinfo/zephyr-devel