ARMmbed / mbed-os

Arm Mbed OS is a platform operating system designed for the internet of things
https://mbed.com
Other
4.67k stars 2.97k forks source link

mbed-os hard fault in CY8CKIT064B0S2_4343W #14330

Closed saheerb closed 2 years ago

saheerb commented 3 years ago

Description of defect

mbed-os-example-blinky (and greentea tests) are hardfaulting for CY8CKIT064B0S2_4343W target. This seems to be after https://github.com/ARMmbed/mbed-os/pull/14062.

Report

++ MbedOS Fault Handler ++
FaultType: HardFault
Context:
R   0: 011A0FF9
R   1: 00000000
R   2: 00000E63
R   3: 00000008
R   4: 10022D84
R   5: 10022D84
R   6: AFFFFFDF
R   7: 00000000
R   8: FFFFDFFF
R   9: FFE8FD7F
R  10: 080D0000
R  11: 00000000
R  12: 00000000
SP   : 080DFFD8
LR   : 1001D271
PC   : 1001D2DE
xPSR : 21000000
PSP  : F9B79FFC
MSP  : 080DFFB8
CPUID: 410FC241
HFSR : 80000000
MMFSR: 00000000
BFSR : 00000000
UFSR : 00000000
DFSR : 00000002
AFSR : 00000000
Mode : Thread
Priv : Privileged
Stack: MSP
-- MbedOS Fault Handler --
++ MbedOS Error Info ++
Error Status: 0x80FF013D Code: 317 Module: 255
Error Message: Fault exception
Location: 0x1001D2DE
Error Value: 0x8004CD4
Current Thread: <unnamed> Id: 0x0 Entry: 0x2A00400A StackSize: 0x18894923 StackMem: 0x4A27E003 SP: 0x80DFFD8
For more info, visit: https://mbed.com/s/error?error=0x80FF013D&tgt=CY8CKIT064B0S2_4343W
-- MbedOS Error Info --

Target(s) affected by this defect ?

https://os.mbed.com/platforms/CY8CKIT-064B0S2-4343W/

Toolchain(s) (name and version) displaying this defect ?

GCC_ARM (tested only with this)

What version of Mbed-os are you using (tag or sha) ?

The issue is happening with: current master mbed-os-6.7.0

The issue is not reproducible with mbed-os.6.6.0

Edit: I did a git bisect and it is failing from https://github.com/ARMmbed/mbed-os/commits/4e34abbbf18c50cfd0209d6f8144c6f8c8fc5747

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

cysecuretools-2.0.0

Note: With cysecuretools-2.1.0, I encounter this issue: https://github.com/ARMmbed/mbed-os/issues/14153

How is this defect reproduced ?

(install cysecuretools-2.0.0)

Could also reproduce in greentea:

ciarmcom commented 3 years ago

@saheerb thank you for raising this issue.Please take a look at the following comments:

Could you add some more detail to the description? A good description should be at least 25 words.

NOTE: If there are fields which are not applicable then please just add 'n/a' or 'None'. This indicates to us that at least all the fields have been considered. Please update the issue header with the missing information, the issue will not be mirrored to our internal defect tracking system or investigated until this has been fully resolved.

ciarmcom commented 3 years ago

Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. Internal Jira reference: https://jira.arm.com/browse/IOTOSM-3507

0xc0170 commented 3 years ago

@ARMmbed/team-cypress Please review

saheerb commented 3 years ago

@ifyall just wanted to check if you were able to look at this?

0xc0170 commented 3 years ago

@ifyall just wanted to check if you were able to look at this?

We got code freeze in a week, it would be nice to resolve this.

saheerb commented 3 years ago

@ifyall gentle reminder to check if this has been looked into.

ifyall commented 3 years ago

@saheerb, we are working on generating a PR that should address this. Goal is end of this week or mid-next.

saheerb commented 3 years ago

@ifyall any update on this?

billwatersiii commented 2 years ago

This issue does not exist with the latest silicon (Rev *A) and latest version of the tools - mbed-os version 6.15.0, mbed tool version 1.10.5, and cysecuretools version 3.1.0. Please close this ticket.

0xc0170 commented 2 years ago

I closed this but the problem might be if it's still present in our CI (we would need the latest revision).

@saheerb happy with this closed ?