Skip to content

unable to flash sam_e70_xplained due to west errors #14209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
andrewboie opened this issue Mar 8, 2019 · 2 comments
Closed

unable to flash sam_e70_xplained due to west errors #14209

andrewboie opened this issue Mar 8, 2019 · 2 comments
Assignees
Labels
area: West West utility bug The issue is a bug, or the PR is fixing a bug platform: Microchip SAM Microchip SAM Platform (formerly Atmel SAM) priority: low Low impact/importance bug

Comments

@andrewboie
Copy link
Contributor

andrewboie commented Mar 8, 2019

I cloned the Zephyr repo like I usually do.

git clone [email protected]:zephyrproject-rtos/zephyr.git
cd zephyr
source zephyr-env.sh
cd tests/crypto/rand32

I then build a test case in the normal way:

mkdir out
cd out
export BOARD=sam_e70_xplained
cmake ..
make -j8

I then try to flash:

make flash

I get:

West version found in path does not support '/usr/bin/gmake flash', ensure west is installed and not only the bootstrapper. run 'west init' to fetch west.
Built target flash

This used to work. I have installed west 0.5.4 with pip3.

@andrewboie andrewboie added the bug The issue is a bug, or the PR is fixing a bug label Mar 8, 2019
@andrewboie andrewboie changed the title unable to flash sam_e70_xplained unable to flash sam_e70_xplained due to west errors Mar 8, 2019
@andrewboie andrewboie added area: West West utility platform: Microchip SAM Microchip SAM Platform (formerly Atmel SAM) labels Mar 8, 2019
@nashif nashif added the priority: low Low impact/importance bug label Mar 9, 2019
@carlescufi
Copy link
Member

carlescufi commented Mar 9, 2019

@andrewboie can you run:

west update
west --version

from your zephyr folder?

This error message will be printed if west is found but west flash -h fails. This usually means that you are running west in a zephyr tree that does not have a .west/ folder in its enclosing folder. Check that the folder is present, like:

carles@zweck-1964 ~/src/zephyr 
$ ls -la
total 0
drwxr-xr-x   5 carles  staff   160 Mar  9 22:37 .
drwxr-xr-x  23 carles  staff   736 Feb  9 13:29 ..
drwxr-xr-x   4 carles  staff   128 Jan 30 21:52 .west
drwxr-xr-x  44 carles  staff  1408 Jan 30 21:52 net-tools
drwxr-xr-x  45 carles  staff  1440 Mar  9 22:32 zephyr

If the .west/ folder does not exist, please run west init -l zephyr/ from the enclosing folder.

@andrewboie
Copy link
Contributor Author

I didn't setup a parent folder with west initialized in it.
Closing since this is required for flashing to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: West West utility bug The issue is a bug, or the PR is fixing a bug platform: Microchip SAM Microchip SAM Platform (formerly Atmel SAM) priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

4 participants