Date   

Frequency of packets into mesh network

ashish shukla <ashish.shukla@...>
 

Hi Johan, 

I'm working on smart light project. We are using zephyr mesh stack on NRF boards. 

What's your suggestion, with which frequency packets can be sent into mesh network so that packets reach their destination reliably. 

Also, do I need to send same packet multiple times to proxy node using a Mobile phone app
for reliable delivery? 


--
Warm regards,
Ashish Shukla
Jr. Embedded Engineer
Research & Development


Please consider the environment before printing this e-mail or its attachments.

Disclaimer: The information contained herein (including any accompanying documents) is confidential and is intended solely for the addressee(s). If you have erroneously received this message, please immediately delete it and notify the sender. Also, if you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this message or any accompanying document is strictly prohibited and is unlawful. The organization is not responsible for any damage caused by a virus or alteration of the e-mail by a third party or otherwise. The contents of this message may not necessarily represent the views or policies of Corvi


Re: Enable SPI driver on nrf52840

Ulf Magnusson
 

On Fri, Aug 31, 2018 at 3:06 AM <cpmcparland@...> wrote:

Vinayak,

Great utube file. Sorry for taking so long to get back on this, but wanted to check this out on the SPI
driver as well. I might just be getting the hang of how this scheme works.....at least, I hope so!

I2C driver build worked exactly as your demo...not too surprising, but never hurts to verify. I
also managed to get the SPI driver to work but, I had to change the setting of CONFIG_SPI_1 to
CONFIG_SPI_0 in the driver Kconfig file. I tried to do that in the prj.conf file, but it still failed.
Making the change in Kconfig, however, worked. I'm guessing there are some things that need to
be done early in the Kconfig file before prj.conf gets dealt with (?).

Will play around with compatible GPIO pins on the 52840 so that I can get both I2C_0 and SPI_0
working at the same time.

Thanks again for the video- things were really clear after that.

Cheers,
Chuck
Another random tip is that you can save a minimal configuration file
by pressing [D] in the menuconfig interface. The minimal configuration
file only lists symbols whose values differ from their default values,
and might give a better overview of the configuration.

The minimal configuration file might even work as a stand-in for
zephyr/.config, due to how the configuration system is set up at the
moment: When there are no changes to *_defconfig or *.conf files,
zephyr/.config gets read back in, and a new zephyr/.config is written
out. That new zephyr/.config will be "full". Don't count on that
though. :)

Cheers,
Ulf


Zephyr 1.13.0-rc2 tagged

Nashif, Anas
 

Hi,

We have tagged rc2 and making good progress toward reducing the high and medium bug count. There are still a few issues that need attention but being delayed because of the holiday season. We are hoping to close many of the remaining issues next week then declare a code freeze with rc3.

 

Changes since rc1 are documented here https://github.com/zephyrproject-rtos/zephyr/releases/tag/v1.13.0-rc2 as usual.

 

Thanks,

Anas


Re: Zephyr 1.13rc1 tagged

Nashif, Anas
 

On 23/08/2018, 01:47, "Paul Sokolovsky" <paul.sokolovsky@...> wrote:

Hello Anas,

On Thu, 23 Aug 2018 04:19:51 +0000
"Nashif, Anas" <anas.nashif@...> wrote:

> Hi,
> We have tagged Zephyr 1.13 rc1 and with that closed the merge window
> for 1.13. Focus now will go into bug fixing, testing and
> documentation. All new features will be merged after 1.13 is released.

Thanks for the prompt pre-release process notifications to the mailing
list this cycle. Hope it'll become a good tradition ;-).

We have been announcing almost every pre-release since the project has started __


> The change log since 1.12 and release notes can be found here:
>
> https://github.com/zephyrproject-rtos/zephyr/releases/tag/v1.13.0-rc1

Any reminder/suggestion where/how to contribute notes for the master
changelog of this release (e.g. of breaking changes)? I grepped thru
tickets/PRs at the beginning of this week and don't think I found
something. Actually, I have no idea who's release manager this cycle, as
https://github.com/zephyrproject-rtos/zephyr/issues/8320 is unassigned.

The draft release notes for 1.13 is in the tree now.

(I can make wild guesses of course ;-). And yeah, I'm sure everyone,
including me, takes it easy - it's vacation times, so everyone misses
something. Again, I'm only pleasantly surprised about mailing list
notices).


Anas

>
> Thank you all for the contributions and support,
> Anas Nashif
>

Thanks!

--
Best Regards,
Paul

Linaro.org | Open source software for ARM SoCs
Follow Linaro: http://www.facebook.com/pages/Linaro
http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog


Re: Enable SPI driver on nrf52840

cpmcparland@...
 

Vinayak,

Great utube file.  Sorry for taking so long to get back on this, but wanted to check this out on the SPI
driver as well.  I might just be getting the hang of how this scheme works.....at least, I hope so!

I2C driver build worked exactly as your demo...not too surprising, but never hurts to verify.  I
also managed to get the SPI driver to work but, I had to change the setting of CONFIG_SPI_1 to
CONFIG_SPI_0 in the driver Kconfig file. I tried to do that in the prj.conf file, but it still failed. 
Making the change in Kconfig, however, worked.  I'm guessing there are some things that need to
be done early in the Kconfig file before prj.conf gets dealt with (?).

Will play around with compatible GPIO pins on the 52840 so that I can get both I2C_0 and SPI_0
working at the same time.

Thanks again for the video- things were really clear after that.

Cheers,
Chuck


Re: 回复:[Zephyr-devel] hciconfig tools error with nrf52832 running zephyr

icephyr
 

thanks,guys,I wil have a try later.





At 2018-08-28 20:40:21, "Serafin" <serafin@...> wrote:

Hi


Well it should not be a big deal to compile a more modern Linux Kernel for i.mx6. Most things are mainline. 4.1 is EOL anyway.


Best regards

Serafin


On 27/08/18 18:16, sxzxchen@... wrote:
imx6ull,with linux kernel version 4.15

发自我的华为手机


-------- 原始邮件 --------
主题:Re: [Zephyr-devel] hciconfig tools error with nrf52832 running zephyr
发件人:Maureen Helm
收件人:sxzxchen@...,Johan Hedberg
抄送:devel@...


Which NXP device are you running embedded Linux? I can check to see if we have plans to update the kernel version.

 

From: devel@... <devel@...> On Behalf Of sxzxchen@...
Sent: Monday, August 27, 2018 7:28 AM
To: Johan Hedberg <johan.hedberg@...>
Cc: devel@...
Subject: Re: [Zephyr-devel] hciconfig tools error with nrf52832 running zephyr

 

Thanks for your explanation.since the embedded linux version is bound  with the chip, I cannot update it easily.So is there any ways to solve this problem without updating linux version ?  




 


At 2018-08-24 13:24:28, "Johan Hedberg" <johan.hedberg@...> wrote:
>Hi,
>On Thu, Aug 23, 2018, sxzxchen@... wrote:
>> I bought a official nrf52832 development kits and ported zephyr
>> project successfully. It runs fine with my ubuntu host,via btattach
>> and btmgmt tools.But it didn't work with my nxp embedded linux,the
>> linux version is 4.1.15 and supports hciattach hciconfig tools
>> only.When I tried to bring the bluetooth module up with hciconfig hci0
>> up,an error comes up:
>The 4.1 kernel is too old to support controllers without a public
>address. IIRC you need at least a 4.4 kernel, but ideally something much
>newer than that.
>Johan

 

 




 


Re: bt_le_scan_start Fails with Error -5 after 128 scan start/stop cycles

Declan Traill <declan.traill@...>
 

Hi Johan/Vinayak and others,

 

    Have you had a chance to look at/reproduce this bug yet?  

Is there a potential solution?

 

 

Thanks for your attention…

 

Regards,

Declan Traill

 

From: Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...>
Sent: Thursday, 23 August 2018 3:21 AM
To: Johan Hedberg <johan.hedberg@...>
Cc: Declan Traill <declan.traill@...>; devel@...
Subject: Re: [Zephyr-devel] bt_le_scan_start Fails with Error -5 after 128 scan start/stop cycles

 

Hi Johan,

 

It is nothing to do with controller privacy, its just that advertiser is active and by BT Spec. 

 

If the Host issues this command when scanning or legacy advertising is enabled, the Controller shall return the error code Command Disallowed (0x0C).

 

Can we do something about this in the host, when address is regenerated?

 

- Vinayak



On 22 Aug 2018, at 14:21, Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...> wrote:

 

Hi,

Could you please turn off the controller privacy feature and check if you still face issues?
CONFIG_BT_CTLR_PRIVACY=n

This is to narrow down the locality of the problem, just suspecting some race condition with the running advertiser in concurrency,

Regards,
Vinayak


On 22 Aug 2018, at 11:31, Johan Hedberg <johan.hedberg@...> wrote:

Thanks Declan. The logs do indeed show the HCI error:

[bt] [DBG] bt_hci_cmd_send_sync: (0x20004240) opcode 0x2005 status 0x0c

0x0c is the same as "Command Disallowed", i.e. the controller considers
itself to be in a state where it cannot accept a command. OpCode 0x2005
in turn is HCI_Set_Random_Address, so it's this command that the
controller is refusing to accept.

Johan

On Wed, Aug 22, 2018, Declan Traill wrote:

Hi Johan,

 I have attached a new log. This time it fails after 121 cycles (maybe the 128 was a coincidence and the extra debug has changed the timing?).

 Any ideas what is happening?

Regards,
Declan

-----Original Message-----
From: Johan Hedberg <johan.hedberg@...> 
Sent: Wednesday, 22 August 2018 2:34 PM
To: Declan Traill <declan.traill@...>
Cc: devel@...
Subject: Re: [Zephyr-devel] bt_le_scan_start Fails with Error -5 after 128 scan start/stop cycles

Hi Declan,

Could you enable the following options and try to take another log:

CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_DEBUG_HCI_CORE=y

If I remember right, EIO is just a generic mapping to any HCI error coming from the controller. Enabling the above options should hopefully reveal what that error is. If it still doesn't help we'll need to enable controller logs or take a full HCI log (using CONFIG_BT_DEBUG_MONITOR).

Johan

On Wed, Aug 22, 2018, Declan Traill wrote:

Hi,

I have a basic project that scans for 5 seconds, then stops for one second - then repeats forever.
After exactly 128 cycles, the 129th scan start (and all after that) fails with error code -5 (I think this is POSIX: #define EIO 5 /* I/O error */).

Given the number of time it works (128) it seems like a resource or memory may have run out?

Here is the debug log (attached) showing the problem: Any ideas what might be wrong & how to fix it?

Thanks...

P.S. Also at the end of this file is a fragment of debug I saw a couple of times earlier today during testing - showing a kernel error that occurred. It may be related or unrelated to the other problem??

Regards,

Declan Traill
Embedded Firmware Engineer
declan.traill@...
SETEC Pty Ltd
19 Henderson Road, Knoxfield 3180, Victoria, Australia
Phone: +61 3 9763 0962
Fax: +61 3 9763 8789
Direct: +61 3 9213 8458
setec.com.au | teambmpro.com

--------
Email from setec.com.au does not necessarily represent the official 
policy of SETEC Pty Ltd.
See http://www.setec.com.au/emaildisclaimer20060629.html for details.




***** Booting Zephyr OS v1.12.0-1096-g55f6620c3 ***** Zephyr Shell, 
Zephyr version: 1.12.99 Type 'help' for a list of available commands
shell> [bt] [INF] hci_vs_init: HW Platform: Nordic Semiconductor 
shell> (0x0002)
[bt] [INF] hci_vs_init: HW Variant: nRF52x (0x0002) [bt] [INF] 
hci_vs_init: Firmware: Standard Bluetooth controller (0x00) Version 
1.12 Build 99 [bt] [WRN] bt_pub_key_gen: ECC HCI commands not 
available Bluetooth initialized [bt] [INF] bt_dev_show_info: Identity: 
c0:7e:4c:e6:8b:f3 (random) [bt] [INF] bt_dev_show_info: HCI: version 
5.0 (0x09) revision 0x0000, manufacturer 0x05f1 [bt] [INF] 
bt_dev_show_info: LMP: version 5.0 (0x09) subver 0xffff Advertising 
successfully started


Scanning Started 1

Device found in close proximity: 7a:19:47:6d:5e:b8 (random) (RSSI -70) 
Device found - 7a:19:47:6d:5e:b8 (random) - NOT bonded Scanning 
Stopped Scanning Started 2 Scanning Stopped Scanning Started 3 
Scanning Stopped Scanning Started 4
Connected: 59:75:02:8a:8f:b6 (random) (NOT Bonded) Scanning Stopped 
Scanning Started 5 Scanning Stopped Scanning Started 6 Scanning 
Stopped Scanning Started 7 Scanning Stopped Scanning Started 8 
Scanning Stopped Scanning Started 9 Scanning Stopped Scanning Started 
10 Scanning Stopped Scanning Started 11 Device found in close 
proximity: 5d:29:c2:26:6c:4c (random) (RSSI -57) Device found - 
5d:29:c2:26:6c:4c (random) - NOT bonded Scanning Stopped Scanning 
Started 12 Device found in close proximity: 5d:29:c2:26:6c:4c (random) 
(RSSI -61) Device found - 5d:29:c2:26:6c:4c (random) - NOT bonded 
Scanning Stopped Scanning Started 13 Device found in close proximity: 
5d:29:c2:26:6c:4c (random) (RSSI -48) Device found - 5d:29:c2:26:6c:4c 
(random) - NOT bonded Scanning Stopped Scanning Started 14 Device 
found in close proximity: 5d:29:c2:26:6c:4c (random) (RSSI -57) Device 
found - 5d:29:c2:26:6c:4c (random) - NOT bonded Scanning Stopped 
Scanning Started 15 Device found in close proximity: 5d:29:c2:26:6c:4c 
(random) (RSSI -57) Device found - 5d:29:c2:26:6c:4c (random) - NOT 
bonded Scanning Stopped Scanning Started 16 Device found in close 
proximity: 5d:29:c2:26:6c:4c (random) (RSSI -55) Device found - 
5d:29:c2:26:6c:4c (random) - NOT bonded Scanning Stopped Scanning 
Started 17 Device found in close proximity: 5d:29:c2:26:6c:4c (random) 
(RSSI -50) Device found - 5d:29:c2:26:6c:4c (random) - NOT bonded 
Scanning Stopped Scanning Started 18 Device found in close proximity: 
5d:29:c2:26:6c:4c (random) (RSSI -51) Device found - 5d:29:c2:26:6c:4c 
(random) - NOT bonded Scanning Stopped Scanning Started 19 Device 
found in close proximity: 5d:29:c2:26:6c:4c (random) (RSSI -57) Device 
found - 5d:29:c2:26:6c:4c (random) - NOT bonded Scanning Stopped 
Scanning Started 20 Device found in close proximity: 6f:d9:fb:62:fc:95 
(random) (RSSI -51) Device found - 6f:d9:fb:62:fc:95 (random) - NOT 
bonded Scanning Stopped Scanning Started 21 Device found in close 
proximity: 6f:d9:fb:62:fc:95 (random) (RSSI -58) Device found - 
6f:d9:fb:62:fc:95 (random) - NOT bonded Scanning Stopped Scanning 
Started 22 Device found in close proximity: 6f:d9:fb:62:fc:95 (random) 
(RSSI -53) Device found - 6f:d9:fb:62:fc:95 (random) - NOT bonded 
Scanning Stopped Scanning Started 23 Device found in close proximity: 
6f:d9:fb:62:fc:95 (random) (RSSI -52) Device found - 6f:d9:fb:62:fc:95 
(random) - NOT bonded Scanning Stopped Scanning Started 24 Scanning 
Stopped Scanning Started 25 Scanning Stopped Scanning Started 26 
Scanning Stopped Scanning Started 27 Scanning Stopped Scanning Started 
28 Scanning Stopped Scanning Started 29 Scanning Stopped Scanning 
Started 30 Scanning Stopped Scanning Started 31 Scanning Stopped 
Scanning Started 32 Scanning Stopped Scanning Started 33 Scanning 
Stopped Scanning Started 34 Scanning Stopped Scanning Started 35 
Scanning Stopped Scanning Started 36 Scanning Stopped Scanning Started 
37 Scanning Stopped Scanning Started 38 Scanning Stopped Scanning 
Started 39 Device found in close proximity: 72:bd:c4:8a:51:23 (random) 
(RSSI -70) Device found - 72:bd:c4:8a:51:23 (random) - NOT bonded 
Scanning Stopped Scanning Started 40 Scanning Stopped Scanning Started 
41 Device found in close proximity: 72:bd:c4:8a:51:23 (random) (RSSI 
-70) Device found - 72:bd:c4:8a:51:23 (random) - NOT bonded Scanning 
Stopped Scanning Started 42 Scanning Stopped Scanning Started 43 
Scanning Stopped Scanning Started 44 Scanning Stopped Scanning Started 
45 Scanning Stopped Scanning Started 46 Scanning Stopped Scanning 
Started 47 Scanning Stopped Scanning Started 48 Scanning Stopped 
Scanning Started 49 Scanning Stopped Scanning Started 50 Scanning 
Stopped Scanning Started 51 Scanning Stopped Scanning Started 52 
Scanning Stopped Scanning Started 53 Scanning Stopped Scanning Started 
54 Scanning Stopped Scanning Started 55 Device found in close 
proximity: 72:bd:c4:8a:51:23 (random) (RSSI -69) Device found - 
72:bd:c4:8a:51:23 (random) - NOT bonded Scanning Stopped Scanning 
Started 56 Scanning Stopped Scanning Started 57 Scanning Stopped 
Scanning Started 58 Scanning Stopped Scanning Started 59 Scanning 
Stopped Scanning Started 60 Scanning Stopped Scanning Started 61 
Scanning Stopped Scanning Started 62 Scanning Stopped Scanning Started 
63 Scanning Stopped Scanning Started 64 Scanning Stopped Scanning 
Started 65 Scanning Stopped Scanning Started 66 Scanning Stopped 
Scanning Started 67 Scanning Stopped Scanning Started 68 Scanning 
Stopped Scanning Started 69 Scanning Stopped Scanning Started 70 
Scanning Stopped Scanning Started 71 Scanning Stopped Scanning Started 
72 Scanning Stopped Scanning Started 73 Scanning Stopped Scanning 
Started 74 Scanning Stopped Scanning Started 75 Scanning Stopped 
Scanning Started 76 Scanning Stopped Scanning Started 77 Scanning 
Stopped Scanning Started 78 Scanning Stopped Scanning Started 79 
Scanning Stopped Scanning Started 80 Scanning Stopped Scanning Started 
81 Scanning Stopped Scanning Started 82 Scanning Stopped Scanning 
Started 83 Scanning Stopped Scanning Started 84 Scanning Stopped 
Scanning Started 85 Device found in close proximity: 7a:19:47:6d:5e:b8 
(random) (RSSI -69) Device found - 7a:19:47:6d:5e:b8 (random) - NOT 
bonded Scanning Stopped Scanning Started 86 Device found in close 
proximity: 7a:19:47:6d:5e:b8 (random) (RSSI -69) Device found - 
7a:19:47:6d:5e:b8 (random) - NOT bonded Scanning Stopped Scanning 
Started 87 Scanning Stopped Scanning Started 88 Scanning Stopped 
Scanning Started 89 Scanning Stopped Scanning Started 90 Scanning 
Stopped Scanning Started 91 Scanning Stopped Scanning Started 92 
Scanning Stopped Scanning Started 93 Scanning Stopped Scanning Started 
94 Scanning Stopped Scanning Started 95 Scanning Stopped Scanning 
Started 96 Scanning Stopped Scanning Started 97 Scanning Stopped 
Scanning Started 98 Scanning Stopped Scanning Started 99 Scanning 
Stopped Scanning Started 100 Scanning Stopped Scanning Started 101 
Scanning Stopped Scanning Started 102 Scanning Stopped Scanning 
Started 103 Scanning Stopped Scanning Started 104 Scanning Stopped 
Scanning Started 105 Scanning Stopped Scanning Started 106 Scanning 
Stopped Scanning Started 107 Device found in close proximity: 
88:6b:0f:07:08:fc (public) (RSSI -70) Device found - 88:6b:0f:07:08:fc 
(public) - NOT bonded Scanning Stopped Scanning Started 108 Device 
found in close proximity: 88:6b:0f:07:08:fc (public) (RSSI -70) Device 
found - 88:6b:0f:07:08:fc (public) - NOT bonded Scanning Stopped 
Scanning Started 109 Scanning Stopped Scanning Started 110 Scanning 
Stopped Scanning Started 111 Scanning Stopped Scanning Started 112 
Device found in close proximity: 88:6b:0f:07:08:fc (public) (RSSI -70) 
Device found - 88:6b:0f:07:08:fc (public) - NOT bonded Scanning 
Stopped Scanning Started 113 Device found in close proximity: 
88:6b:0f:07:08:fc (public) (RSSI -70) Device found - 88:6b:0f:07:08:fc 
(public) - NOT bonded Scanning Stopped Scanning Started 114 Device 
found in close proximity: 88:6b:0f:07:08:fc (public) (RSSI -70) Device 
found - 88:6b:0f:07:08:fc (public) - NOT bonded Scanning Stopped 
Scanning Started 115 Device found in close proximity: 
88:6b:0f:07:08:fc (public) (RSSI -70) Device found - 88:6b:0f:07:08:fc 
(public) - NOT bonded Scanning Stopped Scanning Started 116 Scanning 
Stopped Scanning Started 117 Device found in close proximity: 
88:6b:0f:07:08:fc (public) (RSSI -70) Device found - 88:6b:0f:07:08:fc 
(public) - NOT bonded Scanning Stopped Scanning Started 118 Scanning 
Stopped Scanning Started 119 Scanning Stopped Scanning Started 120 
Scanning Stopped Scanning Started 121 Device found in close proximity: 
88:6b:0f:07:08:fc (public) (RSSI -70) Device found - 88:6b:0f:07:08:fc 
(public) - NOT bonded Scanning Stopped Scanning Started 122 Scanning 
Stopped Scanning Started 123 Scanning Stopped Scanning Started 124 
Scanning Stopped Scanning Started 125 Scanning Stopped Scanning 
Started 126 Scanning Stopped Scanning Started 127 Scanning Stopped 
Scanning Started 128 Device found in close proximity: 
88:6b:0f:07:08:fc (public) (RSSI -70) Device found - 88:6b:0f:07:08:fc 
(public) - NOT bonded Scanning Stopped Scanning failed to start 129 
(err -5) Scanning Stopped Scanning failed to start 130 (err -5) 
Scanning Stopped Scanning failed to start 131 (err -5) Scanning 
Stopped Scanning failed to start 132 (err -5) Scanning Stopped 
Scanning failed to start 133 (err -5) Scanning Stopped Scanning failed 
to start 134 (err -5)




Scanning failed to start (err -5)
Scanning failed to start (err -5)
[bt] [ERR] rpa_adv_refresh: assert: 'idx < ((unsigned long) (((int) 
sizeof(char[1 - 2 * !(!__builtin_types_compatible_p(__typeof__(rl), 
__typeof__(&(rl)[0])))]) - 1) + (sizeof(rl) / sizeof((rl)[0]))))' 
failed
***** Kernel OOPS! *****
Current thread ID = 0x20004a10
Faulting instruction address = 0x2a134 Fatal fault in thread 
0x20004a10! Aborting.
Scanning failed to start (err -5)
Scanning failed to start (err -5)
S




--------
Email from setec.com.au does not necessarily represent the official
policy of SETEC Pty Ltd.
See http://www.setec.com.au/emaildisclaimer20060629.html for details.






 



Email from setec.com.au does not necessarily represent the official policy of SETEC Pty Ltd.
See Email Disclaimer 20060629 for details.



Re: Error compiling sample Hello World

Carles Cufi
 

Hi there,

 

I’ve now submitted an updated chocolatey package that works on both 32-bit and 64-bit Windows installations:

https://chocolatey.org/packages/dtc-msys2/1.4.4.20180829

 

Note that the update is not approved yet, so if you want to try it on your 32-bit Windows installation you will need to specify the version when installing with chocolatey:

 

choco install dtc-msys2 --version 1.4.4.20180829

 

Regards,

 

Carles

 

From: devel@... <devel@...> On Behalf Of IosuGorostiza
Sent: 28 August 2018 14:30
To: devel@...
Subject: [Zephyr-devel] Error compiling sample Hello World

 

Hi everybody:
I´m trying to compile the example hello_world as described in the Getting Started Guide. I follow every step of the guide but I´m not able to compile. I deleted everything and start again from the beggining several times and always get the same error. The steps I followed was for ARM.
I´m using the board nrf52_pca10040 in a PC with Windows 8.1 Enterprise 32bits.
Next, I paste what I obtained after executing the compiling instruction:

C:\Users\balcalde\zephyr\samples\hello_world\build>cmake -GNinja -DBOARD=nrf52_pca10040 ..

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD nrf52_pca10040

Zephyr version: 1.13.0

Parsing Kconfig tree in C:/Users/balcalde/zephyr//Kconfig

Using C:/Users/balcalde/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base

Merging C:/Users/balcalde/zephyr/samples/hello_world/prj.conf

-- Generating zephyr/include/generated/generated_dts_board.h

CMake Error at C:/Users/balcalde/zephyr/cmake/dts.cmake:84 (message):command failed with return code: Exit code 0xc0000135

 

Call Stack (most recent call first):

  C:/Users/balcalde/zephyr/cmake/app/boilerplate.cmake:278 (include)

  CMakeLists.txt:3 (include)

-- Configuring incomplete, errors occurred!

I spent many hours searching trough the web and reading zephyr documentation but I didn´t found anything that help me to solve that error.

I apprecite any help.
Thanks, best regards

 

 



 

 


Re: Error compiling sample Hello World

IosuGorostiza <balcalde@...>
 

Hi everyone again:

I installed the module pyelftool and then everything worked. I compiled and flashed the demo board with ninja.

Now I have to check if demo board sends Hello_World message.

Thanks.

Regards.

 

 

De: Cufi, Carles [mailto:Carles.Cufi@...]
Enviado el: miércoles, 29 de agosto de 2018 14:03
Para: (ELT) Benjamín Alcalde; devel@...
CC: 'Marti Bolivar'; 'Ulf Magnusson'
Asunto: RE: [Zephyr-devel] Error compiling sample Hello World

 

Hi there,

 

OK, as long as Option 2 worked, then you should be fine. I’m surprised that Option 1 didn’t work, but there might be something I’m overlooking.

 

Regarding the elftools error, I can see in the output of “pip3 list” you sent before that the pyelftools modules is not installed, which is strange because it’s listed in the requirements.txt file.

 

Can you try: pip3 install pyelftools==0.24

 

For any other modules missing, take a look at the requirements.txt:

https://github.com/zephyrproject-rtos/zephyr/blob/master/scripts/requirements.txt

 

Carles

 

From: (ELT) Benjamín Alcalde <balcalde@...>
Sent: 29 August 2018 13:37
To: Cufi, Carles <Carles.Cufi@...>; devel@...
Cc: 'Marti Bolivar' <marti@...>; 'Ulf Magnusson' <ulfalizer@...>
Subject: RE: [Zephyr-devel] Error compiling sample Hello World

 

Hi:

I didn´t tell that I am using Zephyr 1.12.0.

The versión of Phyton 3.7 is the versión installed when I executed  the command choco install git python ninja dtc-msys2 gperf

I tried the option 1 and I get the same errors.

I tried the option 2 and the YAML module installed OK.

Then I executed the command  cmake -GNinja -DBOARD=nrf52_pca10040 .. and it seems compile properly. This is what I get from console:
 
-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4") 
-- Selected BOARD nrf52_pca10040
Parsing Kconfig tree in C:/Users/alfredo/zephyr//Kconfig
Using C:/Users/alfredo/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base
Merging C:/Users/alfredo/zephyr/samples/hello_world/prj.conf
-- Generating zephyr/include/generated/generated_dts_board.h
-- Cache files will be written to: C:\Users\alfredo\AppData\Local/.cache/zephyr
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
-- Performing Test toolchain_is_ok
-- Performing Test toolchain_is_ok - Success
-- 
*******************************
*** NOTE TO KCONFIG AUTHORS ***
*******************************
 
The behavior of Kconfig 'default' properties in Zephyr has changed. The 
earliest default with a satisfied condition is now used, instead of the 
last one. This is standard Kconfig behavior.
 
See http://docs.zephyrproject.org/porting/board_porting.html#old-zephyr-kconfig-behavior-for-defaults.
 
To get rid of this note, create a file called 'hide-defaults-note' in the 
Zephyr root directory. An empty file is fine.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/alfredo/zephyr/samples/hello_world/build
 
Then I excute the next command show in the Start Guide: ninja, and I get another error:
 
[1/133] Generating include/generated/syscall_macros.h
[2/133] Generating include/generated/driver-validation.h
FAILED: zephyr/include/generated/driver-validation.h 
cmd.exe /C "cd /D C:\Users\alfredo\zephyr\samples\hello_world\build\zephyr && C:\Python37\python.exe C:/Users/alfredo/zephyr//scripts/gen_kobject_list.py --validation-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/driver-validation.h "
Traceback (most recent call last):
 
  File "C:/Users/alfredo/zephyr//scripts/gen_kobject_list.py", line 13, in <module>
 
    from elf_helper import ElfHelper, kobject_to_enum
 
  File "C:\Users\alfredo\zephyr\scripts\elf_helper.py", line 14, in <module>
 
    import elftools
 
ModuleNotFoundError: No module named 'elftools'
 
[3/133] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h
FAILED: zephyr/include/generated/kobj-types-enum.h zephyr/include/generated/otype-to-str.h 
cmd.exe /C "cd /D C:\Users\alfredo\zephyr\samples\hello_world\build\zephyr && C:\Python37\python.exe C:\Users\alfredo\zephyr\/scripts/gen_kobject_list.py --kobj-types-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/kobj-types-enum.h --kobj-otype-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/otype-to-str.h --kobj-size-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/otype-to-size.h "
Traceback (most recent call last):
 
  File "C:\Users\alfredo\zephyr\/scripts/gen_kobject_list.py", line 13, in <module>
 
    from elf_helper import ElfHelper, kobject_to_enum
 
  File "C:\Users\alfredo\zephyr\scripts\elf_helper.py", line 14, in <module>
 
    import elftools
 
ModuleNotFoundError: No module named 'elftools'
 
[4/133] Generating misc/generated/syscalls.json
ninja: build stopped: subcommand failed.
 
Thanks.
Best regards
 
 
 

 

 

 

 

De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Enviado el: miércoles, 29 de agosto de 2018 12:41
Para: Cufi, Carles; (ELT) Benjamín Alcalde; devel@...
CC: Marti Bolivar; Ulf Magnusson
Asunto: Re: [Zephyr-devel] Error compiling sample Hello World

 

Sorry, a couple of corrections:

 

There is no *non-beta* PyYAML version available pre-complied on PyPi for Python 3.7, which is what you have installed from what I can see.

 

Option 1:

Install like this:

pip3 install PyYAML==4.2b4

 

 

From: devel@... <devel@...> On Behalf Of Cufi, Carles
Sent: 29 August 2018 12:39
To: (ELT) Benjamín Alcalde <balcalde@...>; devel@...
Cc: Marti Bolivar <marti@...>; Ulf Magnusson <ulfalizer@...>
Subject: Re: [Zephyr-devel] Error compiling sample Hello World

 

I think this is what is going on:

 

There is no PyYAML version available pre-complied on PyPi for Python 3.7, which is what you have installed from what I can see.

 

In order to get around this, there are 2 options:

 

Option 1:

Install like this:

pip install PyYAML==4.2b4

 

Option 2:

·         1) Download PyYAML‑3.13‑cp37‑cp37m‑win_amd64.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyyaml

2) pip3 install PyYAML-3.13-cp37-cp37m-win_amd64.whl

 

I would try option1 first, if there’s issues with the pyyaml version you can always switch to Option 2 after (uninstall PyYAML first)

 

Carles

 

From: (ELT) Benjamín Alcalde <balcalde@...>
Sent: 29 August 2018 12:25
To: Cufi, Carles <Carles.Cufi@...>; devel@...
Subject: RE: [Zephyr-devel] Error compiling sample Hello World

 

Hi again:

I checked the modules installed in the PC with Windows 8.1 64bits and this is what I get:

 

Package                  Version 

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

alabaster                  0.7.11  

Babel                      2.6.0   

breathe                    4.9.1   

certifi                      2018.8.24

chardet                    3.0.4   

colorama                 0.3.9   

docutils                   0.14    

idna                         2.7     

imagesize                1.0.0   

Jinja2                      2.10    

junit2html               21      

MarkupSafe           1.0     

packaging               17.1    

pip                          10.0.1  

Pygments                2.2.0   

pyparsing                2.2.0   

pytz                         2018.5  

requests                 2.19.1  

setuptools               39.0.1  

six                           1.11.0  

snowballstemmer    1.2.1   

Sphinx                   1.7.5   

sphinx-rtd-theme     0.4.1   

sphinxcontrib-websupport 1.1.0   

urllib3                                     1.23    

wheel                      0.30.0

 

As can be seen the module Yaml is not  installed that’s why we get last error.

I tried to install the module using :

 

pip3 install -r scripts/requirements.txt

 

I get three errors. I copy all the messages obtained and mark in red the errors

 

Requirement already satisfied: wheel==0.30.0 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 1)) (0.30.0)

Requirement already satisfied: breathe==4.9.1 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 2)) (4.9.1)

Requirement already satisfied: sphinx==1.7.5 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 3)) (1.7.5)

Requirement already satisfied: docutils==0.14 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 4)) (0.14)

Requirement already satisfied: sphinx_rtd_theme in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 5)) (0.4.1)

Requirement already satisfied: junit2html in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 6)) (21)

Collecting PyYAML==3.12 (from -r scripts/requirements.txt (line 7))

Using cached https://files.pythonhosted.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac635d36245a72a6a69b23b383a/PyYAML-3.12.tar.gz

Collecting ply==3.10 (from -r scripts/requirements.txt (line 8))

Collecting hub==2.0 (from -r scripts/requirements.txt (line 9))

Collecting gitlint (from -r scripts/requirements.txt (line 10))

Using cached https://files.pythonhosted.org/packages/c2/1f/e4ccfeeca84e5bb03d3d552549ba141ed6b42e3525cedb45d0f7e8164cda/gitlint-0.10.0-py2.py3-none-any.whl

Collecting pyelftools==0.24 (from -r scripts/requirements.txt (line 11))

Collecting pyocd (from -r scripts/requirements.txt (line 12))

Collecting pyserial (from -r scripts/requirements.txt (line 13))

Using cached https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl

Collecting pykwalify (from -r scripts/requirements.txt (line 14))

Using cached https://files.pythonhosted.org/packages/ce/d2/550d30b645425fd11e503d6e04fc19e91719941faf0e4e08a58d278b6345/pykwalify-1.6.1-py2.py3-none-any.whl

Collecting windows-curses (from -r scripts/requirements.txt (line 16))

Using cached https://files.pythonhosted.org/packages/bd/fe/bb10e19712b3a017b885dd91c8b0105dfc07623cee54e019053c0d4382a0/windows_curses-1.0-cp37-cp37m-win_amd64.whl

Requirement already satisfied: six>=1.4 in c:\python37\lib\site-packages (from breathe==4.9.1->-r scripts/requirements.txt (line 2)) (1.11.0)

Requirement already satisfied: imagesize in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.0.0)

Requirement already satisfied: packaging in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (17.1)

Requirement already satisfied: Pygments>=2.0 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.2.0)

Requirement already satisfied: Jinja2>=2.3 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.10)

Requirement already satisfied: sphinxcontrib-websupport in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.1.0)

Requirement already satisfied: setuptools in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (39.0.1)

Requirement already satisfied: alabaster<0.8,>=0.7 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (0.7.11)

Requirement already satisfied: babel!=2.0,>=1.3 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.6.0)

Requirement already satisfied: colorama>=0.3.5; sys_platform == "win32" in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (0.3.9)

Requirement already satisfied: snowballstemmer>=1.1 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.2.1)

Requirement already satisfied: requests>=2.0.0 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.19.1)

Collecting git-spindle (from hub==2.0->-r scripts/requirements.txt (line 9))

Collecting Click==6.6 (from gitlint->-r scripts/requirements.txt (line 10))

Using cached https://files.pythonhosted.org/packages/1c/7c/10b4132dd952b6a04e37626258825b8aa8c1eb99545f2eb26a77c21efb55/click-6.6-py2.py3-none-any.whl

Collecting arrow==0.10.0 (from gitlint->-r scripts/requirements.txt (line 10))

Collecting intervaltree (from pyocd->-r scripts/requirements.txt (line 12))

Collecting websocket-client (from pyocd->-r scripts/requirements.txt (line 12))

Using cached https://files.pythonhosted.org/packages/6a/0b/fe3a2d47066005c928056f60ed308036485a7d8bcfa6595d4f7a45f1b938/websocket_client-0.51.0-py2.py3-none-any.whl

Collecting intelhex (from pyocd->-r scripts/requirements.txt (line 12))

Using cached https://files.pythonhosted.org/packages/bf/77/bf670318b3db325c71e2ac6a90b7bcfdf9fc739b7cf6aebb31715721623e/intelhex-2.2.1-py2.py3-none-any.whl

Collecting enum34 (from pyocd->-r scripts/requirements.txt (line 12))

  Using cached https://files.pythonhosted.org/packages/af/42/cb9355df32c69b553e72a2e28daee25d1611d2c0d9c272aa1d34204205b2/enum34-1.1.6-py3-none-any.whl

Collecting future (from pyocd->-r scripts/requirements.txt (line 12))

Collecting pywinusb>=0.4.0 (from pyocd->-r scripts/requirements.txt (line 12))

Collecting python-dateutil>=2.4.2 (from pykwalify->-r scripts/requirements.txt (line 14))

  Using cached https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl

Collecting docopt>=0.6.2 (from pykwalify->-r scripts/requirements.txt (line 14))

Requirement already satisfied: pyparsing>=2.0.2 in c:\python37\lib\site-packages (from packaging->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.2.0)

Requirement already satisfied: MarkupSafe>=0.23 in c:\python37\lib\site-packages (from Jinja2>=2.3->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.0)

Requirement already satisfied: pytz>=0a in c:\python37\lib\site-packages (from babel!=2.0,>=1.3->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2018.5)

Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (3.0.4)

Requirement already satisfied: urllib3<1.24,>=1.21.1 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.23)

Requirement already satisfied: idna<2.8,>=2.5 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.7)

Requirement already satisfied: certifi>=2017.4.17 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2018.8.24)

Collecting github3.py<1.0,>=0.9.0 (from git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/b9/bd/9e433bd695567ccf2bdc0f4c2cdc7da2ce2bb8467e405b2fca62631d8690/github3.py-0.9.6-py2.py3-none-any.whl

Collecting whelk>=2.6 (from git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

Collecting sortedcontainers (from intervaltree->pyocd->-r scripts/requirements.txt (line 12))

  Using cached https://files.pythonhosted.org/packages/cb/53/fe764fc8042e13245b50c4032fb2f857bc1e502aaca83063dcdf6b94d223/sortedcontainers-2.0.4-py2.py3-none-any.whl

Collecting uritemplate.py>=0.2.0 (from github3.py<1.0,>=0.9.0->git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/8b/ba/6cbb9c3bf4f53997d8d1f69414fc7962f536ba43d283f0e32de68534f6a4/uritemplate.py-3.0.2-py2.py3-none-any.whl

Collecting uritemplate>=2.0 (from uritemplate.py>=0.2.0->github3.py<1.0,>=0.9.0->git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/e5/7d/9d5a640c4f8bf2c8b1afc015e9a9d8de32e13c9016dcc4b0ec03481fb396/uritemplate-3.0.0-py2.py3-none-any.whl

Building wheels for collected packages: PyYAML

  Running setup.py bdist_wheel for PyYAML: started

  Running setup.py bdist_wheel for PyYAML: finished with status 'error'

  Complete output from command c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\alfredo\AppData\Local\Temp\pip-wheel-gbtb_d97 --python-tag cp37:

  running bdist_wheel

  running build

  running build_py

  creating build

  creating build\lib.win-amd64-3.7

  creating build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\composer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\constructor.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\cyaml.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\dumper.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\emitter.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\error.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\events.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\loader.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\nodes.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\parser.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\reader.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\representer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\resolver.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\scanner.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\serializer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\tokens.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\__init__.py -> build\lib.win-amd64-3.7\yaml

  running build_ext

  creating build\temp.win-amd64-3.7

  creating build\temp.win-amd64-3.7\Release

  checking if libyaml is compilable

  error: [WinError 3] El sistema no puede encontrar la ruta especificada: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'

 

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

  Running setup.py clean for PyYAML

Failed to build PyYAML

Installing collected packages: PyYAML, ply, docopt, uritemplate, uritemplate.py, github3.py, whelk, git-spindle, hub, Click, python-dateutil, arrow, gitlint, pyelftools, sortedcontainers, intervaltree, websocket-client, intelhex, enum34, future, pywinusb, pyocd, pyserial, pykwalify, windows-curses

  Running setup.py install for PyYAML: started

    Running setup.py install for PyYAML: finished with status 'error'

    Complete output from command c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\alfredo\AppData\Local\Temp\pip-record-9b1lbcnj\install-record.txt --single-version-externally-managed --compile:

    running install

    running build

    running build_py

    creating build

    creating build\lib.win-amd64-3.7

    creating build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\composer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\constructor.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\cyaml.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\dumper.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\emitter.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\error.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\events.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\loader.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\nodes.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\parser.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\reader.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\representer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\resolver.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\scanner.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\serializer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\tokens.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\__init__.py -> build\lib.win-amd64-3.7\yaml

    running build_ext

    creating build\temp.win-amd64-3.7

    creating build\temp.win-amd64-3.7\Release

    checking if libyaml is compilable

    error: [WinError 3] El sistema no puede encontrar la ruta especificada: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'

   

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

                  Failed building wheel for PyYAML

Command "c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\

\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f

=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f

.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\alfred

o\AppData\Local\Temp\pip-record-9b1lbcnj\install-record.txt --single-version-ext

ernally-managed --compile" failed with error code 1 in C:\Users\alfredo\AppData\

Local\Temp\pip-install-li00oeey\PyYAML\

You are using pip version 10.0.1, however version 18.0 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' comm

and.

 

Do I need install Microsoft Visual Studio 14.0?

Thanks.

 

Regards.

 

 

 

De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Enviado el: miércoles, 29 de agosto de 2018 11:46
Para: (ELT) Benjamín Alcalde; devel@...
Asunto: Re: [Zephyr-devel] Error compiling sample Hello World

 

Hey there,

 

I am about to submit an update to the chocolatey package to fix the issue you had with DTC and a 32-bit host.

 

Regarding the error you are getting now, this looks like you’re missing the Python yaml module. To install it, refer to:

http://docs.zephyrproject.org/getting_started/installation_win.html#option-1-windows-command-prompt

 

In particular:

cd %userprofile%\zephyr

pip3 install -r scripts/requirements.txt

 

Make sure you don’t have multiple Python3 versions installed on your machine, this could confuse things a bit.

 

To make sure you have the module installed, you can do:

 

pip3 list

 

Carles

 

From: (ELT) Benjamín Alcalde <balcalde@...>
Sent: 29 August 2018 11:41
To: Cufi, Carles <Carles.Cufi@...>; devel@...
Subject: RE: [Zephyr-devel] Error compiling sample Hello World

 

Hi everyone again:

I get another PC with Windows 8.1 Enterprise 64bits. I started again with the steps show in Getting Started Guide and I get another error. This what I get from the console:

 

C:\Users\alfredo\zephyr\samples\hello_world\build>cmake -GNinja -DBOARD=nrf52_pca10040 ..

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD nrf52_pca10040

Zephyr version: 1.13.0

Parsing Kconfig tree in c:/Users/alfredo/zephyr/Kconfig

Using C:/Users/alfredo/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base

Merging C:/Users/alfredo/zephyr/samples/hello_world/prj.conf

-- Generating zephyr/include/generated/generated_dts_board.h

Traceback (most recent call last):

File "c:/Users/alfredo/zephyr/scripts/dts/extract_dts_includes.py", line 15, in <module> import yaml

ModuleNotFoundError: No module named 'yaml'

CMake Error at C:/Users/alfredo/zephyr/cmake/dts.cmake:126 (message):command failed with return code: 1

Call Stack (most recent call first):

C:/Users/alfredo/zephyr/cmake/app/boilerplate.cmake:278 (include)

CMakeLists.txt:3 (include)

 

-- Configuring incomplete, errors occurred!

 

Then I tried to check de DTC version as Carles Cufi told me and this is what I get:

 

C:\Users\alfredo>dtc --version

Version: DTC 1.4.4-ga81d4ca0-dirty

 

 

Thanks in advance.

Best regards

 

 

 

 

De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Enviado el: martes, 28 de agosto de 2018 14:35
Para: IosuGorostiza; devel@...
Asunto: Re: [Zephyr-devel] Error compiling sample Hello World

 

Hi there,

 

Sounds like there’s an issue with DTC and a 32-bit host. While we do support a 32-bit version of it, I’ve never tested it myself since I don’t have access to a 32-bit Windows installation.

Did you install dtc using Chocolatey?

Could you try perhaps running dtc manually? Open a command prompt and then:

 

C:\Users\Carles>dtc --version

Version: DTC 1.4.4-ga81d4ca0-dirty

 

Thanks,

 

Carles

 

From: devel@... <devel@...> On Behalf Of IosuGorostiza
Sent: 28 August 2018 14:30
To: devel@...
Subject: [Zephyr-devel] Error compiling sample Hello World

 

Hi everybody:
I´m trying to compile the example hello_world as described in the Getting Started Guide. I follow every step of the guide but I´m not able to compile. I deleted everything and start again from the beggining several times and always get the same error. The steps I followed was for ARM.
I´m using the board nrf52_pca10040 in a PC with Windows 8.1 Enterprise 32bits.
Next, I paste what I obtained after executing the compiling instruction:

C:\Users\balcalde\zephyr\samples\hello_world\build>cmake -GNinja -DBOARD=nrf52_pca10040 ..

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD nrf52_pca10040

Zephyr version: 1.13.0

Parsing Kconfig tree in C:/Users/balcalde/zephyr//Kconfig

Using C:/Users/balcalde/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base

Merging C:/Users/balcalde/zephyr/samples/hello_world/prj.conf

-- Generating zephyr/include/generated/generated_dts_board.h

CMake Error at C:/Users/balcalde/zephyr/cmake/dts.cmake:84 (message):command failed with return code: Exit code 0xc0000135

 

Call Stack (most recent call first):

  C:/Users/balcalde/zephyr/cmake/app/boilerplate.cmake:278 (include)

  CMakeLists.txt:3 (include)

-- Configuring incomplete, errors occurred!

I spent many hours searching trough the web and reading zephyr documentation but I didn´t found anything that help me to solve that error.

I apprecite any help.
Thanks, best regards

 

 

 

 

 


Re: Error compiling sample Hello World

Carles Cufi
 

Hi there,

 

OK, as long as Option 2 worked, then you should be fine. I’m surprised that Option 1 didn’t work, but there might be something I’m overlooking.

 

Regarding the elftools error, I can see in the output of “pip3 list” you sent before that the pyelftools modules is not installed, which is strange because it’s listed in the requirements.txt file.

 

Can you try: pip3 install pyelftools==0.24

 

For any other modules missing, take a look at the requirements.txt:

https://github.com/zephyrproject-rtos/zephyr/blob/master/scripts/requirements.txt

 

Carles

 

From: (ELT) Benjamín Alcalde <balcalde@...>
Sent: 29 August 2018 13:37
To: Cufi, Carles <Carles.Cufi@...>; devel@...
Cc: 'Marti Bolivar' <marti@...>; 'Ulf Magnusson' <ulfalizer@...>
Subject: RE: [Zephyr-devel] Error compiling sample Hello World

 

Hi:

I didn´t tell that I am using Zephyr 1.12.0.

The versión of Phyton 3.7 is the versión installed when I executed  the command choco install git python ninja dtc-msys2 gperf

I tried the option 1 and I get the same errors.

I tried the option 2 and the YAML module installed OK.

Then I executed the command  cmake -GNinja -DBOARD=nrf52_pca10040 .. and it seems compile properly. This is what I get from console:
 
-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4") 
-- Selected BOARD nrf52_pca10040
Parsing Kconfig tree in C:/Users/alfredo/zephyr//Kconfig
Using C:/Users/alfredo/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base
Merging C:/Users/alfredo/zephyr/samples/hello_world/prj.conf
-- Generating zephyr/include/generated/generated_dts_board.h
-- Cache files will be written to: C:\Users\alfredo\AppData\Local/.cache/zephyr
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
-- Performing Test toolchain_is_ok
-- Performing Test toolchain_is_ok - Success
-- 
*******************************
*** NOTE TO KCONFIG AUTHORS ***
*******************************
 
The behavior of Kconfig 'default' properties in Zephyr has changed. The 
earliest default with a satisfied condition is now used, instead of the 
last one. This is standard Kconfig behavior.
 
See http://docs.zephyrproject.org/porting/board_porting.html#old-zephyr-kconfig-behavior-for-defaults.
 
To get rid of this note, create a file called 'hide-defaults-note' in the 
Zephyr root directory. An empty file is fine.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/alfredo/zephyr/samples/hello_world/build
 
Then I excute the next command show in the Start Guide: ninja, and I get another error:
 
[1/133] Generating include/generated/syscall_macros.h
[2/133] Generating include/generated/driver-validation.h
FAILED: zephyr/include/generated/driver-validation.h 
cmd.exe /C "cd /D C:\Users\alfredo\zephyr\samples\hello_world\build\zephyr && C:\Python37\python.exe C:/Users/alfredo/zephyr//scripts/gen_kobject_list.py --validation-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/driver-validation.h "
Traceback (most recent call last):
 
  File "C:/Users/alfredo/zephyr//scripts/gen_kobject_list.py", line 13, in <module>
 
    from elf_helper import ElfHelper, kobject_to_enum
 
  File "C:\Users\alfredo\zephyr\scripts\elf_helper.py", line 14, in <module>
 
    import elftools
 
ModuleNotFoundError: No module named 'elftools'
 
[3/133] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h
FAILED: zephyr/include/generated/kobj-types-enum.h zephyr/include/generated/otype-to-str.h 
cmd.exe /C "cd /D C:\Users\alfredo\zephyr\samples\hello_world\build\zephyr && C:\Python37\python.exe C:\Users\alfredo\zephyr\/scripts/gen_kobject_list.py --kobj-types-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/kobj-types-enum.h --kobj-otype-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/otype-to-str.h --kobj-size-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/otype-to-size.h "
Traceback (most recent call last):
 
  File "C:\Users\alfredo\zephyr\/scripts/gen_kobject_list.py", line 13, in <module>
 
    from elf_helper import ElfHelper, kobject_to_enum
 
  File "C:\Users\alfredo\zephyr\scripts\elf_helper.py", line 14, in <module>
 
    import elftools
 
ModuleNotFoundError: No module named 'elftools'
 
[4/133] Generating misc/generated/syscalls.json
ninja: build stopped: subcommand failed.
 
Thanks.
Best regards
 
 
 

 

 

 

 

De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Enviado el: miércoles, 29 de agosto de 2018 12:41
Para: Cufi, Carles; (ELT) Benjamín Alcalde; devel@...
CC: Marti Bolivar; Ulf Magnusson
Asunto: Re: [Zephyr-devel] Error compiling sample Hello World

 

Sorry, a couple of corrections:

 

There is no *non-beta* PyYAML version available pre-complied on PyPi for Python 3.7, which is what you have installed from what I can see.

 

Option 1:

Install like this:

pip3 install PyYAML==4.2b4

 

 

From: devel@... <devel@...> On Behalf Of Cufi, Carles
Sent: 29 August 2018 12:39
To: (ELT) Benjamín Alcalde <balcalde@...>; devel@...
Cc: Marti Bolivar <marti@...>; Ulf Magnusson <ulfalizer@...>
Subject: Re: [Zephyr-devel] Error compiling sample Hello World

 

I think this is what is going on:

 

There is no PyYAML version available pre-complied on PyPi for Python 3.7, which is what you have installed from what I can see.

 

In order to get around this, there are 2 options:

 

Option 1:

Install like this:

pip install PyYAML==4.2b4

 

Option 2:

·         1) Download PyYAML‑3.13‑cp37‑cp37m‑win_amd64.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyyaml

2) pip3 install PyYAML-3.13-cp37-cp37m-win_amd64.whl

 

I would try option1 first, if there’s issues with the pyyaml version you can always switch to Option 2 after (uninstall PyYAML first)

 

Carles

 

From: (ELT) Benjamín Alcalde <balcalde@...>
Sent: 29 August 2018 12:25
To: Cufi, Carles <Carles.Cufi@...>; devel@...
Subject: RE: [Zephyr-devel] Error compiling sample Hello World

 

Hi again:

I checked the modules installed in the PC with Windows 8.1 64bits and this is what I get:

 

Package                  Version 

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

alabaster                  0.7.11  

Babel                      2.6.0   

breathe                    4.9.1   

certifi                      2018.8.24

chardet                    3.0.4   

colorama                 0.3.9   

docutils                   0.14    

idna                         2.7     

imagesize                1.0.0   

Jinja2                      2.10    

junit2html               21      

MarkupSafe           1.0     

packaging               17.1    

pip                          10.0.1  

Pygments                2.2.0   

pyparsing                2.2.0   

pytz                         2018.5  

requests                 2.19.1  

setuptools               39.0.1  

six                           1.11.0  

snowballstemmer    1.2.1   

Sphinx                   1.7.5   

sphinx-rtd-theme     0.4.1   

sphinxcontrib-websupport 1.1.0   

urllib3                                     1.23    

wheel                      0.30.0

 

As can be seen the module Yaml is not  installed that’s why we get last error.

I tried to install the module using :

 

pip3 install -r scripts/requirements.txt

 

I get three errors. I copy all the messages obtained and mark in red the errors

 

Requirement already satisfied: wheel==0.30.0 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 1)) (0.30.0)

Requirement already satisfied: breathe==4.9.1 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 2)) (4.9.1)

Requirement already satisfied: sphinx==1.7.5 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 3)) (1.7.5)

Requirement already satisfied: docutils==0.14 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 4)) (0.14)

Requirement already satisfied: sphinx_rtd_theme in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 5)) (0.4.1)

Requirement already satisfied: junit2html in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 6)) (21)

Collecting PyYAML==3.12 (from -r scripts/requirements.txt (line 7))

Using cached https://files.pythonhosted.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac635d36245a72a6a69b23b383a/PyYAML-3.12.tar.gz

Collecting ply==3.10 (from -r scripts/requirements.txt (line 8))

Collecting hub==2.0 (from -r scripts/requirements.txt (line 9))

Collecting gitlint (from -r scripts/requirements.txt (line 10))

Using cached https://files.pythonhosted.org/packages/c2/1f/e4ccfeeca84e5bb03d3d552549ba141ed6b42e3525cedb45d0f7e8164cda/gitlint-0.10.0-py2.py3-none-any.whl

Collecting pyelftools==0.24 (from -r scripts/requirements.txt (line 11))

Collecting pyocd (from -r scripts/requirements.txt (line 12))

Collecting pyserial (from -r scripts/requirements.txt (line 13))

Using cached https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl

Collecting pykwalify (from -r scripts/requirements.txt (line 14))

Using cached https://files.pythonhosted.org/packages/ce/d2/550d30b645425fd11e503d6e04fc19e91719941faf0e4e08a58d278b6345/pykwalify-1.6.1-py2.py3-none-any.whl

Collecting windows-curses (from -r scripts/requirements.txt (line 16))

Using cached https://files.pythonhosted.org/packages/bd/fe/bb10e19712b3a017b885dd91c8b0105dfc07623cee54e019053c0d4382a0/windows_curses-1.0-cp37-cp37m-win_amd64.whl

Requirement already satisfied: six>=1.4 in c:\python37\lib\site-packages (from breathe==4.9.1->-r scripts/requirements.txt (line 2)) (1.11.0)

Requirement already satisfied: imagesize in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.0.0)

Requirement already satisfied: packaging in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (17.1)

Requirement already satisfied: Pygments>=2.0 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.2.0)

Requirement already satisfied: Jinja2>=2.3 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.10)

Requirement already satisfied: sphinxcontrib-websupport in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.1.0)

Requirement already satisfied: setuptools in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (39.0.1)

Requirement already satisfied: alabaster<0.8,>=0.7 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (0.7.11)

Requirement already satisfied: babel!=2.0,>=1.3 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.6.0)

Requirement already satisfied: colorama>=0.3.5; sys_platform == "win32" in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (0.3.9)

Requirement already satisfied: snowballstemmer>=1.1 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.2.1)

Requirement already satisfied: requests>=2.0.0 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.19.1)

Collecting git-spindle (from hub==2.0->-r scripts/requirements.txt (line 9))

Collecting Click==6.6 (from gitlint->-r scripts/requirements.txt (line 10))

Using cached https://files.pythonhosted.org/packages/1c/7c/10b4132dd952b6a04e37626258825b8aa8c1eb99545f2eb26a77c21efb55/click-6.6-py2.py3-none-any.whl

Collecting arrow==0.10.0 (from gitlint->-r scripts/requirements.txt (line 10))

Collecting intervaltree (from pyocd->-r scripts/requirements.txt (line 12))

Collecting websocket-client (from pyocd->-r scripts/requirements.txt (line 12))

Using cached https://files.pythonhosted.org/packages/6a/0b/fe3a2d47066005c928056f60ed308036485a7d8bcfa6595d4f7a45f1b938/websocket_client-0.51.0-py2.py3-none-any.whl

Collecting intelhex (from pyocd->-r scripts/requirements.txt (line 12))

Using cached https://files.pythonhosted.org/packages/bf/77/bf670318b3db325c71e2ac6a90b7bcfdf9fc739b7cf6aebb31715721623e/intelhex-2.2.1-py2.py3-none-any.whl

Collecting enum34 (from pyocd->-r scripts/requirements.txt (line 12))

  Using cached https://files.pythonhosted.org/packages/af/42/cb9355df32c69b553e72a2e28daee25d1611d2c0d9c272aa1d34204205b2/enum34-1.1.6-py3-none-any.whl

Collecting future (from pyocd->-r scripts/requirements.txt (line 12))

Collecting pywinusb>=0.4.0 (from pyocd->-r scripts/requirements.txt (line 12))

Collecting python-dateutil>=2.4.2 (from pykwalify->-r scripts/requirements.txt (line 14))

  Using cached https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl

Collecting docopt>=0.6.2 (from pykwalify->-r scripts/requirements.txt (line 14))

Requirement already satisfied: pyparsing>=2.0.2 in c:\python37\lib\site-packages (from packaging->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.2.0)

Requirement already satisfied: MarkupSafe>=0.23 in c:\python37\lib\site-packages (from Jinja2>=2.3->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.0)

Requirement already satisfied: pytz>=0a in c:\python37\lib\site-packages (from babel!=2.0,>=1.3->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2018.5)

Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (3.0.4)

Requirement already satisfied: urllib3<1.24,>=1.21.1 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.23)

Requirement already satisfied: idna<2.8,>=2.5 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.7)

Requirement already satisfied: certifi>=2017.4.17 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2018.8.24)

Collecting github3.py<1.0,>=0.9.0 (from git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/b9/bd/9e433bd695567ccf2bdc0f4c2cdc7da2ce2bb8467e405b2fca62631d8690/github3.py-0.9.6-py2.py3-none-any.whl

Collecting whelk>=2.6 (from git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

Collecting sortedcontainers (from intervaltree->pyocd->-r scripts/requirements.txt (line 12))

  Using cached https://files.pythonhosted.org/packages/cb/53/fe764fc8042e13245b50c4032fb2f857bc1e502aaca83063dcdf6b94d223/sortedcontainers-2.0.4-py2.py3-none-any.whl

Collecting uritemplate.py>=0.2.0 (from github3.py<1.0,>=0.9.0->git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/8b/ba/6cbb9c3bf4f53997d8d1f69414fc7962f536ba43d283f0e32de68534f6a4/uritemplate.py-3.0.2-py2.py3-none-any.whl

Collecting uritemplate>=2.0 (from uritemplate.py>=0.2.0->github3.py<1.0,>=0.9.0->git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/e5/7d/9d5a640c4f8bf2c8b1afc015e9a9d8de32e13c9016dcc4b0ec03481fb396/uritemplate-3.0.0-py2.py3-none-any.whl

Building wheels for collected packages: PyYAML

  Running setup.py bdist_wheel for PyYAML: started

  Running setup.py bdist_wheel for PyYAML: finished with status 'error'

  Complete output from command c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\alfredo\AppData\Local\Temp\pip-wheel-gbtb_d97 --python-tag cp37:

  running bdist_wheel

  running build

  running build_py

  creating build

  creating build\lib.win-amd64-3.7

  creating build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\composer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\constructor.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\cyaml.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\dumper.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\emitter.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\error.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\events.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\loader.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\nodes.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\parser.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\reader.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\representer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\resolver.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\scanner.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\serializer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\tokens.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\__init__.py -> build\lib.win-amd64-3.7\yaml

  running build_ext

  creating build\temp.win-amd64-3.7

  creating build\temp.win-amd64-3.7\Release

  checking if libyaml is compilable

  error: [WinError 3] El sistema no puede encontrar la ruta especificada: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'

 

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

  Running setup.py clean for PyYAML

Failed to build PyYAML

Installing collected packages: PyYAML, ply, docopt, uritemplate, uritemplate.py, github3.py, whelk, git-spindle, hub, Click, python-dateutil, arrow, gitlint, pyelftools, sortedcontainers, intervaltree, websocket-client, intelhex, enum34, future, pywinusb, pyocd, pyserial, pykwalify, windows-curses

  Running setup.py install for PyYAML: started

    Running setup.py install for PyYAML: finished with status 'error'

    Complete output from command c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\alfredo\AppData\Local\Temp\pip-record-9b1lbcnj\install-record.txt --single-version-externally-managed --compile:

    running install

    running build

    running build_py

    creating build

    creating build\lib.win-amd64-3.7

    creating build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\composer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\constructor.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\cyaml.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\dumper.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\emitter.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\error.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\events.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\loader.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\nodes.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\parser.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\reader.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\representer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\resolver.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\scanner.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\serializer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\tokens.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\__init__.py -> build\lib.win-amd64-3.7\yaml

    running build_ext

    creating build\temp.win-amd64-3.7

    creating build\temp.win-amd64-3.7\Release

    checking if libyaml is compilable

    error: [WinError 3] El sistema no puede encontrar la ruta especificada: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'

   

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

                  Failed building wheel for PyYAML

Command "c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\

\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f

=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f

.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\alfred

o\AppData\Local\Temp\pip-record-9b1lbcnj\install-record.txt --single-version-ext

ernally-managed --compile" failed with error code 1 in C:\Users\alfredo\AppData\

Local\Temp\pip-install-li00oeey\PyYAML\

You are using pip version 10.0.1, however version 18.0 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' comm

and.

 

Do I need install Microsoft Visual Studio 14.0?

Thanks.

 

Regards.

 

 

 

De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Enviado el: miércoles, 29 de agosto de 2018 11:46
Para: (ELT) Benjamín Alcalde; devel@...
Asunto: Re: [Zephyr-devel] Error compiling sample Hello World

 

Hey there,

 

I am about to submit an update to the chocolatey package to fix the issue you had with DTC and a 32-bit host.

 

Regarding the error you are getting now, this looks like you’re missing the Python yaml module. To install it, refer to:

http://docs.zephyrproject.org/getting_started/installation_win.html#option-1-windows-command-prompt

 

In particular:

cd %userprofile%\zephyr

pip3 install -r scripts/requirements.txt

 

Make sure you don’t have multiple Python3 versions installed on your machine, this could confuse things a bit.

 

To make sure you have the module installed, you can do:

 

pip3 list

 

Carles

 

From: (ELT) Benjamín Alcalde <balcalde@...>
Sent: 29 August 2018 11:41
To: Cufi, Carles <Carles.Cufi@...>; devel@...
Subject: RE: [Zephyr-devel] Error compiling sample Hello World

 

Hi everyone again:

I get another PC with Windows 8.1 Enterprise 64bits. I started again with the steps show in Getting Started Guide and I get another error. This what I get from the console:

 

C:\Users\alfredo\zephyr\samples\hello_world\build>cmake -GNinja -DBOARD=nrf52_pca10040 ..

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD nrf52_pca10040

Zephyr version: 1.13.0

Parsing Kconfig tree in c:/Users/alfredo/zephyr/Kconfig

Using C:/Users/alfredo/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base

Merging C:/Users/alfredo/zephyr/samples/hello_world/prj.conf

-- Generating zephyr/include/generated/generated_dts_board.h

Traceback (most recent call last):

File "c:/Users/alfredo/zephyr/scripts/dts/extract_dts_includes.py", line 15, in <module> import yaml

ModuleNotFoundError: No module named 'yaml'

CMake Error at C:/Users/alfredo/zephyr/cmake/dts.cmake:126 (message):command failed with return code: 1

Call Stack (most recent call first):

C:/Users/alfredo/zephyr/cmake/app/boilerplate.cmake:278 (include)

CMakeLists.txt:3 (include)

 

-- Configuring incomplete, errors occurred!

 

Then I tried to check de DTC version as Carles Cufi told me and this is what I get:

 

C:\Users\alfredo>dtc --version

Version: DTC 1.4.4-ga81d4ca0-dirty

 

 

Thanks in advance.

Best regards

 

 

 

 

De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Enviado el: martes, 28 de agosto de 2018 14:35
Para: IosuGorostiza; devel@...
Asunto: Re: [Zephyr-devel] Error compiling sample Hello World

 

Hi there,

 

Sounds like there’s an issue with DTC and a 32-bit host. While we do support a 32-bit version of it, I’ve never tested it myself since I don’t have access to a 32-bit Windows installation.

Did you install dtc using Chocolatey?

Could you try perhaps running dtc manually? Open a command prompt and then:

 

C:\Users\Carles>dtc --version

Version: DTC 1.4.4-ga81d4ca0-dirty

 

Thanks,

 

Carles

 

From: devel@... <devel@...> On Behalf Of IosuGorostiza
Sent: 28 August 2018 14:30
To: devel@...
Subject: [Zephyr-devel] Error compiling sample Hello World

 

Hi everybody:
I´m trying to compile the example hello_world as described in the Getting Started Guide. I follow every step of the guide but I´m not able to compile. I deleted everything and start again from the beggining several times and always get the same error. The steps I followed was for ARM.
I´m using the board nrf52_pca10040 in a PC with Windows 8.1 Enterprise 32bits.
Next, I paste what I obtained after executing the compiling instruction:

C:\Users\balcalde\zephyr\samples\hello_world\build>cmake -GNinja -DBOARD=nrf52_pca10040 ..

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD nrf52_pca10040

Zephyr version: 1.13.0

Parsing Kconfig tree in C:/Users/balcalde/zephyr//Kconfig

Using C:/Users/balcalde/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base

Merging C:/Users/balcalde/zephyr/samples/hello_world/prj.conf

-- Generating zephyr/include/generated/generated_dts_board.h

CMake Error at C:/Users/balcalde/zephyr/cmake/dts.cmake:84 (message):command failed with return code: Exit code 0xc0000135

 

Call Stack (most recent call first):

  C:/Users/balcalde/zephyr/cmake/app/boilerplate.cmake:278 (include)

  CMakeLists.txt:3 (include)

-- Configuring incomplete, errors occurred!

I spent many hours searching trough the web and reading zephyr documentation but I didn´t found anything that help me to solve that error.

I apprecite any help.
Thanks, best regards

 

 

 

 

 


Re: Error compiling sample Hello World

IosuGorostiza <balcalde@...>
 

Hi:

I didn´t tell that I am using Zephyr 1.12.0.

The versión of Phyton 3.7 is the versión installed when I executed  the command choco install git python ninja dtc-msys2 gperf

I tried the option 1 and I get the same errors.

I tried the option 2 and the YAML module installed OK.

Then I executed the command  cmake -GNinja -DBOARD=nrf52_pca10040 .. and it seems compile properly. This is what I get from console:
 
-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4") 
-- Selected BOARD nrf52_pca10040
Parsing Kconfig tree in C:/Users/alfredo/zephyr//Kconfig
Using C:/Users/alfredo/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base
Merging C:/Users/alfredo/zephyr/samples/hello_world/prj.conf
-- Generating zephyr/include/generated/generated_dts_board.h
-- Cache files will be written to: C:\Users\alfredo\AppData\Local/.cache/zephyr
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
-- Performing Test toolchain_is_ok
-- Performing Test toolchain_is_ok - Success
-- 
*******************************
*** NOTE TO KCONFIG AUTHORS ***
*******************************
 
The behavior of Kconfig 'default' properties in Zephyr has changed. The 
earliest default with a satisfied condition is now used, instead of the 
last one. This is standard Kconfig behavior.
 
See http://docs.zephyrproject.org/porting/board_porting.html#old-zephyr-kconfig-behavior-for-defaults.
 
To get rid of this note, create a file called 'hide-defaults-note' in the 
Zephyr root directory. An empty file is fine.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/alfredo/zephyr/samples/hello_world/build
 
Then I excute the next command show in the Start Guide: ninja, and I get another error:
 
[1/133] Generating include/generated/syscall_macros.h
[2/133] Generating include/generated/driver-validation.h
FAILED: zephyr/include/generated/driver-validation.h 
cmd.exe /C "cd /D C:\Users\alfredo\zephyr\samples\hello_world\build\zephyr && C:\Python37\python.exe C:/Users/alfredo/zephyr//scripts/gen_kobject_list.py --validation-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/driver-validation.h "
Traceback (most recent call last):
 
  File "C:/Users/alfredo/zephyr//scripts/gen_kobject_list.py", line 13, in <module>
 
    from elf_helper import ElfHelper, kobject_to_enum
 
  File "C:\Users\alfredo\zephyr\scripts\elf_helper.py", line 14, in <module>
 
    import elftools
 
ModuleNotFoundError: No module named 'elftools'
 
[3/133] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h
FAILED: zephyr/include/generated/kobj-types-enum.h zephyr/include/generated/otype-to-str.h 
cmd.exe /C "cd /D C:\Users\alfredo\zephyr\samples\hello_world\build\zephyr && C:\Python37\python.exe C:\Users\alfredo\zephyr\/scripts/gen_kobject_list.py --kobj-types-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/kobj-types-enum.h --kobj-otype-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/otype-to-str.h --kobj-size-output C:/Users/alfredo/zephyr/samples/hello_world/build/zephyr/include/generated/otype-to-size.h "
Traceback (most recent call last):
 
  File "C:\Users\alfredo\zephyr\/scripts/gen_kobject_list.py", line 13, in <module>
 
    from elf_helper import ElfHelper, kobject_to_enum
 
  File "C:\Users\alfredo\zephyr\scripts\elf_helper.py", line 14, in <module>
 
    import elftools
 
ModuleNotFoundError: No module named 'elftools'
 
[4/133] Generating misc/generated/syscalls.json
ninja: build stopped: subcommand failed.
 
Thanks.
Best regards
 
 
 

 

 

 

 

De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Enviado el: miércoles, 29 de agosto de 2018 12:41
Para: Cufi, Carles; (ELT) Benjamín Alcalde; devel@...
CC: Marti Bolivar; Ulf Magnusson
Asunto: Re: [Zephyr-devel] Error compiling sample Hello World

 

Sorry, a couple of corrections:

 

There is no *non-beta* PyYAML version available pre-complied on PyPi for Python 3.7, which is what you have installed from what I can see.

 

Option 1:

Install like this:

pip3 install PyYAML==4.2b4

 

 

From: devel@... <devel@...> On Behalf Of Cufi, Carles
Sent: 29 August 2018 12:39
To: (ELT) Benjamín Alcalde <balcalde@...>; devel@...
Cc: Marti Bolivar <marti@...>; Ulf Magnusson <ulfalizer@...>
Subject: Re: [Zephyr-devel] Error compiling sample Hello World

 

I think this is what is going on:

 

There is no PyYAML version available pre-complied on PyPi for Python 3.7, which is what you have installed from what I can see.

 

In order to get around this, there are 2 options:

 

Option 1:

Install like this:

pip install PyYAML==4.2b4

 

Option 2:

·         1) Download PyYAML‑3.13‑cp37‑cp37m‑win_amd64.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyyaml

2) pip3 install PyYAML-3.13-cp37-cp37m-win_amd64.whl

 

I would try option1 first, if there’s issues with the pyyaml version you can always switch to Option 2 after (uninstall PyYAML first)

 

Carles

 

From: (ELT) Benjamín Alcalde <balcalde@...>
Sent: 29 August 2018 12:25
To: Cufi, Carles <Carles.Cufi@...>; devel@...
Subject: RE: [Zephyr-devel] Error compiling sample Hello World

 

Hi again:

I checked the modules installed in the PC with Windows 8.1 64bits and this is what I get:

 

Package                  Version 

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

alabaster                  0.7.11  

Babel                      2.6.0   

breathe                    4.9.1   

certifi                      2018.8.24

chardet                    3.0.4   

colorama                 0.3.9   

docutils                   0.14    

idna                         2.7     

imagesize                1.0.0   

Jinja2                      2.10    

junit2html               21      

MarkupSafe           1.0     

packaging               17.1    

pip                          10.0.1  

Pygments                2.2.0   

pyparsing                2.2.0   

pytz                         2018.5  

requests                 2.19.1  

setuptools               39.0.1  

six                           1.11.0  

snowballstemmer    1.2.1   

Sphinx                   1.7.5   

sphinx-rtd-theme     0.4.1   

sphinxcontrib-websupport 1.1.0   

urllib3                                     1.23    

wheel                      0.30.0

 

As can be seen the module Yaml is not  installed that’s why we get last error.

I tried to install the module using :

 

pip3 install -r scripts/requirements.txt

 

I get three errors. I copy all the messages obtained and mark in red the errors

 

Requirement already satisfied: wheel==0.30.0 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 1)) (0.30.0)

Requirement already satisfied: breathe==4.9.1 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 2)) (4.9.1)

Requirement already satisfied: sphinx==1.7.5 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 3)) (1.7.5)

Requirement already satisfied: docutils==0.14 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 4)) (0.14)

Requirement already satisfied: sphinx_rtd_theme in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 5)) (0.4.1)

Requirement already satisfied: junit2html in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 6)) (21)

Collecting PyYAML==3.12 (from -r scripts/requirements.txt (line 7))

Using cached https://files.pythonhosted.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac635d36245a72a6a69b23b383a/PyYAML-3.12.tar.gz

Collecting ply==3.10 (from -r scripts/requirements.txt (line 8))

Collecting hub==2.0 (from -r scripts/requirements.txt (line 9))

Collecting gitlint (from -r scripts/requirements.txt (line 10))

Using cached https://files.pythonhosted.org/packages/c2/1f/e4ccfeeca84e5bb03d3d552549ba141ed6b42e3525cedb45d0f7e8164cda/gitlint-0.10.0-py2.py3-none-any.whl

Collecting pyelftools==0.24 (from -r scripts/requirements.txt (line 11))

Collecting pyocd (from -r scripts/requirements.txt (line 12))

Collecting pyserial (from -r scripts/requirements.txt (line 13))

Using cached https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl

Collecting pykwalify (from -r scripts/requirements.txt (line 14))

Using cached https://files.pythonhosted.org/packages/ce/d2/550d30b645425fd11e503d6e04fc19e91719941faf0e4e08a58d278b6345/pykwalify-1.6.1-py2.py3-none-any.whl

Collecting windows-curses (from -r scripts/requirements.txt (line 16))

Using cached https://files.pythonhosted.org/packages/bd/fe/bb10e19712b3a017b885dd91c8b0105dfc07623cee54e019053c0d4382a0/windows_curses-1.0-cp37-cp37m-win_amd64.whl

Requirement already satisfied: six>=1.4 in c:\python37\lib\site-packages (from breathe==4.9.1->-r scripts/requirements.txt (line 2)) (1.11.0)

Requirement already satisfied: imagesize in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.0.0)

Requirement already satisfied: packaging in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (17.1)

Requirement already satisfied: Pygments>=2.0 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.2.0)

Requirement already satisfied: Jinja2>=2.3 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.10)

Requirement already satisfied: sphinxcontrib-websupport in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.1.0)

Requirement already satisfied: setuptools in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (39.0.1)

Requirement already satisfied: alabaster<0.8,>=0.7 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (0.7.11)

Requirement already satisfied: babel!=2.0,>=1.3 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.6.0)

Requirement already satisfied: colorama>=0.3.5; sys_platform == "win32" in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (0.3.9)

Requirement already satisfied: snowballstemmer>=1.1 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.2.1)

Requirement already satisfied: requests>=2.0.0 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.19.1)

Collecting git-spindle (from hub==2.0->-r scripts/requirements.txt (line 9))

Collecting Click==6.6 (from gitlint->-r scripts/requirements.txt (line 10))

Using cached https://files.pythonhosted.org/packages/1c/7c/10b4132dd952b6a04e37626258825b8aa8c1eb99545f2eb26a77c21efb55/click-6.6-py2.py3-none-any.whl

Collecting arrow==0.10.0 (from gitlint->-r scripts/requirements.txt (line 10))

Collecting intervaltree (from pyocd->-r scripts/requirements.txt (line 12))

Collecting websocket-client (from pyocd->-r scripts/requirements.txt (line 12))

Using cached https://files.pythonhosted.org/packages/6a/0b/fe3a2d47066005c928056f60ed308036485a7d8bcfa6595d4f7a45f1b938/websocket_client-0.51.0-py2.py3-none-any.whl

Collecting intelhex (from pyocd->-r scripts/requirements.txt (line 12))

Using cached https://files.pythonhosted.org/packages/bf/77/bf670318b3db325c71e2ac6a90b7bcfdf9fc739b7cf6aebb31715721623e/intelhex-2.2.1-py2.py3-none-any.whl

Collecting enum34 (from pyocd->-r scripts/requirements.txt (line 12))

  Using cached https://files.pythonhosted.org/packages/af/42/cb9355df32c69b553e72a2e28daee25d1611d2c0d9c272aa1d34204205b2/enum34-1.1.6-py3-none-any.whl

Collecting future (from pyocd->-r scripts/requirements.txt (line 12))

Collecting pywinusb>=0.4.0 (from pyocd->-r scripts/requirements.txt (line 12))

Collecting python-dateutil>=2.4.2 (from pykwalify->-r scripts/requirements.txt (line 14))

  Using cached https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl

Collecting docopt>=0.6.2 (from pykwalify->-r scripts/requirements.txt (line 14))

Requirement already satisfied: pyparsing>=2.0.2 in c:\python37\lib\site-packages (from packaging->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.2.0)

Requirement already satisfied: MarkupSafe>=0.23 in c:\python37\lib\site-packages (from Jinja2>=2.3->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.0)

Requirement already satisfied: pytz>=0a in c:\python37\lib\site-packages (from babel!=2.0,>=1.3->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2018.5)

Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (3.0.4)

Requirement already satisfied: urllib3<1.24,>=1.21.1 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.23)

Requirement already satisfied: idna<2.8,>=2.5 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.7)

Requirement already satisfied: certifi>=2017.4.17 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2018.8.24)

Collecting github3.py<1.0,>=0.9.0 (from git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/b9/bd/9e433bd695567ccf2bdc0f4c2cdc7da2ce2bb8467e405b2fca62631d8690/github3.py-0.9.6-py2.py3-none-any.whl

Collecting whelk>=2.6 (from git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

Collecting sortedcontainers (from intervaltree->pyocd->-r scripts/requirements.txt (line 12))

  Using cached https://files.pythonhosted.org/packages/cb/53/fe764fc8042e13245b50c4032fb2f857bc1e502aaca83063dcdf6b94d223/sortedcontainers-2.0.4-py2.py3-none-any.whl

Collecting uritemplate.py>=0.2.0 (from github3.py<1.0,>=0.9.0->git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/8b/ba/6cbb9c3bf4f53997d8d1f69414fc7962f536ba43d283f0e32de68534f6a4/uritemplate.py-3.0.2-py2.py3-none-any.whl

Collecting uritemplate>=2.0 (from uritemplate.py>=0.2.0->github3.py<1.0,>=0.9.0->git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/e5/7d/9d5a640c4f8bf2c8b1afc015e9a9d8de32e13c9016dcc4b0ec03481fb396/uritemplate-3.0.0-py2.py3-none-any.whl

Building wheels for collected packages: PyYAML

  Running setup.py bdist_wheel for PyYAML: started

  Running setup.py bdist_wheel for PyYAML: finished with status 'error'

  Complete output from command c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\alfredo\AppData\Local\Temp\pip-wheel-gbtb_d97 --python-tag cp37:

  running bdist_wheel

  running build

  running build_py

  creating build

  creating build\lib.win-amd64-3.7

  creating build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\composer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\constructor.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\cyaml.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\dumper.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\emitter.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\error.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\events.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\loader.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\nodes.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\parser.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\reader.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\representer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\resolver.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\scanner.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\serializer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\tokens.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\__init__.py -> build\lib.win-amd64-3.7\yaml

  running build_ext

  creating build\temp.win-amd64-3.7

  creating build\temp.win-amd64-3.7\Release

  checking if libyaml is compilable

  error: [WinError 3] El sistema no puede encontrar la ruta especificada: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'

 

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

  Running setup.py clean for PyYAML

Failed to build PyYAML

Installing collected packages: PyYAML, ply, docopt, uritemplate, uritemplate.py, github3.py, whelk, git-spindle, hub, Click, python-dateutil, arrow, gitlint, pyelftools, sortedcontainers, intervaltree, websocket-client, intelhex, enum34, future, pywinusb, pyocd, pyserial, pykwalify, windows-curses

  Running setup.py install for PyYAML: started

    Running setup.py install for PyYAML: finished with status 'error'

    Complete output from command c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\alfredo\AppData\Local\Temp\pip-record-9b1lbcnj\install-record.txt --single-version-externally-managed --compile:

    running install

    running build

    running build_py

    creating build

    creating build\lib.win-amd64-3.7

    creating build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\composer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\constructor.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\cyaml.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\dumper.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\emitter.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\error.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\events.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\loader.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\nodes.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\parser.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\reader.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\representer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\resolver.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\scanner.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\serializer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\tokens.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\__init__.py -> build\lib.win-amd64-3.7\yaml

    running build_ext

    creating build\temp.win-amd64-3.7

    creating build\temp.win-amd64-3.7\Release

    checking if libyaml is compilable

    error: [WinError 3] El sistema no puede encontrar la ruta especificada: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'

   

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

                  Failed building wheel for PyYAML

Command "c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\

\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f

=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f

.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\alfred

o\AppData\Local\Temp\pip-record-9b1lbcnj\install-record.txt --single-version-ext

ernally-managed --compile" failed with error code 1 in C:\Users\alfredo\AppData\

Local\Temp\pip-install-li00oeey\PyYAML\

You are using pip version 10.0.1, however version 18.0 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' comm

and.

 

Do I need install Microsoft Visual Studio 14.0?

Thanks.

 

Regards.

 

 

 

De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Enviado el: miércoles, 29 de agosto de 2018 11:46
Para: (ELT) Benjamín Alcalde; devel@...
Asunto: Re: [Zephyr-devel] Error compiling sample Hello World

 

Hey there,

 

I am about to submit an update to the chocolatey package to fix the issue you had with DTC and a 32-bit host.

 

Regarding the error you are getting now, this looks like you’re missing the Python yaml module. To install it, refer to:

http://docs.zephyrproject.org/getting_started/installation_win.html#option-1-windows-command-prompt

 

In particular:

cd %userprofile%\zephyr

pip3 install -r scripts/requirements.txt

 

Make sure you don’t have multiple Python3 versions installed on your machine, this could confuse things a bit.

 

To make sure you have the module installed, you can do:

 

pip3 list

 

Carles

 

From: (ELT) Benjamín Alcalde <balcalde@...>
Sent: 29 August 2018 11:41
To: Cufi, Carles <Carles.Cufi@...>; devel@...
Subject: RE: [Zephyr-devel] Error compiling sample Hello World

 

Hi everyone again:

I get another PC with Windows 8.1 Enterprise 64bits. I started again with the steps show in Getting Started Guide and I get another error. This what I get from the console:

 

C:\Users\alfredo\zephyr\samples\hello_world\build>cmake -GNinja -DBOARD=nrf52_pca10040 ..

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD nrf52_pca10040

Zephyr version: 1.13.0

Parsing Kconfig tree in c:/Users/alfredo/zephyr/Kconfig

Using C:/Users/alfredo/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base

Merging C:/Users/alfredo/zephyr/samples/hello_world/prj.conf

-- Generating zephyr/include/generated/generated_dts_board.h

Traceback (most recent call last):

File "c:/Users/alfredo/zephyr/scripts/dts/extract_dts_includes.py", line 15, in <module> import yaml

ModuleNotFoundError: No module named 'yaml'

CMake Error at C:/Users/alfredo/zephyr/cmake/dts.cmake:126 (message):command failed with return code: 1

Call Stack (most recent call first):

C:/Users/alfredo/zephyr/cmake/app/boilerplate.cmake:278 (include)

CMakeLists.txt:3 (include)

 

-- Configuring incomplete, errors occurred!

 

Then I tried to check de DTC version as Carles Cufi told me and this is what I get:

 

C:\Users\alfredo>dtc --version

Version: DTC 1.4.4-ga81d4ca0-dirty

 

 

Thanks in advance.

Best regards

 

 

 

 

De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Enviado el: martes, 28 de agosto de 2018 14:35
Para: IosuGorostiza; devel@...
Asunto: Re: [Zephyr-devel] Error compiling sample Hello World

 

Hi there,

 

Sounds like there’s an issue with DTC and a 32-bit host. While we do support a 32-bit version of it, I’ve never tested it myself since I don’t have access to a 32-bit Windows installation.

Did you install dtc using Chocolatey?

Could you try perhaps running dtc manually? Open a command prompt and then:

 

C:\Users\Carles>dtc --version

Version: DTC 1.4.4-ga81d4ca0-dirty

 

Thanks,

 

Carles

 

From: devel@... <devel@...> On Behalf Of IosuGorostiza
Sent: 28 August 2018 14:30
To: devel@...
Subject: [Zephyr-devel] Error compiling sample Hello World

 

Hi everybody:
I´m trying to compile the example hello_world as described in the Getting Started Guide. I follow every step of the guide but I´m not able to compile. I deleted everything and start again from the beggining several times and always get the same error. The steps I followed was for ARM.
I´m using the board nrf52_pca10040 in a PC with Windows 8.1 Enterprise 32bits.
Next, I paste what I obtained after executing the compiling instruction:

C:\Users\balcalde\zephyr\samples\hello_world\build>cmake -GNinja -DBOARD=nrf52_pca10040 ..

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD nrf52_pca10040

Zephyr version: 1.13.0

Parsing Kconfig tree in C:/Users/balcalde/zephyr//Kconfig

Using C:/Users/balcalde/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base

Merging C:/Users/balcalde/zephyr/samples/hello_world/prj.conf

-- Generating zephyr/include/generated/generated_dts_board.h

CMake Error at C:/Users/balcalde/zephyr/cmake/dts.cmake:84 (message):command failed with return code: Exit code 0xc0000135

 

Call Stack (most recent call first):

  C:/Users/balcalde/zephyr/cmake/app/boilerplate.cmake:278 (include)

  CMakeLists.txt:3 (include)

-- Configuring incomplete, errors occurred!

I spent many hours searching trough the web and reading zephyr documentation but I didn´t found anything that help me to solve that error.

I apprecite any help.
Thanks, best regards

 

 

 

 

 


Re: Error compiling sample Hello World

Carles Cufi
 

Sorry, a couple of corrections:

 

There is no *non-beta* PyYAML version available pre-complied on PyPi for Python 3.7, which is what you have installed from what I can see.

 

Option 1:

Install like this:

pip3 install PyYAML==4.2b4

 

 

From: devel@... <devel@...> On Behalf Of Cufi, Carles
Sent: 29 August 2018 12:39
To: (ELT) Benjamín Alcalde <balcalde@...>; devel@...
Cc: Marti Bolivar <marti@...>; Ulf Magnusson <ulfalizer@...>
Subject: Re: [Zephyr-devel] Error compiling sample Hello World

 

I think this is what is going on:

 

There is no PyYAML version available pre-complied on PyPi for Python 3.7, which is what you have installed from what I can see.

 

In order to get around this, there are 2 options:

 

Option 1:

Install like this:

pip install PyYAML==4.2b4

 

Option 2:

·         1) Download PyYAML‑3.13‑cp37‑cp37m‑win_amd64.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyyaml

2) pip3 install PyYAML-3.13-cp37-cp37m-win_amd64.whl

 

I would try option1 first, if there’s issues with the pyyaml version you can always switch to Option 2 after (uninstall PyYAML first)

 

Carles

 

From: (ELT) Benjamín Alcalde <balcalde@...>
Sent: 29 August 2018 12:25
To: Cufi, Carles <Carles.Cufi@...>; devel@...
Subject: RE: [Zephyr-devel] Error compiling sample Hello World

 

Hi again:

I checked the modules installed in the PC with Windows 8.1 64bits and this is what I get:

 

Package                  Version 

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

alabaster                  0.7.11  

Babel                      2.6.0   

breathe                    4.9.1   

certifi                      2018.8.24

chardet                    3.0.4   

colorama                 0.3.9   

docutils                   0.14    

idna                         2.7     

imagesize                1.0.0   

Jinja2                      2.10    

junit2html               21      

MarkupSafe           1.0     

packaging               17.1    

pip                          10.0.1  

Pygments                2.2.0   

pyparsing                2.2.0   

pytz                         2018.5  

requests                 2.19.1  

setuptools               39.0.1  

six                           1.11.0  

snowballstemmer    1.2.1   

Sphinx                   1.7.5   

sphinx-rtd-theme     0.4.1   

sphinxcontrib-websupport 1.1.0   

urllib3                                     1.23    

wheel                      0.30.0

 

As can be seen the module Yaml is not  installed that’s why we get last error.

I tried to install the module using :

 

pip3 install -r scripts/requirements.txt

 

I get three errors. I copy all the messages obtained and mark in red the errors

 

Requirement already satisfied: wheel==0.30.0 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 1)) (0.30.0)

Requirement already satisfied: breathe==4.9.1 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 2)) (4.9.1)

Requirement already satisfied: sphinx==1.7.5 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 3)) (1.7.5)

Requirement already satisfied: docutils==0.14 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 4)) (0.14)

Requirement already satisfied: sphinx_rtd_theme in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 5)) (0.4.1)

Requirement already satisfied: junit2html in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 6)) (21)

Collecting PyYAML==3.12 (from -r scripts/requirements.txt (line 7))

Using cached https://files.pythonhosted.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac635d36245a72a6a69b23b383a/PyYAML-3.12.tar.gz

Collecting ply==3.10 (from -r scripts/requirements.txt (line 8))

Collecting hub==2.0 (from -r scripts/requirements.txt (line 9))

Collecting gitlint (from -r scripts/requirements.txt (line 10))

Using cached https://files.pythonhosted.org/packages/c2/1f/e4ccfeeca84e5bb03d3d552549ba141ed6b42e3525cedb45d0f7e8164cda/gitlint-0.10.0-py2.py3-none-any.whl

Collecting pyelftools==0.24 (from -r scripts/requirements.txt (line 11))

Collecting pyocd (from -r scripts/requirements.txt (line 12))

Collecting pyserial (from -r scripts/requirements.txt (line 13))

Using cached https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl

Collecting pykwalify (from -r scripts/requirements.txt (line 14))

Using cached https://files.pythonhosted.org/packages/ce/d2/550d30b645425fd11e503d6e04fc19e91719941faf0e4e08a58d278b6345/pykwalify-1.6.1-py2.py3-none-any.whl

Collecting windows-curses (from -r scripts/requirements.txt (line 16))

Using cached https://files.pythonhosted.org/packages/bd/fe/bb10e19712b3a017b885dd91c8b0105dfc07623cee54e019053c0d4382a0/windows_curses-1.0-cp37-cp37m-win_amd64.whl

Requirement already satisfied: six>=1.4 in c:\python37\lib\site-packages (from breathe==4.9.1->-r scripts/requirements.txt (line 2)) (1.11.0)

Requirement already satisfied: imagesize in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.0.0)

Requirement already satisfied: packaging in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (17.1)

Requirement already satisfied: Pygments>=2.0 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.2.0)

Requirement already satisfied: Jinja2>=2.3 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.10)

Requirement already satisfied: sphinxcontrib-websupport in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.1.0)

Requirement already satisfied: setuptools in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (39.0.1)

Requirement already satisfied: alabaster<0.8,>=0.7 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (0.7.11)

Requirement already satisfied: babel!=2.0,>=1.3 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.6.0)

Requirement already satisfied: colorama>=0.3.5; sys_platform == "win32" in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (0.3.9)

Requirement already satisfied: snowballstemmer>=1.1 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.2.1)

Requirement already satisfied: requests>=2.0.0 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.19.1)

Collecting git-spindle (from hub==2.0->-r scripts/requirements.txt (line 9))

Collecting Click==6.6 (from gitlint->-r scripts/requirements.txt (line 10))

Using cached https://files.pythonhosted.org/packages/1c/7c/10b4132dd952b6a04e37626258825b8aa8c1eb99545f2eb26a77c21efb55/click-6.6-py2.py3-none-any.whl

Collecting arrow==0.10.0 (from gitlint->-r scripts/requirements.txt (line 10))

Collecting intervaltree (from pyocd->-r scripts/requirements.txt (line 12))

Collecting websocket-client (from pyocd->-r scripts/requirements.txt (line 12))

Using cached https://files.pythonhosted.org/packages/6a/0b/fe3a2d47066005c928056f60ed308036485a7d8bcfa6595d4f7a45f1b938/websocket_client-0.51.0-py2.py3-none-any.whl

Collecting intelhex (from pyocd->-r scripts/requirements.txt (line 12))

Using cached https://files.pythonhosted.org/packages/bf/77/bf670318b3db325c71e2ac6a90b7bcfdf9fc739b7cf6aebb31715721623e/intelhex-2.2.1-py2.py3-none-any.whl

Collecting enum34 (from pyocd->-r scripts/requirements.txt (line 12))

  Using cached https://files.pythonhosted.org/packages/af/42/cb9355df32c69b553e72a2e28daee25d1611d2c0d9c272aa1d34204205b2/enum34-1.1.6-py3-none-any.whl

Collecting future (from pyocd->-r scripts/requirements.txt (line 12))

Collecting pywinusb>=0.4.0 (from pyocd->-r scripts/requirements.txt (line 12))

Collecting python-dateutil>=2.4.2 (from pykwalify->-r scripts/requirements.txt (line 14))

  Using cached https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl

Collecting docopt>=0.6.2 (from pykwalify->-r scripts/requirements.txt (line 14))

Requirement already satisfied: pyparsing>=2.0.2 in c:\python37\lib\site-packages (from packaging->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.2.0)

Requirement already satisfied: MarkupSafe>=0.23 in c:\python37\lib\site-packages (from Jinja2>=2.3->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.0)

Requirement already satisfied: pytz>=0a in c:\python37\lib\site-packages (from babel!=2.0,>=1.3->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2018.5)

Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (3.0.4)

Requirement already satisfied: urllib3<1.24,>=1.21.1 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.23)

Requirement already satisfied: idna<2.8,>=2.5 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.7)

Requirement already satisfied: certifi>=2017.4.17 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2018.8.24)

Collecting github3.py<1.0,>=0.9.0 (from git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/b9/bd/9e433bd695567ccf2bdc0f4c2cdc7da2ce2bb8467e405b2fca62631d8690/github3.py-0.9.6-py2.py3-none-any.whl

Collecting whelk>=2.6 (from git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

Collecting sortedcontainers (from intervaltree->pyocd->-r scripts/requirements.txt (line 12))

  Using cached https://files.pythonhosted.org/packages/cb/53/fe764fc8042e13245b50c4032fb2f857bc1e502aaca83063dcdf6b94d223/sortedcontainers-2.0.4-py2.py3-none-any.whl

Collecting uritemplate.py>=0.2.0 (from github3.py<1.0,>=0.9.0->git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/8b/ba/6cbb9c3bf4f53997d8d1f69414fc7962f536ba43d283f0e32de68534f6a4/uritemplate.py-3.0.2-py2.py3-none-any.whl

Collecting uritemplate>=2.0 (from uritemplate.py>=0.2.0->github3.py<1.0,>=0.9.0->git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/e5/7d/9d5a640c4f8bf2c8b1afc015e9a9d8de32e13c9016dcc4b0ec03481fb396/uritemplate-3.0.0-py2.py3-none-any.whl

Building wheels for collected packages: PyYAML

  Running setup.py bdist_wheel for PyYAML: started

  Running setup.py bdist_wheel for PyYAML: finished with status 'error'

  Complete output from command c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\alfredo\AppData\Local\Temp\pip-wheel-gbtb_d97 --python-tag cp37:

  running bdist_wheel

  running build

  running build_py

  creating build

  creating build\lib.win-amd64-3.7

  creating build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\composer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\constructor.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\cyaml.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\dumper.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\emitter.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\error.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\events.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\loader.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\nodes.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\parser.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\reader.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\representer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\resolver.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\scanner.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\serializer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\tokens.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\__init__.py -> build\lib.win-amd64-3.7\yaml

  running build_ext

  creating build\temp.win-amd64-3.7

  creating build\temp.win-amd64-3.7\Release

  checking if libyaml is compilable

  error: [WinError 3] El sistema no puede encontrar la ruta especificada: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'

 

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

  Running setup.py clean for PyYAML

Failed to build PyYAML

Installing collected packages: PyYAML, ply, docopt, uritemplate, uritemplate.py, github3.py, whelk, git-spindle, hub, Click, python-dateutil, arrow, gitlint, pyelftools, sortedcontainers, intervaltree, websocket-client, intelhex, enum34, future, pywinusb, pyocd, pyserial, pykwalify, windows-curses

  Running setup.py install for PyYAML: started

    Running setup.py install for PyYAML: finished with status 'error'

    Complete output from command c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\alfredo\AppData\Local\Temp\pip-record-9b1lbcnj\install-record.txt --single-version-externally-managed --compile:

    running install

    running build

    running build_py

    creating build

    creating build\lib.win-amd64-3.7

    creating build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\composer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\constructor.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\cyaml.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\dumper.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\emitter.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\error.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\events.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\loader.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\nodes.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\parser.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\reader.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\representer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\resolver.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\scanner.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\serializer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\tokens.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\__init__.py -> build\lib.win-amd64-3.7\yaml

    running build_ext

    creating build\temp.win-amd64-3.7

    creating build\temp.win-amd64-3.7\Release

    checking if libyaml is compilable

    error: [WinError 3] El sistema no puede encontrar la ruta especificada: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'

   

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

                  Failed building wheel for PyYAML

Command "c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\

\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f

=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f

.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\alfred

o\AppData\Local\Temp\pip-record-9b1lbcnj\install-record.txt --single-version-ext

ernally-managed --compile" failed with error code 1 in C:\Users\alfredo\AppData\

Local\Temp\pip-install-li00oeey\PyYAML\

You are using pip version 10.0.1, however version 18.0 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' comm

and.

 

Do I need install Microsoft Visual Studio 14.0?

Thanks.

 

Regards.

 

 

 

De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Enviado el: miércoles, 29 de agosto de 2018 11:46
Para: (ELT) Benjamín Alcalde; devel@...
Asunto: Re: [Zephyr-devel] Error compiling sample Hello World

 

Hey there,

 

I am about to submit an update to the chocolatey package to fix the issue you had with DTC and a 32-bit host.

 

Regarding the error you are getting now, this looks like you’re missing the Python yaml module. To install it, refer to:

http://docs.zephyrproject.org/getting_started/installation_win.html#option-1-windows-command-prompt

 

In particular:

cd %userprofile%\zephyr

pip3 install -r scripts/requirements.txt

 

Make sure you don’t have multiple Python3 versions installed on your machine, this could confuse things a bit.

 

To make sure you have the module installed, you can do:

 

pip3 list

 

Carles

 

From: (ELT) Benjamín Alcalde <balcalde@...>
Sent: 29 August 2018 11:41
To: Cufi, Carles <Carles.Cufi@...>; devel@...
Subject: RE: [Zephyr-devel] Error compiling sample Hello World

 

Hi everyone again:

I get another PC with Windows 8.1 Enterprise 64bits. I started again with the steps show in Getting Started Guide and I get another error. This what I get from the console:

 

C:\Users\alfredo\zephyr\samples\hello_world\build>cmake -GNinja -DBOARD=nrf52_pca10040 ..

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD nrf52_pca10040

Zephyr version: 1.13.0

Parsing Kconfig tree in c:/Users/alfredo/zephyr/Kconfig

Using C:/Users/alfredo/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base

Merging C:/Users/alfredo/zephyr/samples/hello_world/prj.conf

-- Generating zephyr/include/generated/generated_dts_board.h

Traceback (most recent call last):

File "c:/Users/alfredo/zephyr/scripts/dts/extract_dts_includes.py", line 15, in <module> import yaml

ModuleNotFoundError: No module named 'yaml'

CMake Error at C:/Users/alfredo/zephyr/cmake/dts.cmake:126 (message):command failed with return code: 1

Call Stack (most recent call first):

C:/Users/alfredo/zephyr/cmake/app/boilerplate.cmake:278 (include)

CMakeLists.txt:3 (include)

 

-- Configuring incomplete, errors occurred!

 

Then I tried to check de DTC version as Carles Cufi told me and this is what I get:

 

C:\Users\alfredo>dtc --version

Version: DTC 1.4.4-ga81d4ca0-dirty

 

 

Thanks in advance.

Best regards

 

 

 

 

De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Enviado el: martes, 28 de agosto de 2018 14:35
Para: IosuGorostiza; devel@...
Asunto: Re: [Zephyr-devel] Error compiling sample Hello World

 

Hi there,

 

Sounds like there’s an issue with DTC and a 32-bit host. While we do support a 32-bit version of it, I’ve never tested it myself since I don’t have access to a 32-bit Windows installation.

Did you install dtc using Chocolatey?

Could you try perhaps running dtc manually? Open a command prompt and then:

 

C:\Users\Carles>dtc --version

Version: DTC 1.4.4-ga81d4ca0-dirty

 

Thanks,

 

Carles

 

From: devel@... <devel@...> On Behalf Of IosuGorostiza
Sent: 28 August 2018 14:30
To: devel@...
Subject: [Zephyr-devel] Error compiling sample Hello World

 

Hi everybody:
I´m trying to compile the example hello_world as described in the Getting Started Guide. I follow every step of the guide but I´m not able to compile. I deleted everything and start again from the beggining several times and always get the same error. The steps I followed was for ARM.
I´m using the board nrf52_pca10040 in a PC with Windows 8.1 Enterprise 32bits.
Next, I paste what I obtained after executing the compiling instruction:

C:\Users\balcalde\zephyr\samples\hello_world\build>cmake -GNinja -DBOARD=nrf52_pca10040 ..

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD nrf52_pca10040

Zephyr version: 1.13.0

Parsing Kconfig tree in C:/Users/balcalde/zephyr//Kconfig

Using C:/Users/balcalde/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base

Merging C:/Users/balcalde/zephyr/samples/hello_world/prj.conf

-- Generating zephyr/include/generated/generated_dts_board.h

CMake Error at C:/Users/balcalde/zephyr/cmake/dts.cmake:84 (message):command failed with return code: Exit code 0xc0000135

 

Call Stack (most recent call first):

  C:/Users/balcalde/zephyr/cmake/app/boilerplate.cmake:278 (include)

  CMakeLists.txt:3 (include)

-- Configuring incomplete, errors occurred!

I spent many hours searching trough the web and reading zephyr documentation but I didn´t found anything that help me to solve that error.

I apprecite any help.
Thanks, best regards

 

 

 

 

 


Re: Error compiling sample Hello World

Carles Cufi
 

I think this is what is going on:

 

There is no PyYAML version available pre-complied on PyPi for Python 3.7, which is what you have installed from what I can see.

 

In order to get around this, there are 2 options:

 

Option 1:

Install like this:

pip install PyYAML==4.2b4

 

Option 2:

·         1) Download PyYAML‑3.13‑cp37‑cp37m‑win_amd64.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyyaml

2) pip3 install PyYAML-3.13-cp37-cp37m-win_amd64.whl

 

I would try option1 first, if there’s issues with the pyyaml version you can always switch to Option 2 after (uninstall PyYAML first)

 

Carles

 

From: (ELT) Benjamín Alcalde <balcalde@...>
Sent: 29 August 2018 12:25
To: Cufi, Carles <Carles.Cufi@...>; devel@...
Subject: RE: [Zephyr-devel] Error compiling sample Hello World

 

Hi again:

I checked the modules installed in the PC with Windows 8.1 64bits and this is what I get:

 

Package                  Version 

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

alabaster                  0.7.11  

Babel                      2.6.0   

breathe                    4.9.1   

certifi                      2018.8.24

chardet                    3.0.4   

colorama                 0.3.9   

docutils                   0.14    

idna                         2.7     

imagesize                1.0.0   

Jinja2                      2.10    

junit2html               21      

MarkupSafe           1.0     

packaging               17.1    

pip                          10.0.1  

Pygments                2.2.0   

pyparsing                2.2.0   

pytz                         2018.5  

requests                 2.19.1  

setuptools               39.0.1  

six                           1.11.0  

snowballstemmer    1.2.1   

Sphinx                   1.7.5   

sphinx-rtd-theme     0.4.1   

sphinxcontrib-websupport 1.1.0   

urllib3                                     1.23    

wheel                      0.30.0

 

As can be seen the module Yaml is not  installed that’s why we get last error.

I tried to install the module using :

 

pip3 install -r scripts/requirements.txt

 

I get three errors. I copy all the messages obtained and mark in red the errors

 

Requirement already satisfied: wheel==0.30.0 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 1)) (0.30.0)

Requirement already satisfied: breathe==4.9.1 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 2)) (4.9.1)

Requirement already satisfied: sphinx==1.7.5 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 3)) (1.7.5)

Requirement already satisfied: docutils==0.14 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 4)) (0.14)

Requirement already satisfied: sphinx_rtd_theme in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 5)) (0.4.1)

Requirement already satisfied: junit2html in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 6)) (21)

Collecting PyYAML==3.12 (from -r scripts/requirements.txt (line 7))

Using cached https://files.pythonhosted.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac635d36245a72a6a69b23b383a/PyYAML-3.12.tar.gz

Collecting ply==3.10 (from -r scripts/requirements.txt (line 8))

Collecting hub==2.0 (from -r scripts/requirements.txt (line 9))

Collecting gitlint (from -r scripts/requirements.txt (line 10))

Using cached https://files.pythonhosted.org/packages/c2/1f/e4ccfeeca84e5bb03d3d552549ba141ed6b42e3525cedb45d0f7e8164cda/gitlint-0.10.0-py2.py3-none-any.whl

Collecting pyelftools==0.24 (from -r scripts/requirements.txt (line 11))

Collecting pyocd (from -r scripts/requirements.txt (line 12))

Collecting pyserial (from -r scripts/requirements.txt (line 13))

Using cached https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl

Collecting pykwalify (from -r scripts/requirements.txt (line 14))

Using cached https://files.pythonhosted.org/packages/ce/d2/550d30b645425fd11e503d6e04fc19e91719941faf0e4e08a58d278b6345/pykwalify-1.6.1-py2.py3-none-any.whl

Collecting windows-curses (from -r scripts/requirements.txt (line 16))

Using cached https://files.pythonhosted.org/packages/bd/fe/bb10e19712b3a017b885dd91c8b0105dfc07623cee54e019053c0d4382a0/windows_curses-1.0-cp37-cp37m-win_amd64.whl

Requirement already satisfied: six>=1.4 in c:\python37\lib\site-packages (from breathe==4.9.1->-r scripts/requirements.txt (line 2)) (1.11.0)

Requirement already satisfied: imagesize in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.0.0)

Requirement already satisfied: packaging in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (17.1)

Requirement already satisfied: Pygments>=2.0 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.2.0)

Requirement already satisfied: Jinja2>=2.3 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.10)

Requirement already satisfied: sphinxcontrib-websupport in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.1.0)

Requirement already satisfied: setuptools in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (39.0.1)

Requirement already satisfied: alabaster<0.8,>=0.7 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (0.7.11)

Requirement already satisfied: babel!=2.0,>=1.3 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.6.0)

Requirement already satisfied: colorama>=0.3.5; sys_platform == "win32" in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (0.3.9)

Requirement already satisfied: snowballstemmer>=1.1 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.2.1)

Requirement already satisfied: requests>=2.0.0 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.19.1)

Collecting git-spindle (from hub==2.0->-r scripts/requirements.txt (line 9))

Collecting Click==6.6 (from gitlint->-r scripts/requirements.txt (line 10))

Using cached https://files.pythonhosted.org/packages/1c/7c/10b4132dd952b6a04e37626258825b8aa8c1eb99545f2eb26a77c21efb55/click-6.6-py2.py3-none-any.whl

Collecting arrow==0.10.0 (from gitlint->-r scripts/requirements.txt (line 10))

Collecting intervaltree (from pyocd->-r scripts/requirements.txt (line 12))

Collecting websocket-client (from pyocd->-r scripts/requirements.txt (line 12))

Using cached https://files.pythonhosted.org/packages/6a/0b/fe3a2d47066005c928056f60ed308036485a7d8bcfa6595d4f7a45f1b938/websocket_client-0.51.0-py2.py3-none-any.whl

Collecting intelhex (from pyocd->-r scripts/requirements.txt (line 12))

Using cached https://files.pythonhosted.org/packages/bf/77/bf670318b3db325c71e2ac6a90b7bcfdf9fc739b7cf6aebb31715721623e/intelhex-2.2.1-py2.py3-none-any.whl

Collecting enum34 (from pyocd->-r scripts/requirements.txt (line 12))

  Using cached https://files.pythonhosted.org/packages/af/42/cb9355df32c69b553e72a2e28daee25d1611d2c0d9c272aa1d34204205b2/enum34-1.1.6-py3-none-any.whl

Collecting future (from pyocd->-r scripts/requirements.txt (line 12))

Collecting pywinusb>=0.4.0 (from pyocd->-r scripts/requirements.txt (line 12))

Collecting python-dateutil>=2.4.2 (from pykwalify->-r scripts/requirements.txt (line 14))

  Using cached https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl

Collecting docopt>=0.6.2 (from pykwalify->-r scripts/requirements.txt (line 14))

Requirement already satisfied: pyparsing>=2.0.2 in c:\python37\lib\site-packages (from packaging->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.2.0)

Requirement already satisfied: MarkupSafe>=0.23 in c:\python37\lib\site-packages (from Jinja2>=2.3->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.0)

Requirement already satisfied: pytz>=0a in c:\python37\lib\site-packages (from babel!=2.0,>=1.3->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2018.5)

Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (3.0.4)

Requirement already satisfied: urllib3<1.24,>=1.21.1 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.23)

Requirement already satisfied: idna<2.8,>=2.5 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.7)

Requirement already satisfied: certifi>=2017.4.17 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2018.8.24)

Collecting github3.py<1.0,>=0.9.0 (from git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/b9/bd/9e433bd695567ccf2bdc0f4c2cdc7da2ce2bb8467e405b2fca62631d8690/github3.py-0.9.6-py2.py3-none-any.whl

Collecting whelk>=2.6 (from git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

Collecting sortedcontainers (from intervaltree->pyocd->-r scripts/requirements.txt (line 12))

  Using cached https://files.pythonhosted.org/packages/cb/53/fe764fc8042e13245b50c4032fb2f857bc1e502aaca83063dcdf6b94d223/sortedcontainers-2.0.4-py2.py3-none-any.whl

Collecting uritemplate.py>=0.2.0 (from github3.py<1.0,>=0.9.0->git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/8b/ba/6cbb9c3bf4f53997d8d1f69414fc7962f536ba43d283f0e32de68534f6a4/uritemplate.py-3.0.2-py2.py3-none-any.whl

Collecting uritemplate>=2.0 (from uritemplate.py>=0.2.0->github3.py<1.0,>=0.9.0->git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/e5/7d/9d5a640c4f8bf2c8b1afc015e9a9d8de32e13c9016dcc4b0ec03481fb396/uritemplate-3.0.0-py2.py3-none-any.whl

Building wheels for collected packages: PyYAML

  Running setup.py bdist_wheel for PyYAML: started

  Running setup.py bdist_wheel for PyYAML: finished with status 'error'

  Complete output from command c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\alfredo\AppData\Local\Temp\pip-wheel-gbtb_d97 --python-tag cp37:

  running bdist_wheel

  running build

  running build_py

  creating build

  creating build\lib.win-amd64-3.7

  creating build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\composer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\constructor.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\cyaml.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\dumper.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\emitter.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\error.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\events.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\loader.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\nodes.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\parser.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\reader.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\representer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\resolver.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\scanner.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\serializer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\tokens.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\__init__.py -> build\lib.win-amd64-3.7\yaml

  running build_ext

  creating build\temp.win-amd64-3.7

  creating build\temp.win-amd64-3.7\Release

  checking if libyaml is compilable

  error: [WinError 3] El sistema no puede encontrar la ruta especificada: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'

 

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

  Running setup.py clean for PyYAML

Failed to build PyYAML

Installing collected packages: PyYAML, ply, docopt, uritemplate, uritemplate.py, github3.py, whelk, git-spindle, hub, Click, python-dateutil, arrow, gitlint, pyelftools, sortedcontainers, intervaltree, websocket-client, intelhex, enum34, future, pywinusb, pyocd, pyserial, pykwalify, windows-curses

  Running setup.py install for PyYAML: started

    Running setup.py install for PyYAML: finished with status 'error'

    Complete output from command c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\alfredo\AppData\Local\Temp\pip-record-9b1lbcnj\install-record.txt --single-version-externally-managed --compile:

    running install

    running build

    running build_py

    creating build

    creating build\lib.win-amd64-3.7

    creating build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\composer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\constructor.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\cyaml.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\dumper.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\emitter.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\error.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\events.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\loader.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\nodes.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\parser.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\reader.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\representer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\resolver.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\scanner.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\serializer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\tokens.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\__init__.py -> build\lib.win-amd64-3.7\yaml

    running build_ext

    creating build\temp.win-amd64-3.7

    creating build\temp.win-amd64-3.7\Release

    checking if libyaml is compilable

    error: [WinError 3] El sistema no puede encontrar la ruta especificada: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'

   

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

                  Failed building wheel for PyYAML

Command "c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\

\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f

=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f

.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\alfred

o\AppData\Local\Temp\pip-record-9b1lbcnj\install-record.txt --single-version-ext

ernally-managed --compile" failed with error code 1 in C:\Users\alfredo\AppData\

Local\Temp\pip-install-li00oeey\PyYAML\

You are using pip version 10.0.1, however version 18.0 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' comm

and.

 

Do I need install Microsoft Visual Studio 14.0?

Thanks.

 

Regards.

 

 

 

De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Enviado el: miércoles, 29 de agosto de 2018 11:46
Para: (ELT) Benjamín Alcalde; devel@...
Asunto: Re: [Zephyr-devel] Error compiling sample Hello World

 

Hey there,

 

I am about to submit an update to the chocolatey package to fix the issue you had with DTC and a 32-bit host.

 

Regarding the error you are getting now, this looks like you’re missing the Python yaml module. To install it, refer to:

http://docs.zephyrproject.org/getting_started/installation_win.html#option-1-windows-command-prompt

 

In particular:

cd %userprofile%\zephyr

pip3 install -r scripts/requirements.txt

 

Make sure you don’t have multiple Python3 versions installed on your machine, this could confuse things a bit.

 

To make sure you have the module installed, you can do:

 

pip3 list

 

Carles

 

From: (ELT) Benjamín Alcalde <balcalde@...>
Sent: 29 August 2018 11:41
To: Cufi, Carles <Carles.Cufi@...>; devel@...
Subject: RE: [Zephyr-devel] Error compiling sample Hello World

 

Hi everyone again:

I get another PC with Windows 8.1 Enterprise 64bits. I started again with the steps show in Getting Started Guide and I get another error. This what I get from the console:

 

C:\Users\alfredo\zephyr\samples\hello_world\build>cmake -GNinja -DBOARD=nrf52_pca10040 ..

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD nrf52_pca10040

Zephyr version: 1.13.0

Parsing Kconfig tree in c:/Users/alfredo/zephyr/Kconfig

Using C:/Users/alfredo/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base

Merging C:/Users/alfredo/zephyr/samples/hello_world/prj.conf

-- Generating zephyr/include/generated/generated_dts_board.h

Traceback (most recent call last):

File "c:/Users/alfredo/zephyr/scripts/dts/extract_dts_includes.py", line 15, in <module> import yaml

ModuleNotFoundError: No module named 'yaml'

CMake Error at C:/Users/alfredo/zephyr/cmake/dts.cmake:126 (message):command failed with return code: 1

Call Stack (most recent call first):

C:/Users/alfredo/zephyr/cmake/app/boilerplate.cmake:278 (include)

CMakeLists.txt:3 (include)

 

-- Configuring incomplete, errors occurred!

 

Then I tried to check de DTC version as Carles Cufi told me and this is what I get:

 

C:\Users\alfredo>dtc --version

Version: DTC 1.4.4-ga81d4ca0-dirty

 

 

Thanks in advance.

Best regards

 

 

 

 

De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Enviado el: martes, 28 de agosto de 2018 14:35
Para: IosuGorostiza; devel@...
Asunto: Re: [Zephyr-devel] Error compiling sample Hello World

 

Hi there,

 

Sounds like there’s an issue with DTC and a 32-bit host. While we do support a 32-bit version of it, I’ve never tested it myself since I don’t have access to a 32-bit Windows installation.

Did you install dtc using Chocolatey?

Could you try perhaps running dtc manually? Open a command prompt and then:

 

C:\Users\Carles>dtc --version

Version: DTC 1.4.4-ga81d4ca0-dirty

 

Thanks,

 

Carles

 

From: devel@... <devel@...> On Behalf Of IosuGorostiza
Sent: 28 August 2018 14:30
To: devel@...
Subject: [Zephyr-devel] Error compiling sample Hello World

 

Hi everybody:
I´m trying to compile the example hello_world as described in the Getting Started Guide. I follow every step of the guide but I´m not able to compile. I deleted everything and start again from the beggining several times and always get the same error. The steps I followed was for ARM.
I´m using the board nrf52_pca10040 in a PC with Windows 8.1 Enterprise 32bits.
Next, I paste what I obtained after executing the compiling instruction:

C:\Users\balcalde\zephyr\samples\hello_world\build>cmake -GNinja -DBOARD=nrf52_pca10040 ..

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD nrf52_pca10040

Zephyr version: 1.13.0

Parsing Kconfig tree in C:/Users/balcalde/zephyr//Kconfig

Using C:/Users/balcalde/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base

Merging C:/Users/balcalde/zephyr/samples/hello_world/prj.conf

-- Generating zephyr/include/generated/generated_dts_board.h

CMake Error at C:/Users/balcalde/zephyr/cmake/dts.cmake:84 (message):command failed with return code: Exit code 0xc0000135

 

Call Stack (most recent call first):

  C:/Users/balcalde/zephyr/cmake/app/boilerplate.cmake:278 (include)

  CMakeLists.txt:3 (include)

-- Configuring incomplete, errors occurred!

I spent many hours searching trough the web and reading zephyr documentation but I didn´t found anything that help me to solve that error.

I apprecite any help.
Thanks, best regards

 

 

 

 

 


Re: Error compiling sample Hello World

IosuGorostiza <balcalde@...>
 

Hi again:

I checked the modules installed in the PC with Windows 8.1 64bits and this is what I get:

 

Package                  Version 

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

alabaster                  0.7.11  

Babel                      2.6.0   

breathe                    4.9.1   

certifi                      2018.8.24

chardet                    3.0.4   

colorama                 0.3.9   

docutils                   0.14    

idna                         2.7     

imagesize                1.0.0   

Jinja2                      2.10    

junit2html               21      

MarkupSafe           1.0     

packaging               17.1    

pip                          10.0.1  

Pygments                2.2.0   

pyparsing                2.2.0   

pytz                         2018.5  

requests                 2.19.1  

setuptools               39.0.1  

six                           1.11.0  

snowballstemmer    1.2.1   

Sphinx                   1.7.5   

sphinx-rtd-theme     0.4.1   

sphinxcontrib-websupport 1.1.0   

urllib3                                     1.23    

wheel                      0.30.0

 

As can be seen the module Yaml is not  installed that’s why we get last error.

I tried to install the module using :

 

pip3 install -r scripts/requirements.txt

 

I get three errors. I copy all the messages obtained and mark in red the errors

 

Requirement already satisfied: wheel==0.30.0 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 1)) (0.30.0)

Requirement already satisfied: breathe==4.9.1 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 2)) (4.9.1)

Requirement already satisfied: sphinx==1.7.5 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 3)) (1.7.5)

Requirement already satisfied: docutils==0.14 in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 4)) (0.14)

Requirement already satisfied: sphinx_rtd_theme in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 5)) (0.4.1)

Requirement already satisfied: junit2html in c:\python37\lib\site-packages (from -r scripts/requirements.txt (line 6)) (21)

Collecting PyYAML==3.12 (from -r scripts/requirements.txt (line 7))

Using cached https://files.pythonhosted.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac635d36245a72a6a69b23b383a/PyYAML-3.12.tar.gz

Collecting ply==3.10 (from -r scripts/requirements.txt (line 8))

Collecting hub==2.0 (from -r scripts/requirements.txt (line 9))

Collecting gitlint (from -r scripts/requirements.txt (line 10))

Using cached https://files.pythonhosted.org/packages/c2/1f/e4ccfeeca84e5bb03d3d552549ba141ed6b42e3525cedb45d0f7e8164cda/gitlint-0.10.0-py2.py3-none-any.whl

Collecting pyelftools==0.24 (from -r scripts/requirements.txt (line 11))

Collecting pyocd (from -r scripts/requirements.txt (line 12))

Collecting pyserial (from -r scripts/requirements.txt (line 13))

Using cached https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl

Collecting pykwalify (from -r scripts/requirements.txt (line 14))

Using cached https://files.pythonhosted.org/packages/ce/d2/550d30b645425fd11e503d6e04fc19e91719941faf0e4e08a58d278b6345/pykwalify-1.6.1-py2.py3-none-any.whl

Collecting windows-curses (from -r scripts/requirements.txt (line 16))

Using cached https://files.pythonhosted.org/packages/bd/fe/bb10e19712b3a017b885dd91c8b0105dfc07623cee54e019053c0d4382a0/windows_curses-1.0-cp37-cp37m-win_amd64.whl

Requirement already satisfied: six>=1.4 in c:\python37\lib\site-packages (from breathe==4.9.1->-r scripts/requirements.txt (line 2)) (1.11.0)

Requirement already satisfied: imagesize in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.0.0)

Requirement already satisfied: packaging in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (17.1)

Requirement already satisfied: Pygments>=2.0 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.2.0)

Requirement already satisfied: Jinja2>=2.3 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.10)

Requirement already satisfied: sphinxcontrib-websupport in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.1.0)

Requirement already satisfied: setuptools in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (39.0.1)

Requirement already satisfied: alabaster<0.8,>=0.7 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (0.7.11)

Requirement already satisfied: babel!=2.0,>=1.3 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.6.0)

Requirement already satisfied: colorama>=0.3.5; sys_platform == "win32" in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (0.3.9)

Requirement already satisfied: snowballstemmer>=1.1 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.2.1)

Requirement already satisfied: requests>=2.0.0 in c:\python37\lib\site-packages (from sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.19.1)

Collecting git-spindle (from hub==2.0->-r scripts/requirements.txt (line 9))

Collecting Click==6.6 (from gitlint->-r scripts/requirements.txt (line 10))

Using cached https://files.pythonhosted.org/packages/1c/7c/10b4132dd952b6a04e37626258825b8aa8c1eb99545f2eb26a77c21efb55/click-6.6-py2.py3-none-any.whl

Collecting arrow==0.10.0 (from gitlint->-r scripts/requirements.txt (line 10))

Collecting intervaltree (from pyocd->-r scripts/requirements.txt (line 12))

Collecting websocket-client (from pyocd->-r scripts/requirements.txt (line 12))

Using cached https://files.pythonhosted.org/packages/6a/0b/fe3a2d47066005c928056f60ed308036485a7d8bcfa6595d4f7a45f1b938/websocket_client-0.51.0-py2.py3-none-any.whl

Collecting intelhex (from pyocd->-r scripts/requirements.txt (line 12))

Using cached https://files.pythonhosted.org/packages/bf/77/bf670318b3db325c71e2ac6a90b7bcfdf9fc739b7cf6aebb31715721623e/intelhex-2.2.1-py2.py3-none-any.whl

Collecting enum34 (from pyocd->-r scripts/requirements.txt (line 12))

  Using cached https://files.pythonhosted.org/packages/af/42/cb9355df32c69b553e72a2e28daee25d1611d2c0d9c272aa1d34204205b2/enum34-1.1.6-py3-none-any.whl

Collecting future (from pyocd->-r scripts/requirements.txt (line 12))

Collecting pywinusb>=0.4.0 (from pyocd->-r scripts/requirements.txt (line 12))

Collecting python-dateutil>=2.4.2 (from pykwalify->-r scripts/requirements.txt (line 14))

  Using cached https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl

Collecting docopt>=0.6.2 (from pykwalify->-r scripts/requirements.txt (line 14))

Requirement already satisfied: pyparsing>=2.0.2 in c:\python37\lib\site-packages (from packaging->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.2.0)

Requirement already satisfied: MarkupSafe>=0.23 in c:\python37\lib\site-packages (from Jinja2>=2.3->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.0)

Requirement already satisfied: pytz>=0a in c:\python37\lib\site-packages (from babel!=2.0,>=1.3->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2018.5)

Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (3.0.4)

Requirement already satisfied: urllib3<1.24,>=1.21.1 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (1.23)

Requirement already satisfied: idna<2.8,>=2.5 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2.7)

Requirement already satisfied: certifi>=2017.4.17 in c:\python37\lib\site-packages (from requests>=2.0.0->sphinx==1.7.5->-r scripts/requirements.txt (line 3)) (2018.8.24)

Collecting github3.py<1.0,>=0.9.0 (from git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/b9/bd/9e433bd695567ccf2bdc0f4c2cdc7da2ce2bb8467e405b2fca62631d8690/github3.py-0.9.6-py2.py3-none-any.whl

Collecting whelk>=2.6 (from git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

Collecting sortedcontainers (from intervaltree->pyocd->-r scripts/requirements.txt (line 12))

  Using cached https://files.pythonhosted.org/packages/cb/53/fe764fc8042e13245b50c4032fb2f857bc1e502aaca83063dcdf6b94d223/sortedcontainers-2.0.4-py2.py3-none-any.whl

Collecting uritemplate.py>=0.2.0 (from github3.py<1.0,>=0.9.0->git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/8b/ba/6cbb9c3bf4f53997d8d1f69414fc7962f536ba43d283f0e32de68534f6a4/uritemplate.py-3.0.2-py2.py3-none-any.whl

Collecting uritemplate>=2.0 (from uritemplate.py>=0.2.0->github3.py<1.0,>=0.9.0->git-spindle->hub==2.0->-r scripts/requirements.txt (line 9))

  Using cached https://files.pythonhosted.org/packages/e5/7d/9d5a640c4f8bf2c8b1afc015e9a9d8de32e13c9016dcc4b0ec03481fb396/uritemplate-3.0.0-py2.py3-none-any.whl

Building wheels for collected packages: PyYAML

  Running setup.py bdist_wheel for PyYAML: started

  Running setup.py bdist_wheel for PyYAML: finished with status 'error'

  Complete output from command c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\alfredo\AppData\Local\Temp\pip-wheel-gbtb_d97 --python-tag cp37:

  running bdist_wheel

  running build

  running build_py

  creating build

  creating build\lib.win-amd64-3.7

  creating build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\composer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\constructor.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\cyaml.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\dumper.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\emitter.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\error.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\events.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\loader.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\nodes.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\parser.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\reader.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\representer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\resolver.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\scanner.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\serializer.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\tokens.py -> build\lib.win-amd64-3.7\yaml

  copying lib3\yaml\__init__.py -> build\lib.win-amd64-3.7\yaml

  running build_ext

  creating build\temp.win-amd64-3.7

  creating build\temp.win-amd64-3.7\Release

  checking if libyaml is compilable

  error: [WinError 3] El sistema no puede encontrar la ruta especificada: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'

 

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

  Running setup.py clean for PyYAML

Failed to build PyYAML

Installing collected packages: PyYAML, ply, docopt, uritemplate, uritemplate.py, github3.py, whelk, git-spindle, hub, Click, python-dateutil, arrow, gitlint, pyelftools, sortedcontainers, intervaltree, websocket-client, intelhex, enum34, future, pywinusb, pyocd, pyserial, pykwalify, windows-curses

  Running setup.py install for PyYAML: started

    Running setup.py install for PyYAML: finished with status 'error'

    Complete output from command c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\alfredo\AppData\Local\Temp\pip-record-9b1lbcnj\install-record.txt --single-version-externally-managed --compile:

    running install

    running build

    running build_py

    creating build

    creating build\lib.win-amd64-3.7

    creating build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\composer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\constructor.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\cyaml.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\dumper.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\emitter.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\error.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\events.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\loader.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\nodes.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\parser.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\reader.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\representer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\resolver.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\scanner.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\serializer.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\tokens.py -> build\lib.win-amd64-3.7\yaml

    copying lib3\yaml\__init__.py -> build\lib.win-amd64-3.7\yaml

    running build_ext

    creating build\temp.win-amd64-3.7

    creating build\temp.win-amd64-3.7\Release

    checking if libyaml is compilable

    error: [WinError 3] El sistema no puede encontrar la ruta especificada: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'

   

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

                  Failed building wheel for PyYAML

Command "c:\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\

\Users\\alfredo\\AppData\\Local\\Temp\\pip-install-li00oeey\\PyYAML\\setup.py';f

=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f

.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\alfred

o\AppData\Local\Temp\pip-record-9b1lbcnj\install-record.txt --single-version-ext

ernally-managed --compile" failed with error code 1 in C:\Users\alfredo\AppData\

Local\Temp\pip-install-li00oeey\PyYAML\

You are using pip version 10.0.1, however version 18.0 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' comm

and.

 

Do I need install Microsoft Visual Studio 14.0?

Thanks.

 

Regards.

 

 

 

De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Enviado el: miércoles, 29 de agosto de 2018 11:46
Para: (ELT) Benjamín Alcalde; devel@...
Asunto: Re: [Zephyr-devel] Error compiling sample Hello World

 

Hey there,

 

I am about to submit an update to the chocolatey package to fix the issue you had with DTC and a 32-bit host.

 

Regarding the error you are getting now, this looks like you’re missing the Python yaml module. To install it, refer to:

http://docs.zephyrproject.org/getting_started/installation_win.html#option-1-windows-command-prompt

 

In particular:

cd %userprofile%\zephyr

pip3 install -r scripts/requirements.txt

 

Make sure you don’t have multiple Python3 versions installed on your machine, this could confuse things a bit.

 

To make sure you have the module installed, you can do:

 

pip3 list

 

Carles

 

From: (ELT) Benjamín Alcalde <balcalde@...>
Sent: 29 August 2018 11:41
To: Cufi, Carles <Carles.Cufi@...>; devel@...
Subject: RE: [Zephyr-devel] Error compiling sample Hello World

 

Hi everyone again:

I get another PC with Windows 8.1 Enterprise 64bits. I started again with the steps show in Getting Started Guide and I get another error. This what I get from the console:

 

C:\Users\alfredo\zephyr\samples\hello_world\build>cmake -GNinja -DBOARD=nrf52_pca10040 ..

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD nrf52_pca10040

Zephyr version: 1.13.0

Parsing Kconfig tree in c:/Users/alfredo/zephyr/Kconfig

Using C:/Users/alfredo/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base

Merging C:/Users/alfredo/zephyr/samples/hello_world/prj.conf

-- Generating zephyr/include/generated/generated_dts_board.h

Traceback (most recent call last):

File "c:/Users/alfredo/zephyr/scripts/dts/extract_dts_includes.py", line 15, in <module> import yaml

ModuleNotFoundError: No module named 'yaml'

CMake Error at C:/Users/alfredo/zephyr/cmake/dts.cmake:126 (message):command failed with return code: 1

Call Stack (most recent call first):

C:/Users/alfredo/zephyr/cmake/app/boilerplate.cmake:278 (include)

CMakeLists.txt:3 (include)

 

-- Configuring incomplete, errors occurred!

 

Then I tried to check de DTC version as Carles Cufi told me and this is what I get:

 

C:\Users\alfredo>dtc --version

Version: DTC 1.4.4-ga81d4ca0-dirty

 

 

Thanks in advance.

Best regards

 

 

 

 

De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Enviado el: martes, 28 de agosto de 2018 14:35
Para: IosuGorostiza; devel@...
Asunto: Re: [Zephyr-devel] Error compiling sample Hello World

 

Hi there,

 

Sounds like there’s an issue with DTC and a 32-bit host. While we do support a 32-bit version of it, I’ve never tested it myself since I don’t have access to a 32-bit Windows installation.

Did you install dtc using Chocolatey?

Could you try perhaps running dtc manually? Open a command prompt and then:

 

C:\Users\Carles>dtc --version

Version: DTC 1.4.4-ga81d4ca0-dirty

 

Thanks,

 

Carles

 

From: devel@... <devel@...> On Behalf Of IosuGorostiza
Sent: 28 August 2018 14:30
To: devel@...
Subject: [Zephyr-devel] Error compiling sample Hello World

 

Hi everybody:
I´m trying to compile the example hello_world as described in the Getting Started Guide. I follow every step of the guide but I´m not able to compile. I deleted everything and start again from the beggining several times and always get the same error. The steps I followed was for ARM.
I´m using the board nrf52_pca10040 in a PC with Windows 8.1 Enterprise 32bits.
Next, I paste what I obtained after executing the compiling instruction:

C:\Users\balcalde\zephyr\samples\hello_world\build>cmake -GNinja -DBOARD=nrf52_pca10040 ..

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD nrf52_pca10040

Zephyr version: 1.13.0

Parsing Kconfig tree in C:/Users/balcalde/zephyr//Kconfig

Using C:/Users/balcalde/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base

Merging C:/Users/balcalde/zephyr/samples/hello_world/prj.conf

-- Generating zephyr/include/generated/generated_dts_board.h

CMake Error at C:/Users/balcalde/zephyr/cmake/dts.cmake:84 (message):command failed with return code: Exit code 0xc0000135

 

Call Stack (most recent call first):

  C:/Users/balcalde/zephyr/cmake/app/boilerplate.cmake:278 (include)

  CMakeLists.txt:3 (include)

-- Configuring incomplete, errors occurred!

I spent many hours searching trough the web and reading zephyr documentation but I didn´t found anything that help me to solve that error.

I apprecite any help.
Thanks, best regards

 

 

 

 

 


Re: Error compiling sample Hello World

Carles Cufi
 

Hey there,

 

I am about to submit an update to the chocolatey package to fix the issue you had with DTC and a 32-bit host.

 

Regarding the error you are getting now, this looks like you’re missing the Python yaml module. To install it, refer to:

http://docs.zephyrproject.org/getting_started/installation_win.html#option-1-windows-command-prompt

 

In particular:

cd %userprofile%\zephyr

pip3 install -r scripts/requirements.txt

 

Make sure you don’t have multiple Python3 versions installed on your machine, this could confuse things a bit.

 

To make sure you have the module installed, you can do:

 

pip3 list

 

Carles

 

From: (ELT) Benjamín Alcalde <balcalde@...>
Sent: 29 August 2018 11:41
To: Cufi, Carles <Carles.Cufi@...>; devel@...
Subject: RE: [Zephyr-devel] Error compiling sample Hello World

 

Hi everyone again:

I get another PC with Windows 8.1 Enterprise 64bits. I started again with the steps show in Getting Started Guide and I get another error. This what I get from the console:

 

C:\Users\alfredo\zephyr\samples\hello_world\build>cmake -GNinja -DBOARD=nrf52_pca10040 ..

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD nrf52_pca10040

Zephyr version: 1.13.0

Parsing Kconfig tree in c:/Users/alfredo/zephyr/Kconfig

Using C:/Users/alfredo/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base

Merging C:/Users/alfredo/zephyr/samples/hello_world/prj.conf

-- Generating zephyr/include/generated/generated_dts_board.h

Traceback (most recent call last):

File "c:/Users/alfredo/zephyr/scripts/dts/extract_dts_includes.py", line 15, in <module> import yaml

ModuleNotFoundError: No module named 'yaml'

CMake Error at C:/Users/alfredo/zephyr/cmake/dts.cmake:126 (message):command failed with return code: 1

Call Stack (most recent call first):

C:/Users/alfredo/zephyr/cmake/app/boilerplate.cmake:278 (include)

CMakeLists.txt:3 (include)

 

-- Configuring incomplete, errors occurred!

 

Then I tried to check de DTC version as Carles Cufi told me and this is what I get:

 

C:\Users\alfredo>dtc --version

Version: DTC 1.4.4-ga81d4ca0-dirty

 

 

Thanks in advance.

Best regards

 

 

 

 

De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Enviado el: martes, 28 de agosto de 2018 14:35
Para: IosuGorostiza; devel@...
Asunto: Re: [Zephyr-devel] Error compiling sample Hello World

 

Hi there,

 

Sounds like there’s an issue with DTC and a 32-bit host. While we do support a 32-bit version of it, I’ve never tested it myself since I don’t have access to a 32-bit Windows installation.

Did you install dtc using Chocolatey?

Could you try perhaps running dtc manually? Open a command prompt and then:

 

C:\Users\Carles>dtc --version

Version: DTC 1.4.4-ga81d4ca0-dirty

 

Thanks,

 

Carles

 

From: devel@... <devel@...> On Behalf Of IosuGorostiza
Sent: 28 August 2018 14:30
To: devel@...
Subject: [Zephyr-devel] Error compiling sample Hello World

 

Hi everybody:
I´m trying to compile the example hello_world as described in the Getting Started Guide. I follow every step of the guide but I´m not able to compile. I deleted everything and start again from the beggining several times and always get the same error. The steps I followed was for ARM.
I´m using the board nrf52_pca10040 in a PC with Windows 8.1 Enterprise 32bits.
Next, I paste what I obtained after executing the compiling instruction:

C:\Users\balcalde\zephyr\samples\hello_world\build>cmake -GNinja -DBOARD=nrf52_pca10040 ..

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD nrf52_pca10040

Zephyr version: 1.13.0

Parsing Kconfig tree in C:/Users/balcalde/zephyr//Kconfig

Using C:/Users/balcalde/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base

Merging C:/Users/balcalde/zephyr/samples/hello_world/prj.conf

-- Generating zephyr/include/generated/generated_dts_board.h

CMake Error at C:/Users/balcalde/zephyr/cmake/dts.cmake:84 (message):command failed with return code: Exit code 0xc0000135

 

Call Stack (most recent call first):

  C:/Users/balcalde/zephyr/cmake/app/boilerplate.cmake:278 (include)

  CMakeLists.txt:3 (include)

-- Configuring incomplete, errors occurred!

I spent many hours searching trough the web and reading zephyr documentation but I didn´t found anything that help me to solve that error.

I apprecite any help.
Thanks, best regards

 

 

 

 

 


Re: Error compiling sample Hello World

IosuGorostiza <balcalde@...>
 

Hi everyone again:

I get another PC with Windows 8.1 Enterprise 64bits. I started again with the steps show in Getting Started Guide and I get another error. This what I get from the console:

 

C:\Users\alfredo\zephyr\samples\hello_world\build>cmake -GNinja -DBOARD=nrf52_pca10040 ..

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD nrf52_pca10040

Zephyr version: 1.13.0

Parsing Kconfig tree in c:/Users/alfredo/zephyr/Kconfig

Using C:/Users/alfredo/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base

Merging C:/Users/alfredo/zephyr/samples/hello_world/prj.conf

-- Generating zephyr/include/generated/generated_dts_board.h

Traceback (most recent call last):

File "c:/Users/alfredo/zephyr/scripts/dts/extract_dts_includes.py", line 15, in <module> import yaml

ModuleNotFoundError: No module named 'yaml'

CMake Error at C:/Users/alfredo/zephyr/cmake/dts.cmake:126 (message):command failed with return code: 1

Call Stack (most recent call first):

C:/Users/alfredo/zephyr/cmake/app/boilerplate.cmake:278 (include)

CMakeLists.txt:3 (include)

 

-- Configuring incomplete, errors occurred!

 

Then I tried to check de DTC version as Carles Cufi told me and this is what I get:

 

C:\Users\alfredo>dtc --version

Version: DTC 1.4.4-ga81d4ca0-dirty

 

 

Thanks in advance.

Best regards

 

 

 

 

De: devel@... [mailto:devel@...] En nombre de Cufi, Carles
Enviado el: martes, 28 de agosto de 2018 14:35
Para: IosuGorostiza; devel@...
Asunto: Re: [Zephyr-devel] Error compiling sample Hello World

 

Hi there,

 

Sounds like there’s an issue with DTC and a 32-bit host. While we do support a 32-bit version of it, I’ve never tested it myself since I don’t have access to a 32-bit Windows installation.

Did you install dtc using Chocolatey?

Could you try perhaps running dtc manually? Open a command prompt and then:

 

C:\Users\Carles>dtc --version

Version: DTC 1.4.4-ga81d4ca0-dirty

 

Thanks,

 

Carles

 

From: devel@... <devel@...> On Behalf Of IosuGorostiza
Sent: 28 August 2018 14:30
To: devel@...
Subject: [Zephyr-devel] Error compiling sample Hello World

 

Hi everybody:
I´m trying to compile the example hello_world as described in the Getting Started Guide. I follow every step of the guide but I´m not able to compile. I deleted everything and start again from the beggining several times and always get the same error. The steps I followed was for ARM.
I´m using the board nrf52_pca10040 in a PC with Windows 8.1 Enterprise 32bits.
Next, I paste what I obtained after executing the compiling instruction:

C:\Users\balcalde\zephyr\samples\hello_world\build>cmake -GNinja -DBOARD=nrf52_pca10040 ..

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD nrf52_pca10040

Zephyr version: 1.13.0

Parsing Kconfig tree in C:/Users/balcalde/zephyr//Kconfig

Using C:/Users/balcalde/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040_defconfig as base

Merging C:/Users/balcalde/zephyr/samples/hello_world/prj.conf

-- Generating zephyr/include/generated/generated_dts_board.h

CMake Error at C:/Users/balcalde/zephyr/cmake/dts.cmake:84 (message):command failed with return code: Exit code 0xc0000135

 

Call Stack (most recent call first):

  C:/Users/balcalde/zephyr/cmake/app/boilerplate.cmake:278 (include)

  CMakeLists.txt:3 (include)

-- Configuring incomplete, errors occurred!

I spent many hours searching trough the web and reading zephyr documentation but I didn´t found anything that help me to solve that error.

I apprecite any help.
Thanks, best regards

 

 

 

 

 


BLE start scan callback

robert.konc@...
 

I would like to know when BLE device is scaned.
How to implement callback function that signalize when peripherial device is scaned.

Thanks in advance!

Robert Konc


Re: nrf52840_pca10059 startup

Chettimada, Vinayak Kariappa
 

This all sounds very close to what is described in :
http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52840.ps%2Fpower.html&cp=2_0_0_4_2_1&anchor=power_usb_supply

"both VBUS and either VDDH or VDD supplies are required"


and "External supply from VDD is only available when power is supplied to VDDH."  Mentioned here: http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52840.ps/ref_circuitry.html#concept_aqp_fd1_fq


You may check if solder bridge SB2 is intact, and VDDH is connected to VBUS_nRF.

- Vinayak



From: Henrik Brix Andersen <henrik@...>
Sent: Tuesday, August 28, 2018 10:57 PM
To: Chettimada, Vinayak Kariappa
Cc: Cufi, Carles; Zephyr Devel List; Di Santo, Emanuele
Subject: Re: [Zephyr-devel] nrf52840_pca10059 startup
 
Hi,

Neither. I am applying the 3V briefly to the SWDCLK input to generate a low-to-high transition on that pin.
I have just retested. Applying 3V briefly to VDD_nRF has the same effect; the board starts up and the application springs to life.

VBUS_nRF is 5.19V when plugged into USB and VDD_nRF is 0.47V (when the application isn’t running for whatever reason).
After applying ~3V briefly to SWDCLK or VDD_nRF, the application springs to life. VBUS_nRF is the same as before (5.19V) but VDD_nRF is now ~3V (as expected from the initialisation code in boards/arm/nrf52840_pca10059/board.c).

After this, the board continues to function as expected (even after resets, reflashing, etc.) until the next cold-boot (removing VBUS and restoring it).

All help is much appreciated.

Regards,
Brix
-- 
Henrik Brix Andersen

On 28 Aug 2018, at 22.02, Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...> wrote:

Where are you applying the 3V? to VDD_nRF  or VBUS_nRF? VBUS_nRF has a min, typ. and max of 4.35, 5, and 5.5 Volts. Can you measure the VDD_nRF, when you have the dongle plugged to USB port?

I dont have a dongle presently, reviewing the schematics, I see no reason why the chip should not be running the code in it.


From: Henrik Brix Andersen <henrik@...>
Sent: Tuesday, August 28, 2018 9:08 PM
To: Chettimada, Vinayak Kariappa
Cc: Cufi, Carles; Zephyr Devel List; Di Santo, Emanuele
Subject: Re: [Zephyr-devel] nrf52840_pca10059 startup
 
Hi all,

I have found that a single low-to-high transition on the SWDCLK pin of the PCA10059 makes the application spring to life.
No debugger attached, no external circuitry at all. Just an external power source of 3V and a switch for applying a low-to-high transition of the SWDCLK line.

Could this have something to do with the internal DC-DC converter of the NRF52840?

Regards,
Brix
-- 
Henrik Brix Andersen

On 27 Aug 2018, at 22.20, Henrik Brix Andersen <henrik@...> wrote:

Hi,

I am not using the NRF52832 configuration on the NRF52840 SoC; I merely noted that I have successfully used the same programmer (Atmel-ICE) for interacting with NRF52832 SoCs.

Yes, my application is samples/basic/blinky (and all other samples). I have tried the samples/bluetooth/peripheral sample; same issue.
When I initially flash the sample it starts up and everything works as intended. If I then disconnect USB power and reconnect it, nothing starts up (BLE scanner does not show the peripheral anymore).
A simple no-op SWD connection then does the trick; the application springs to life (without flashing a new binary).

I have tried a few of the USB samples as well; none of them shows up as a device on the USB bus.

Do you know if the original firmware binary (the one present on the device when shipping) for the PCA10059 is available anywhere? It could be interesting to see if that behaves correctly.
Are you able to share your locally built zephyr.bin file for the blinky sample with me?

Best regards,
Brix
--
Henrik Brix Andersen

On 27 Aug 2018, at 22.06, Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...> wrote:

Something you mention about using NRF52832 configuration, why would you want to use that on nRF52840 SoC?

You mention blinky as the example, is that the application you have trouble with? We tried that on our dongle, and see no issues.

I have tried BLE peripheral sample and hci_usb sample on nRF52840 merely powered from nRF USB interface, and see no issues.

Please confirm, that your application is samples/basic/blinky… also please try the samples/bluetooth/peripheral and let me know if you don’t see BLE advertising.

Regards,
Vinayak

On 27 Aug 2018, at 18:42, Henrik Brix Andersen <henrik@...> wrote:

Hi Vinayak,

Thank you for getting back to me. I just tried reverting commit 26d22b0075cf5a71f13958ec1f2727ac7167eca4, but it does not fix the application behaviour.

Any other ideas are most welcome.

Best regards,
Brix

--
Henrik Brix Andersen

On 27 Aug 2018, at 12.52, Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...> wrote:

Hi,

I may have introduced a regression (bisected to) in 26d22b0075cf5a71f13958ec1f2727ac7167eca4

I notice that hci_usb sample fails to enumerate the bluetooth class device.

Will get back when I have something. Meanwhile, revert the above mentioned commit and do let me know if your application functions as expected.

Regards,
Vinayak


On 26 Aug 2018, at 19:18, Henrik Brix Andersen <henrik@...> wrote:

Hi,

I am flashing the board using an Atmel-ICE debugger (using pyOCD 0.11.2) connected to a 10-pin debug connector soldered to the P1 footprint on the bottom of the board.

I am using the same configuration for several NRF52832 boards without issues.

Best regards,
Brix

--
Henrik Brix Andersen

On 26 Aug 2018, at 19.01, Cufi, Carles <Carles.Cufi@...> wrote:

Hi there,

Can you tell us how you're flashing the board? Another Nordic Devkit, or a separate debug IC?

Also copying Emanuele who's doing most of the work on this board.

Regards,

Carles

On 26/08/2018, 18:07, "devel@... on behalf of Henrik Brix Andersen" <devel@... on behalf of henrik@...> wrote:

Hi,

I have just acquired an NRF52840 Dongle (nrf52840_pca10059) and I am facing some difficulties with board startup.

When I flash a zephyr binary to the board (e.g. samples/basic/blinky) the board starts up fine and starts the application.
But when I disconnect the board from USB power and reconnect it, the application no longer starts (and the internal DC-DC converter does not seem to start-up either).

If I run no-op pyOCD command (e.g. pyocd-flashtool -t nrf52840) the application springs to life (e.g. for blinky, the LED starts to blink).
I am not using mcuboot or any other bootloader; just the bare-bone sample application.

What am I missing here?

Best regards,
Brix
--
Henrik Brix Andersen












Zephyr Development News, 28 August 2018

Marti Bolivar <marti@...>
 

Hello,

This is the 28 August 2018 newsletter tracking the latest Zephyr
development merged into the mainline tree on GitHub.

HTML is available here:

https://foundries.io/insights/2018/08/28/zephyr-news-20180828/

We're experimenting with using Pandoc to help generate the plain text
email version that follows; please bear with us in case of formatting issues.


As usual, contents are broken down as follows:

- Highlights
- Important changes
- New features
- Bug fixes
- Individual changes: a complete list of patches, sorted chronologically
and categorized into areas, like:
- Architectures
- Kernel
- Drivers
- etc.

Highlights
==========

This newsletter covers the following inclusive commit range:

- f5026a11 ("samples/mesh: Fix dev_uuid initialization from identity
address"), merged 16 August 2018
- 00bb7136 ("release: bump version to 1.13-rc1"), merged 22 August 2018

Important Changes
-----------------

v1.13 Release Candidate 1:

With v1.13.0-rc1 tagged and bagged, the merge window is closed. Only
pull requests which fix bugs or add documentation will be merged until
the next window opens (with the usual exceptions for pull requests
deemed special enough to bend the rules).


Tracing Framework:

Zephyr has long supported tool-specific means for tracing execution,
particularly support for Segger's (proprietary, and popular) tools. It
now includes an initial tool-agnostic trace framework.

Official documentation is a bit thin, but the relevant header
(<include/tracing.h>) is essentially a shim layer which allows
implementing additional tracing mechanisms. These will receive the same
trace notifications that Zephyr's Segger SystemView integration
supports. This replaces the old "event logger" mechanism as well as
other SoC-specific tracing code (so long, CONFIG_SOC_WATCH) in a unified
framework.

Support can be enabled via CONFIG_TRACING and enabling a backend (or,
cutting to the chase, by setting CONFIG_SEGGER_SYSTEMVIEW=y, which is
the only backend and selects CONFIG_TRACING). Here is an example of the
dining philosophers sample run under SystemView, showing the types of
events that are generated and associated metadata:

https://foundries.io/uploads/2018/08/28/segger_systemview_zephyr.png

Some of the edges are still a bit rough (the tracing API is not set in
stone, and details like thread IDs shown in the timeline view are not
especially human-readable), but it seems that with the addition of this
framework, generic and improving support for tracing is arriving in
Zephyr.


(Semi-)Automated Benchmarking:

Zephyr now supports gathering data for a variety of benchmarking
results, including for userspace operations. Support for benchmarking
implies a footprint and execution time penalty, so it must be enabled
with CONFIG_EXECUTION_BENCHMARKING. Test suites exercising this are part
of Zephyr's CI, and can also be run locally using sanitycheck.

Here are results and steps to reproduce a userspace-enabled benchmark
test suite on the frdm_k64f board:

https://gist.github.com/mbolivar/ff6db89181bde285f52ab32d5393f4e0

(Note that some userspace-specific issues are still being ironed out
on nRF devices; see issue 9676.) Unfortunately, the generated result
files are in (various different) custom text file formats, rather than
something like CSV or JSON. Thus, some extra parsing has to be done to
process the results.

To run benchmarks on a QEMU x86 Zephyr target (Linux hosts only), use
these instead:

# Run timing benchmarks:
$ sanitycheck -N -p qemu_x86 --test
tests/benchmarks/timing_info/benchmark.timing.userspace

# Run all tests with the "benchmark" tag:
$ sanitycheck -N -p qemu_x86 -t benchmark

As in the "real hardware" case, QEMU results are printed out in various
handler.log files in per-test sanity-out subdirectories.


Nordic GPIO/GPIOTE Changes:

The GPIO driver (drivers/gpio/gpio_nrfx.c) for Nordic nRF SoCs was
reimplemented as a shim over the nrfx vendor HAL, replacing the old
driver (drivers/gpio/gpio_nrf5.c).

Device tree GPIO nodes for nRF51 devices were added, affecting board
device trees.

These changes implied renaming of various GPIO-related Kconfig options.

Out of tree boards will need updates.


Power Management Improvements:

Zephyr has had power management support for quite some time
(http://docs.zephyrproject.org/subsystems/power_management.html), but
up until now, it has essentially been entirely up to the application
to manage power states in response to events. This is in contrast to
other operating systems, where the kernel can automatically initiate
device and SoC power state changes, often as a result of updating data
it's already using to track system state.

Needless to say, "do it yourself, have fun" tends to be less turnkey
than "the OS handles it for you", so it's a welcome sight to see the
initial merge of an "OS-managed" extension to Zephyr's power management
subsystem, which can be enabled by setting CONFIG_PM_CONTROL_OS=y.

Like much else in Zephyr, support is currently limited to nRF devices.
There also appear to be a few hard-coded data structures in the initial
commit limiting the available peripherals and supported functionality.
However, we're excited to see this new addition.

Features
--------

Arches:

The intel_s1000 target now initializes resource ownership for DMA and
I2S, as well as power gating and clock configuration, at SoC init time.

The Arm MPU driver framework was refactored and extended to add support
for v8-M SoCs.

Various internals were refactored for generic tracing support across
architectures.


Bluetooth:

The controller implementation (CONFIG_BT_CTLR) is now included by
default when CONFIG_BT is selected.

Zephyr's PHY update handler more gracefully manages protocol violations
observed with some cell phones available on the market.


Boards:

Support for the nRF-based board to be used at an upcoming Zephyr
hackathon was added as the reel_board configuration.

Support was added for the i.MX7 Solo WaRP7 board (as warp7_m4), with the
initial commit including GPIO, UART, and I2C support.

The intel_s1000_crb board now supports the TLV320DAC audio codec in its
device tree.

STM32L4 boards now support the RTC peripheral in their DTs.

nRF51 boards were refactored for DT-based GPIO support.


Device Tree:

Bindings were added for STM32 real time clocks (RTCs) in
dts/bindings/rtc/st,stm32-rtc.yaml.

The first audio codec binding (for the TI TLV320DAC) was added in
dts/bindings/audio/ti,tlv320dac.yaml.


Documentation:

The Kconfig documentation now makes it clearer which symbols are
selected by an option, and under what conditions. Here is an example for
CONFIG_SEGGER_SYSTEMVIEW:

http://docs.zephyrproject.org/reference/kconfig/CONFIG_SEGGER_SYSTEMVIEW.html#symbols-selected-by-this-symbol


Drivers:

New external device drivers/APIs:

- Analog devices ADXL372 3-axis accelerometer
- Avago APDS9960 digital proximity, ambient light, RGB and gesture
sensor
- TI TLV320DAC310x audio DAC (this is the first audio driver, which
has spawned a drivers/audio directory)
- TI HDC1008 temperature and humidity sensor
- A new driver API for digital microphone controllers was added as
include/audio/dmic.h.

STM32 devices now include support for the RTC peripheral; it was tested
on STM32L4.

The SiFive GPIO driver's IRQ bindings now respect the configured number
of pins.

i.MX devices can now retrieve frequency information for all UARTs.


Kernel:

Various internals were refactored for generic tracing support described
above.


Networking:

Various areas within the networking stack were refactored to avoid
allocating unnecessary struct k_delayed_work instances, resulting in
memory savings mostly affecting IPv6.


Samples:

- samples/sensor/adxl372, for the new ADXL372 accelerometer driver
- samples/subsys/power, for the new power management framework


Testing:

Additional test description and requirements traceability matrix
metadata were merged, along with improved test coverage in various
cases.


Bug Fixes
---------

Arches:

Some undefined signed integer shift operation behavior was corrected in
Arm's MPU framework.

On ARC, CONFIG_STACK_CHECK now works in secure mode as well, along with
other fixes related to thread initialization.

The SiLabs efr32fg1p SoC clock initialization code no longer attempts to
enable external oscillators which are already on.

The native_posix pseudo-architecture saw some segfault fixes in shell
argument handling, and a trace log message fix related to process
killing.


Bluetooth:

Mesh PB-GATT advertising data is initialized on demand, rather than at
initialization time, as the data it depends on may have changed since
initialization. Some PTS-related fixes were also merged.


Build:

A limitation on the number of kernel-space libraries to link into the
final binary has been removed.


Continuous Integration:

The check-compliance.py script no longer crashes when checking Kconfig
symbols for external projects.

sanitycheck internals related to job management were fixed and cleaned
up.

The Shippable configuration now fails when sanitycheck exits with an
error code, which it now does when Python exceptions are raised.


Drivers:

i.MX7 platforms now support GPIO7 and UART6.

Pinmux completions and bug fixes were merged affecting a variety of
STM32 families.

The i.MX I2C driver waits for the bus to be released before starting a
transaction.


External:

Kconfiglib was updated to a new version, fixing an issue related to
parsing the top-level Kconfig file.


Kernel:

The implementations of the k_{enable,disable}_sys_clock_always_on()
macros were fixed.

Various bitwise operations now correctly use unsigned integers. This is
an example of an emerging pattern of using the Coccinelle tool used in
the Linux kernel to perform automatic refactoring of Zephyr code; the
relevant script is scripts/coccinelle/unsigned_shift.cocci.

Thread-specific data is reserved at the top of the stack when
CONFIG_THREAD_USERSPACE_LOCAL_DATA is enabled. The first use case is
errno storage; use of errno from userspace now relies on this option.
This can be extended using the new struct _thread_userspace_local_data.


Libraries:

A couple of bug fixes for the recently merged CMSIS RTOS v1 support were
merged, affecting message and mail queues.


Miscellaneous:

Incorrect combinations of signed integers with irq_lock() were fixed,
also using a Cocinelle script, scripts/coccinelle/irq_lock.cocci.


Networking:

Renewed IPv6 addresses are now available for reuse. IPv6 addresses
related to a removed network prefix are now also removed.

The newly-merged LLDP support saw a timeout-related fix.

A bug causing spurious transmission of TCP retries was fixed.


Samples:

The samples/drivers/watchdog application was updated to use the new
watchdog API.


Testing:

Various issues identified by Coverity were fixed.

Individual Changes
==================

Patches by area (149 patches total):

- Arches: 23
- Bluetooth: 5
- Boards: 6
- Build: 4
- Continuous Integration: 8
- Device Tree: 6
- Documentation: 1
- Drivers: 25
- External: 1
- Kernel: 9
- Libraries: 2
- Miscellaneous: 5
- Networking: 16
- Power Management: 1
- Samples: 10
- Scripts: 1
- Testing: 26

Arches (23):

- 21e63ed2 arch: arm: kconfig: Remove redundant FLOAT dependencies
- 824bcaca xtensa: intel_s1000: Add SoC level SYS_INIT
- c8ea3653 arch: arm: type definition for arm mpu attribute container
- ff919d5f arch: arm: adapt region_init(.) to use arm_mpu_region_attr structure
- 829781d5 arch: arm: refactor _get_region_attr_by_type() function
- 5a696480 arch: arm: refactor _get_region_attr_by_conf(.) function
- 2f0e7221 arch: arm: mpu: move ARMv7m-specific functions in internal header
- 2a1fe6e2 arch: arm: implement ARMv8-M MPU driver
- b9566905 arch: arm: mpu: explicitly add UL in numerical shift operations
- 6ee0ad29 arch: arm: add ASSERT in _get_region_attr_by_type
- db0c5ca0 arch: arc: Added benchmark related hooks.
- e861661c native_posix: argparsing: Fix possible segfault
- 3ac2dc92 native_posix: Minor fix in message printed on kill
- 671cb652 arch/mcimx7_m4: Add pad, clock and gate config for GPIO7 and UART6
- d1219f4e arch/mcimx7_m4: Add i.MX7 Solo Kconfig SoC partnumber define
- f3d28933 arch: arc: stack check will be disabled in exception
- d68c0167 arch: arc: enable stack check when arc is in secure mode
- a1504c3c arch: arc: set the right init status for user space
- fa9fb831 arch: arc: re-orgnize the code in _new_thread
- eab5ff72 arch: arc: put the init context into privileged stack
- 506f21b6 arch: arc: small optimization in mpu driver
- 1301cc63 arch: arm: nordic_nrf: Add an API to check for valid PM state
- f6919977 soc: efr32fg1p: correct clock initialization sequence

Bluetooth (5):

- bb576f61 Bluetooth: Mesh: Move Device UUID log to bt_mesh_prov_enable()
- c0371277 Bluetooth: Mesh: Initialize PB-GATT advertising data at the
right time
- bf023d62 Bluetooth: Mesh: Fix heartbeat subscription state handling
- 8b3fd696 Bluetooth: controller: Fix assert on different transaction collision
- 871859a0 Bluetooth: GATT: Make CCC cfg_changed optional

Boards (6):

- 78a9daaa boards/arm: Enable RTC on STM32L4 boards
- 15813d34 boards: nrf: Changed GPIO default driver to NRFX shim
- bff5f470 boards: add basis support for the reel board
- 950c3466 boards: reel_board: Remove old reference to GPIO_NRF5
- 3c2a56bd boards: intel_s1000: audio codec in device tree
- c17fcf53 boards: Add support for WaRP7 board

Build (4):

- 964f6dc6 linker: Minor refactor of the APP_SMEM_SECTION macro
- cbe7b4fb linker: Re-implement {APP,KERNEL}_INPUT_SECTION
- 9e18b4f0 kconfig: BT: Default to using BT_CTLR when BT
- f2acdffe genrest: List symbols selected by each symbol

Continuous Integration (8):

- b4bdd669 sanitycheck: exit on exceptions
- 27b9e2ef ci: Handle errors and exit on them
- 94acc18b coverage: tests: poll: Add test to validate multiple polling threads
- 4fe581cc check-compliance: Fix undef. Kconfig symbol check for
external projects
- 42822083 sanitycheck: Get ZEPHYR_BASE only once
- c97054c1 sanitycheck: Fix the logic for jobs
- 99aacd98 sanitycheck: Rename CPU_COUNTS to JOBS
- f3bc967e sanitycheck: Overcommit the default number of jobs

Device Tree (6):

- 945ef745 dts/rtc: Introduce binding for STM32 RTC
- e99e363c dts: nrf: Added DTS support for nRF51
- 4f6aac1a dts: nrf5: Changed GPIO and GPIOTE define names
- 03da2f5c dts: audio: device tree support for audio devices
- 41d5a942 include: dt-bindings: pinctrl: stm32-pinctrlf1.h complete
stm32f1 header
- a25c273f dts: Fix cmake warning about missing id field for fsl,imx7d-i2c

Documentation (1):

- 469bd39b doc: add tracing section

Drivers (25):

- 0d47ae4f drivers: rtc: add support for STM32 RTC
- 6d8220d2 drivers: gpio: Add shim for nrfx GPIO and GPIOTE drivers
- d25c887f drivers: nrf: Remove redundant gpio_nrf5 shim
- acc5312b drivers: hdc1008: do not use hardcoded I2C address
- 6c9eb734 drivers: hdc1008: add dt bindings
- 7a507d3e drivers: apds9960: add dt bindings
- ca12b3f7 drivers: gpio: SiFive GPIO allows <32 pins
- 73c10932 drivers: audio: Add audio support in Kconfig
- d9a283d9 drivers: audio: TLV320DAC310x audio DAC driver
- 1864ba55 drivers: audio: add audio to cmake system
- bc332d76 drivers: dmic: APIs for digital microphones
- dc88fa6a drivers: i2s_cavs: Remove resource owner config
- e9c0f7e4 drivers: dma_cavs: Remove resource owner config
- 502d9189 drivers: pinmux: stm32: complete stm32f2 header
- 0ad9b3f8 drivers: pinmux: stm32: complete stm32f0 header
- 30045e4f drivers: pinmux: stm32: complete stm32f3 header
- 3fdf984a drivers: pinmux: stm32: complete stm32f4 header
- 4b9388f4 drivers: pinmux: stm32: complete stm32f7 header
- cc4f992b drivers: pinmux: stm32: complete stm32l0 header
- 425aca24 drivers: pinmux: stm32: complete stm32l4x header
- 96784dff include: console: Include kernel.h for struct k_fifo
- 2d269bb1 drivers: pwm_nrf5_sw: Perform static initialization only once
- 4eee8a67 drivers/i2c/i2c_imx: Check for I2C bus busy before starting
transaction
- 22b61c7f sensors: add WaRP7 board listing for fxos8700 and fxas21002
- a3e7cea1 drivers: sensors: adxl372: Add driver for ADXL372 high-g
accelerometer

External (1):

- 636d5451 ext/hal/nxp/imx: Add all UARTs clock frequency information

Kernel (9):

- f23a8cdd kernel: Fix k_*_sys_clock_always_on macro
- ec462f87 kernel: Remove unused definition
- 8aec0872 kernel: Fix bitwise operators with unsigned operators
- cc74ad08 kernel: Explicitly ignoring results of queue_insert
- 6699423a kernel: Explicitly ignoring memcpy return
- fc182430 kernel: userspace: reserve stack space to store local data
- a8b0b0d5 benchmarks: timing_info: Add hooks in the kernel for userspace.
- b6304e66 tracing: support generic tracing hooks
- a2248782 kernel: event_logger: remove kernel_event_logger

Libraries (2):

- 5c79101f constants: Use uppercase to indicate long
- 411662d3 lib: cmsis_rtos_v1: fix couple of nonconformities

Miscellaneous (5):

- 0866d18d irq: Fix irq_lock api usage
- 2626dda0 assert: Explicitly ignoring printk() return
- 030a65c4 util: Add WRITE_BIT macro to util.h
- 483910ab systemview: add support natively using tracing hooks
- 00bb7136 release: bump version to 1.13-rc1

Networking (16):

- 1a7e365f net: ip: Remove unused function
- 37837f5b net: ip: Add net_sprint_addr()
- 9d7711f0 net: ip: Redirect net_sprint_ipv*_addr() invocations
- 99dc5aef net: ip: Refactor usage of net_sprint_ip*()
- eeabc2ba net: if: Lower ram usage for IP address lifetime handling
- d529aef9 net: tls: Apply DTLS review fixes
- e3002751 net: ipv6: Centralize IPv6 send NS timeout through one k_delayed_work
- 51aa291f net: ipv6: Centralize ND reachable timeout through one k_delayed_work
- 58f3e183 net: ipv6: Separate IPv6 Neighbor functionality
- 8ddb3ba3 net: ipv6: Separate IPv6 MLD functionality
- 7aff94dc net: ipv6: Separate IPv6 fragment functionality
- 3bfc1385 net: if: Mark IPv6 address as preferred if lifetime is renewed
- 57a41a23 net: if: Remove IPv6 auto addresses if the prefix is removed
- a5f7e334 net: lldp: Fix timeout triggering if multiple workers
- 52126598 net: tcp: fix spurious TCP retries
- 49732b27 net: Move CONFIG_NET_OFFLOAD definition to net/ip/

Power Management (1):

- 2ad64785 subsys: power: Add OS managed Power Management framework

Samples (10):

- f5026a11 samples/mesh: Fix dev_uuid initialization from identity address
- 5d9e8189 samples: hello_world: remove single thread variant
- 1f19078e samples: apds9960: whitelist arduino_101_sss
- c9c8bbf2 samples: apds9960: whitelist reel board
- bd01344a samples/net/lldp/Kconfig: Get rid of leftover 'option env'
- 6c669ace samples: watchdog: Update watchdog example to new API
- 3f02e0d5 samples: remove kernel_event_logger sample
- 457fc799 samples: debug: remove sysview sample
- 84c352d0 samples: sensor: adxl372: Add ADXL372 sample application
- b69d2861 samples: subsys: Add sample app to demo OS managed PM

Scripts (1):

- a56be6f5 Kconfiglib: Fix $srctree behavior for the top-level Kconfig file

Testing (26):

- 9956dfc7 tests: update test identifier
- 57db4151 tests: remove subsys from test identifier
- 1c721217 tests: smp: Additional tests to verify SMP functionality
- ba6763a1 tests: disable HDC1008 from build tests
- fe1797f6 tests: net: ethernet_mgmt: Don't recalculate deltaBW with no link
- aaaf20e6 tests: net: ptp: Check max number of interfaces
- db2cbe7e tests: net: iface: Initialize port number
- 47889cd1 tests: fatal: Add description and RTM links
- b468b24d tests: gpio: Added nRF board to gpio test
- d36aae15 tests: cmsis_rtos_v1: add negative tests for timer api
- f3e05666 tests: kernel: fp_sharing: Added support for Cortex-M7
- ce88792a tests: fp_sharing: use filter
- 8c456f75 tests: mempool: Enhance tests to improve code coverage
- c9e3c938 tests/samples: watchdog: Update projects' configuration
- 667ad040 tests: benchmarks: timing_info: Add userspace related KPIs.
- 022588e8 tests: benchmarks: timing_info: Enable benchmarks for ARC.
- 43af891a tests: include: Add implementation of timestamp_serialize()
- 30b569e8 tests: benchmarks: timing_info: Discard selected measurements.
- bb918d85 tests: benchmarks: timing_info: Enable benchmarks for xtensa.
- 79f65d4d tests: benchmarks: timing_info: Enable benchmarks for nios2.
- 1d27b404 tests: benchmarks: timing_info: Enable benchmarks for riscv32.
- a4d1e36a tests: benchmarks: timing_info: Cleanup testcase.yaml
- 2a72f500 tests: smp: Modify test to verify thread delay
- 9038416b tests: net: ipv6: Add tests for verifying DAD timers
- ac47070d tests: qmsi: remove soc watch sample
- aa81a922 tests: build philosophers sample with systemview


Re: nrf52840_pca10059 startup

Henrik Brix Andersen
 

Hi,

Neither. I am applying the 3V briefly to the SWDCLK input to generate a low-to-high transition on that pin.
I have just retested. Applying 3V briefly to VDD_nRF has the same effect; the board starts up and the application springs to life.

VBUS_nRF is 5.19V when plugged into USB and VDD_nRF is 0.47V (when the application isn’t running for whatever reason).
After applying ~3V briefly to SWDCLK or VDD_nRF, the application springs to life. VBUS_nRF is the same as before (5.19V) but VDD_nRF is now ~3V (as expected from the initialisation code in boards/arm/nrf52840_pca10059/board.c).

After this, the board continues to function as expected (even after resets, reflashing, etc.) until the next cold-boot (removing VBUS and restoring it).

All help is much appreciated.

Regards,
Brix
--
Henrik Brix Andersen

On 28 Aug 2018, at 22.02, Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...> wrote:

Where are you applying the 3V? to VDD_nRF or VBUS_nRF? VBUS_nRF has a min, typ. and max of 4.35, 5, and 5.5 Volts. Can you measure the VDD_nRF, when you have the dongle plugged to USB port?

I dont have a dongle presently, reviewing the schematics, I see no reason why the chip should not be running the code in it.


From: Henrik Brix Andersen <henrik@...>
Sent: Tuesday, August 28, 2018 9:08 PM
To: Chettimada, Vinayak Kariappa
Cc: Cufi, Carles; Zephyr Devel List; Di Santo, Emanuele
Subject: Re: [Zephyr-devel] nrf52840_pca10059 startup

Hi all,

I have found that a single low-to-high transition on the SWDCLK pin of the PCA10059 makes the application spring to life.
No debugger attached, no external circuitry at all. Just an external power source of 3V and a switch for applying a low-to-high transition of the SWDCLK line.

Could this have something to do with the internal DC-DC converter of the NRF52840?

Regards,
Brix
--
Henrik Brix Andersen

On 27 Aug 2018, at 22.20, Henrik Brix Andersen <henrik@...> wrote:

Hi,

I am not using the NRF52832 configuration on the NRF52840 SoC; I merely noted that I have successfully used the same programmer (Atmel-ICE) for interacting with NRF52832 SoCs.

Yes, my application is samples/basic/blinky (and all other samples). I have tried the samples/bluetooth/peripheral sample; same issue.
When I initially flash the sample it starts up and everything works as intended. If I then disconnect USB power and reconnect it, nothing starts up (BLE scanner does not show the peripheral anymore).
A simple no-op SWD connection then does the trick; the application springs to life (without flashing a new binary).

I have tried a few of the USB samples as well; none of them shows up as a device on the USB bus.

Do you know if the original firmware binary (the one present on the device when shipping) for the PCA10059 is available anywhere? It could be interesting to see if that behaves correctly.
Are you able to share your locally built zephyr.bin file for the blinky sample with me?

Best regards,
Brix
--
Henrik Brix Andersen

On 27 Aug 2018, at 22.06, Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...> wrote:

Something you mention about using NRF52832 configuration, why would you want to use that on nRF52840 SoC?

You mention blinky as the example, is that the application you have trouble with? We tried that on our dongle, and see no issues.

I have tried BLE peripheral sample and hci_usb sample on nRF52840 merely powered from nRF USB interface, and see no issues.

Please confirm, that your application is samples/basic/blinky… also please try the samples/bluetooth/peripheral and let me know if you don’t see BLE advertising.

Regards,
Vinayak

On 27 Aug 2018, at 18:42, Henrik Brix Andersen <henrik@...> wrote:

Hi Vinayak,

Thank you for getting back to me. I just tried reverting commit 26d22b0075cf5a71f13958ec1f2727ac7167eca4, but it does not fix the application behaviour.

Any other ideas are most welcome.

Best regards,
Brix

--
Henrik Brix Andersen

On 27 Aug 2018, at 12.52, Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...> wrote:

Hi,

I may have introduced a regression (bisected to) in 26d22b0075cf5a71f13958ec1f2727ac7167eca4

I notice that hci_usb sample fails to enumerate the bluetooth class device.

Will get back when I have something. Meanwhile, revert the above mentioned commit and do let me know if your application functions as expected.

Regards,
Vinayak


On 26 Aug 2018, at 19:18, Henrik Brix Andersen <henrik@...> wrote:

Hi,

I am flashing the board using an Atmel-ICE debugger (using pyOCD 0.11.2) connected to a 10-pin debug connector soldered to the P1 footprint on the bottom of the board.

I am using the same configuration for several NRF52832 boards without issues.

Best regards,
Brix

--
Henrik Brix Andersen

On 26 Aug 2018, at 19.01, Cufi, Carles <Carles.Cufi@...> wrote:

Hi there,

Can you tell us how you're flashing the board? Another Nordic Devkit, or a separate debug IC?

Also copying Emanuele who's doing most of the work on this board.

Regards,

Carles

On 26/08/2018, 18:07, "devel@... on behalf of Henrik Brix Andersen" <devel@... on behalf of henrik@...> wrote:

Hi,

I have just acquired an NRF52840 Dongle (nrf52840_pca10059) and I am facing some difficulties with board startup.

When I flash a zephyr binary to the board (e.g. samples/basic/blinky) the board starts up fine and starts the application.
But when I disconnect the board from USB power and reconnect it, the application no longer starts (and the internal DC-DC converter does not seem to start-up either).

If I run no-op pyOCD command (e.g. pyocd-flashtool -t nrf52840) the application springs to life (e.g. for blinky, the LED starts to blink).
I am not using mcuboot or any other bootloader; just the bare-bone sample application.

What am I missing here?

Best regards,
Brix
--
Henrik Brix Andersen