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

Flashing z-stack examples fail with error "Timeout waiting for ACK/NACK after 'Get Status (0x23)'" #112

Open
Caian opened this issue Oct 26, 2021 · 3 comments

Comments

@Caian
Copy link

Caian commented Oct 26, 2021

I'm having the following error when trying to flash z-stack examples that I compiled using IAR:

Writing 524256 bytes starting at address 0x00200000
Write 232 bytes at 0x0027FEF88
ERROR: Timeout waiting for ACK/NACK after 'Get Status (0x23)'

On the other hand, firmwares that I find online, like this one: https://github.com/jethome-ru/zigbee-firmware flash just fine. I've tried cc2538-bsl.py -p /dev/serial0 -w <firmware> and cc2538-bsl.py -p /dev/serial0 -e -v -w <firmware> with both raw binaries and intel hex. The result is always the same.

I'm using a cheap cc2538 + cc2592 board that I wired to a raspberry pi and I'm using openocd to reset it back to bootloader mode.

@JelmerT
Copy link
Owner

JelmerT commented Nov 4, 2021

That's an odd place for it to error out. What I'm suspecting is that you're writing to a memory address that the chip is not very happy with and then stops responding.
Does your firmware work if you flash it via jtag?

@Caian
Copy link
Author

Caian commented Nov 4, 2021

Yes, I've managed to find a custom build of OpenOCD that flashes and verifies it just fine. I've also tried to reduce the baud to 9600 with no success.

I tested basic stuff in the program, like simple IO and UART, but I can't fully confirm that the flash was a success because it was meant to be used with a developer board.

@jeroenvdd
Copy link

jeroenvdd commented Jan 5, 2022

I now get exactly the same unfortunately (with the default baudrate)
but it worked once i used the lower one

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

3 participants