Skip to content
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

No output in PyTerm after flash #9971

Closed
npcode15 opened this issue Sep 20, 2018 · 11 comments
Closed

No output in PyTerm after flash #9971

npcode15 opened this issue Sep 20, 2018 · 11 comments

Comments

@npcode15
Copy link

npcode15 commented Sep 20, 2018

Hello, I am trying to flash hello-world example. Flash is successful but the pyterm doesn't output anything.

Please refer to the following image for reference.
image

I am not if this is a RIOT issue.

Setup: Ubuntu 10 within a Windows 10 Host (using VMWare).
Device: nrf52dk
arm-toolchain: v7.3

Thanks.

@dylad
Copy link
Member

dylad commented Sep 20, 2018

Did you tried to reset the board after flashing ?
Usually I had to reset this board to see some outputs in the beginning.
Another solution is to open an instance of pyterm in a second terminal which is always connected, then use your first terminal to flash, compile and do all the stuff you want.

@npcode15
Copy link
Author

@dylad the reset button doesn't work.

Although, the second PyTerm window thing does work. I would like if the reset button works. Because I need to repeat the output.

@dylad
Copy link
Member

dylad commented Sep 20, 2018

Are you using nrf52dk or nrf52840dk ?
In fact are you using nrf52832 or nrf52840 chip ?
For nrf52832 you need to setup some register because the reset pin is a mere GPIO.

@npcode15
Copy link
Author

I am using the nrf52840.

@dylad
Copy link
Member

dylad commented Sep 20, 2018

Looks like you need to setup the pin to the reset function to enable it. Otherwise the pin acts as a GPIO

@npcode15
Copy link
Author

npcode15 commented Sep 20, 2018

@dylad I will set it up. Thanks.

@npcode15 npcode15 reopened this Sep 26, 2018
@npcode15
Copy link
Author

@dylad I have a follow-up question.

Is it possible for me to execute RIOT shell commands in Pyterm.

If yes, how? I am not able to do so.

Thank you.

@dylad
Copy link
Member

dylad commented Sep 26, 2018

Pyterm is intend to execute RIOT shell commands. So yes you can.
Typing "help" plus enter key should give the list of available commands.
Not all RIOT tests applications use the shell, some of them only print information without any interaction. So please check that your application is calling the shell init.
If this still don't work, please check your serial connection and your serial driver.

@npcode15
Copy link
Author

npcode15 commented Sep 26, 2018

I was able to make it work after re-installing openocd (I don't know if it has any relevance or not).

So, it works but is a bit sketchy. I do not want to confuse anyone. Apparently, even after specifying PORT=/dev/ttyACM0 or PORT=/dev/ttyACM1, RIOT was flashing the same board. I was able to make it work by connecting second one only after the first flash suceeded.

I just wanted to inform. I will close this one but I might have a question regarding this in the future. So, it is possible that I re-open this again.

Thanks.

@dylad
Copy link
Member

dylad commented Sep 27, 2018

Remember that openOCD don't use serial port to flash, so telling RIOT build system which port to use will not help openOCD. In this case you need to add DEBUG_ADAPTER_ID=xxxxxxx to tell which debugger you want to use, see makefiles/tools/openocd-adapters for details.

@dylad
Copy link
Member

dylad commented Sep 28, 2018

see #10072 for resetting your board.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants