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

Can't flash test image into iotdk board. #22888

Closed
chen-png opened this issue Feb 18, 2020 · 3 comments · Fixed by #22891
Closed

Can't flash test image into iotdk board. #22888

chen-png opened this issue Feb 18, 2020 · 3 comments · Fixed by #22891
Labels
area: ARC ARC Architecture bug The issue is a bug, or the PR is fixing a bug

Comments

@chen-png
Copy link
Collaborator

Describe the bug
can't flash test image into iotdk board, it failed with "Error: checksum", and can't see anything from the serial output.
the related patch is #22602, if i used the commit 3b60f09 before this patch, it's ok to flash image into iotdk board, if with this patch, it will be failed.

To Reproduce
Steps to reproduce the behavior:

  1. west build -b iotdk -p auto samples/hello_world
  2. west flash
  3. See error

Screenshots or console output
Info : JTAG tap: arc-em.cpu tap/device found: 0x200444b1 (mfg: 0x258 (ARC International), part: 0x0044, ver: 0x2)
Error: arc_mem_checksum NOT SUPPORTED IN THIS RELEASE.
Error: checksum mismatch - attempting binary compare
Error: arc_mem_checksum NOT SUPPORTED IN THIS RELEASE.
Error: checksum mismatch - attempting binary compare

verified 8904 bytes in 0.019230s (452.174 KiB/s)

Environment (please complete the following information):

  • OS: fedora28
  • Toolchain: zephyr-sdk-0.11.1
  • Commit ID: a9bfd28
@chen-png chen-png added the bug The issue is a bug, or the PR is fixing a bug label Feb 18, 2020
@chen-png
Copy link
Collaborator Author

@abrodkin Could you take a look of this issue? It's related to #22602.

abrodkin added a commit to foss-for-synopsys-dwc-arc-processors/zephyr that referenced this issue Feb 18, 2020
Now when ARC development boards are switched to generic OpenOCD
runner we need to explicitly instruct the runner to load Elf but not
binary image (which is a default for OpenOCD runner).

This might be done either manually adding "--use-elf" option to
west's command line or that might be added by default fro affected
boards, which we do exactly now.

Fixes zephyrproject-rtos#22888.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
@abrodkin
Copy link
Collaborator

@chen-png thanks for spotting this one.

That problem happens because we didn't instruct OpenOCD runner to load Elf file instead of binary.
You may either do it manually adding --use-elf to west's command line or see #22891.

@ioannisg ioannisg added the area: ARC ARC Architecture label Feb 18, 2020
@chen-png
Copy link
Collaborator Author

it worked well on itodk with #22891.

nashif pushed a commit that referenced this issue Feb 18, 2020
Now when ARC development boards are switched to generic OpenOCD
runner we need to explicitly instruct the runner to load Elf but not
binary image (which is a default for OpenOCD runner).

This might be done either manually adding "--use-elf" option to
west's command line or that might be added by default fro affected
boards, which we do exactly now.

Fixes #22888.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ARC ARC Architecture bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants