-
Notifications
You must be signed in to change notification settings - Fork 2k
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
ERROR: Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)' #11031
Comments
Sorry I didn't exported the toolchain path in the above ./print_toolchain_versions.sh the below one is correctOperating System Environment
Installed compiler toolchains
riscv-none-embed-gcc: missing Installed compiler libsarm-none-eabi-newlib: "3.0.0" Installed development tools
|
So this was attempted to be dealt with on the RIOT users list. I have not been able to reproduce the issues though. It seem like a serial connection is left open somehow. The bootloader pin should be 6 according to the rev 14 schematics and the fact that @mohanmaniramesh bricked a number of devices when changing it to pin 7 leads be to believe that it is correct. @mohanmaniramesh please clearly how you recover from the "Timeout waiting for ACK/NACK" state. Once a device cannot be flashed how do you get it to flash again (ie. reset the computer, reopen the console, replug the board). I know I already asked this but I need to know how it gets back to being able to flash. FYI for other maintainers, I have spent a long time with both private and public emails going back and forth. Any help to clarify or test and try to reproduce the issues are appreciated, |
hello @MrKevinWeiss |
Ya the bricked boards won't work. You will need to reflash a program with the correct pin. I am interested in the working boards and what is done after the failed flashing attempt to get them to work. |
sorry @MrKevinWeiss the bootloader pin is 6 only. I checked the scematic and i asked again to the pere tuset that was his mistake he told wrong |
@mohanmaniramesh @MrKevinWeiss
Initially, I thought that it was not selecting the right port and started looking in my /dev folder to figure out the port and found 2 ports belonging to the mote I then tried flashing the device with port
This was the command that was being called for flashing though: This did not work as the script for some reason was still taking the old port (i.e.
I was successfully able to flash the code and able to use |
Thanks this was Good way
…On Sat, Mar 9, 2019 at 11:19 AM Siddharth Gupta ***@***.***> wrote:
@mohanmaniramesh <https://github.com/mohanmaniramesh> @MrKevinWeiss
<https://github.com/MrKevinWeiss>
I am using the openmote-B for a research project, and had borrowed a few
devices from my university lab. When I first tried to flash the devices I
was getting the same error:
Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)'
Initially, I thought that it was not selecting the right port and started
looking in my /dev folder to figure out the port and found 2 ports
belonging to the mote tty.usbserial-xxxx0 and tty.usbserial-xxxx1.
I then tried flashing the device with port tty.usbserial-xxxx1 using the
command:
$ BOARD=openmote-b PORT=/dev/tty.usbserial-xxxx1 make flash
This was the command that was being called for flashing though:
{path_to_RIOT}/dist/tools/cc2538-bsl/cc2538-bsl.py -p
"/dev/tty.usbserial-14200" --bootloader-invert-lines -e -w -v -b 460800
{path_to_RIOT}/examples/gnrc_networking/bin/openmote-b/gnrc_networking.bin
This did not work as the script for some reason was still taking the old
port (i.e. tty.usbserial-xxxx0). So I manually copied the command and
modified the flashing command to use port tty.usbserial-xxxx1:
{path_to_RIOT}/dist/tools/cc2538-bsl/cc2538-bsl.py -p
"/dev/tty.usbserial-14201" --bootloader-invert-lines -e -w -v -b 460800
{path_to_RIOT}/examples/gnrc_networking/bin/openmote-b/gnrc_networking.bin
I was successfully able to flash the code and able to use make term on
this port. Hopefully this helps someone who is stuck in a similar situation.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11031 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AVgoRMjW2hc6NQpmWFwm0sCZBFCI_uX7ks5vU0tagaJpZM4bCNmJ>
.
|
For future reference you can overwrite the flasher port by setting the @mohanmaniramesh can I close the issue? |
Yes you can .
Thank you
…On Wed, 13 Mar 2019, 2:01 pm MrKevinWeiss, ***@***.***> wrote:
For future reference you can overwrite the flasher port by setting the
PORT_BSL={desired_port}. The PORT= variable *should* only be for the term.
@mohanmaniramesh <https://github.com/mohanmaniramesh> can I close the
issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11031 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AVgoRJAJQ2bWRLLQiQkGHsus0h7f27Itks5vWLdKgaJpZM4bCNmJ>
.
|
I'm having the exact same issue and verified that
I can reset the board over JTAG just fine and flash successfully, but having to do that every time can't be the solution. |
in your error itself, you will get a line like below copy and paste. and by
using this command you can do it easily with that.
{path_to_RIOT}/dist/tools/cc2538-bsl/cc2538-bsl.py -p
"/dev/tty.usbserial-14201" --bootloader-invert-lines -e -w -v -b 460800
{path_to_RIOT}/examples/gnrc_networking/bin/openmote-b/gnrc_networking.bin
…On Thu, Apr 11, 2019 at 11:59 PM Yannic ***@***.***> wrote:
I'm having the exact same issue and verified that cc2538-bsl.py is being
called with the correct port, but it's still always failing with
Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)'
I can reset the board over JTAG just fine and flash successfully, but
having to do that every time can't be the solution.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11031 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AVgoRMz9uVpECRl0Eg5RNTsU8jJS9Wxxks5vf38GgaJpZM4bCNmJ>
.
|
I think you may have misunderstood, my issue is not with an incorrect call to the This is the output of
And by checking To demonstrate I can directly call:
and as expected get the output:
|
Is /dev/ttyUSB1 the only USB device you can see? Can you tell us the output of:
|
Sure:
|
I'm not sure what's causing the issue. Did |
If I reset the device with JTAG every time before trying to flash a new image everything works just fine, but that can't be the intended solution. As the header file of the OpenMote-B suggests, the bootloader backdoor should be enabled, it just doesn't seem to work for me.
|
hello all,
I will explain step by step:
they said as you are a beginner you can try RIOT--TUTORIALS like that
https://github.com/RIOT-OS/Tutorials
my openmote-B
Command that was also working well
Here I gave this command BOARD=openmote-B make flash all term For tranfer the TASK-02 program to my openmote-B
But this Time I got the Following Error ERROR: Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)'
I got to know by my analysis there is problem with the Bootloder kind of things only
openMote-B developer Mr.per tuset he said the following
Hello,
You have probably flahsed a RIOT image that has the wrong pin configuration for the bootloader in the Flash. To fix it:
For your reference, the pin that is used to trigger the bootloader on the OpenMote-B board is PORTA PIN7 using a low level.
Kind regards,
Pere
I analysed and found the below line
#define CCA_BACKDOOR_PORT_A_PIN (6) /**< BSL_BOOT Pin */
by Pere Tuset approval i changed the pin number 6 into 7
but then also not working and again he said like this
Hello,
This is really unfortunate.
I am not very familiar with RIOT, but there must be something else going on.
For example the CCA configuration is stored in Flash as described in this file -> https://github.com/RIOT-OS/RIOT/blob/master/cpu/cc2538/vectors.c
The specific line is : 0xe0ffffff | (CCA_BACKDOOR_ENABLE << 28) | (CCA_BACKDOOR_ACTIVE_LEVEL << 27) | (CCA_BACKDOOR_PORT_A_PIN << 24)
If done the math and it matches the configuration I am unsing on my projects, so that should work.
One thing to try is using a slower baudrate (i.e. 400000) just in case.
but I'am confused where to change what to change i did so many thing
i have total 10 in that 5 boards are locked remaining 5 boards are there i'm fearing to check more things
please help me out of this
(I got the idea to recover the other 5 openmote-B board using JTAG programmer I'm going to make it work)
But i sould work with other boards by solving this error
Thanks
I'M ATTACHING THE OUTPUT OF ./print_toolchain_versions.sh
Operating System Environment
Installed compiler toolchains
riscv-none-embed-gcc: missing
xtensa-esp32-elf-gcc: missing
xtensa-lx106-elf-gcc: missing
clang: clang version 7.0.0-3 (tags/RELEASE_700/final)
Installed compiler libs
arm-none-eabi-newlib: missing
mips-mti-elf-newlib: missing
riscv-none-embed-newlib: missing
xtensa-esp32-elf-newlib: missing
xtensa-lx106-elf-newlib: missing
avr-libc: missing (missing)
Installed development tools
The text was updated successfully, but these errors were encountered: