-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
ARC: MWDT: device_states section marked with NOLOAD flag #64268
Labels
area: ARC
ARC Architecture
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Comments
kokas-a
pushed a commit
to kokas-a/zephyr
that referenced
this issue
Nov 17, 2023
This PR fixes zephyrproject-rtos#64268 MWDT supposes .device_states section as BSS because .device_states variables defined as uninitialized. This causes the section marked as NOLOAD section and OpenOCD does not take it in account while flashing it into board memory. Finally .device_states variables becomes initialized with garbage from RAM. In this PR it's suggested to clean .device_states in early init stage. Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
kokas-a
pushed a commit
to kokas-a/zephyr
that referenced
this issue
Nov 17, 2023
This PR fixes zephyrproject-rtos#64268 MWDT supposes .device_states section as BSS because .device_states variables defined as uninitialized. This causes the section marked as NOLOAD section and OpenOCD does not take it in account while flashing it into board memory. Finally .device_states variables becomes initialized with garbage from RAM. In this PR it's suggested to clean .device_states in early init stage. Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
kokas-a
pushed a commit
to kokas-a/zephyr
that referenced
this issue
Nov 17, 2023
This PR fixes zephyrproject-rtos#64268 MWDT supposes .device_states section as BSS because .device_states variables defined as uninitialized. This causes the section marked as NOLOAD section and OpenOCD does not take it in account while flashing it into board memory. Finally .device_states variables becomes initialized with garbage from RAM. In this PR it's suggested to clean .device_states in early init stage. Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
kokas-a
pushed a commit
to kokas-a/zephyr
that referenced
this issue
Nov 17, 2023
This PR fixes zephyrproject-rtos#64268 MWDT supposes .device_states section as BSS because .device_states variables defined as uninitialized. This causes the section marked as NOLOAD section and OpenOCD does not take it in account while flashing it into board memory. Finally .device_states variables becomes initialized with garbage from RAM. In this PR it's suggested to clean .device_states in early init stage. Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
kokas-a
pushed a commit
to kokas-a/zephyr
that referenced
this issue
Nov 20, 2023
This PR fixes zephyrproject-rtos#64268 MWDT supposes .device_states section as BSS because .device_states variables defined as uninitialized. This causes the section marked as NOLOAD section and OpenOCD does not take it in account while flashing it into board memory. Finally .device_states variables becomes initialized with garbage from RAM. In this PR it's suggested to clean .device_states in early init stage. Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
kokas-a
pushed a commit
to kokas-a/zephyr
that referenced
this issue
Nov 24, 2023
This PR fixes zephyrproject-rtos#64268 MWDT supposes .device_states section as BSS because .device_states variables defined as uninitialized. This causes the section marked as NOLOAD section and OpenOCD does not take it in account while flashing it into board memory. Finally .device_states variables becomes initialized with garbage from RAM. In this PR it's suggested to clean .device_states in early init stage. Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
nashif
pushed a commit
that referenced
this issue
Nov 25, 2023
This PR fixes #64268 MWDT supposes .device_states section as BSS because .device_states variables defined as uninitialized. This causes the section marked as NOLOAD section and OpenOCD does not take it in account while flashing it into board memory. Finally .device_states variables becomes initialized with garbage from RAM. In this PR it's suggested to clean .device_states in early init stage. Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
coreboot-org-bot
pushed a commit
to coreboot/zephyr-cros
that referenced
this issue
Nov 27, 2023
This PR fixes zephyrproject-rtos/zephyr#64268 MWDT supposes .device_states section as BSS because .device_states variables defined as uninitialized. This causes the section marked as NOLOAD section and OpenOCD does not take it in account while flashing it into board memory. Finally .device_states variables becomes initialized with garbage from RAM. In this PR it's suggested to clean .device_states in early init stage. (cherry picked from commit 4cb194f) Original-Signed-off-by: Nikolay Agishev <agishev@synopsys.com> GitOrigin-RevId: 4cb194f Change-Id: If4eb8d80cbde184057556bf6b8dacdd0bef283c4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5060909 Reviewed-by: Al Semjonovs <asemjonovs@google.com> Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com> Tested-by: Al Semjonovs <asemjonovs@google.com> Commit-Queue: Al Semjonovs <asemjonovs@google.com>
tychofrei02
pushed a commit
to tychofrei02/zephyr
that referenced
this issue
Nov 29, 2023
This PR fixes zephyrproject-rtos#64268 MWDT supposes .device_states section as BSS because .device_states variables defined as uninitialized. This causes the section marked as NOLOAD section and OpenOCD does not take it in account while flashing it into board memory. Finally .device_states variables becomes initialized with garbage from RAM. In this PR it's suggested to clean .device_states in early init stage. Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
yunheQin
pushed a commit
to yunheQin/zephyr
that referenced
this issue
Dec 6, 2023
This PR fixes zephyrproject-rtos#64268 MWDT supposes .device_states section as BSS because .device_states variables defined as uninitialized. This causes the section marked as NOLOAD section and OpenOCD does not take it in account while flashing it into board memory. Finally .device_states variables becomes initialized with garbage from RAM. In this PR it's suggested to clean .device_states in early init stage. Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
panxxhub
pushed a commit
to panxxhub/zephyr
that referenced
this issue
Dec 7, 2023
This PR fixes zephyrproject-rtos#64268 MWDT supposes .device_states section as BSS because .device_states variables defined as uninitialized. This causes the section marked as NOLOAD section and OpenOCD does not take it in account while flashing it into board memory. Finally .device_states variables becomes initialized with garbage from RAM. In this PR it's suggested to clean .device_states in early init stage. Signed-off-by: Nikolay Agishev <agishev@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
priority: low
Low impact/importance bug
Describe the bug
MWDT (2023.06) toolcahin marks section device_states with NOLOAD flag.
This section stays uninitialized while flashing elf on HW board. In case of HSDK board, memory filled with 0xFF after cold start.
In this condition the section filled with 0xFF and all devices has incorrect status.
ARC HSDK board
west flash
with openocd runner) -- this has helpedspecific commit?
In earlier zephyr versions there were another section placed after device_states that were marked with PROGBITS flag. Total size of loadable segment overlaped device_states section, thats why it was cleared.
To Reproduce
Steps to reproduce the behavior:
openocd -f arc/hsdk/support/openocd.cfg '-c init' '-c targets' -c 'reset halt' -c 'mdb <sect_addr> <sect_size>' -c shutdown
west flash
Expected behavior
Zephyr works correct
Environment (please complete the following information):
Additional context
Gcc compiler always marks device_states section with PROGBITS, while device ststates variables are uninitialized in compile time.
In common logis this section also should has NOLOAD flag in case of gcc.
The text was updated successfully, but these errors were encountered: