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

[OOB 5.6] Program hangs by pressing USER button on DISCO_F429ZI #55

Closed
toyowata opened this issue Sep 14, 2017 · 3 comments
Closed

[OOB 5.6] Program hangs by pressing USER button on DISCO_F429ZI #55

toyowata opened this issue Sep 14, 2017 · 3 comments

Comments

@toyowata
Copy link

Description

  • Type: Bug
  • Related issue: none
  • Priority: Major

Bug

Target
DISCO_F429ZI

Toolchain:
GCC_ARM

Toolchain version:
arm-none-eabi-gcc.exe (GNU Tools for ARM Embedded Processors 6-2017-q1-update) 6.3.1 20170215 (release) [ARM/embedded-6-branch revision 245512]

mbed-cli version:
1.2.0

mbed-os sha:
$ mbed ls
mbed-os-example-uvisor (079c015)
`- mbed-os (a4056fb8bf3e)

DAPLink version:
Version: 0221
Build: Nov 19 2015 15:23:07

Expected behavior

Secure LED toggles by pressing USER button.

Actual behavior

When pressing USER button, program hangs most of time. See log file below:

***** IRQ blinky uVisor example *****
Main loop count: 0
Main loop count: 1
Main loop count: 2
Main loop count: 3

Pressed switch, printing from interrupt - LED now on.

Note that I did not see any problem with master branch, only in mbed-os-5.6-oob branch. Also, K64F does not have such an issue in mbed-os-5.6-oob branch.

Steps to reproduce

$ mbed import mbed-os-example-uvisor
$ cd mbed-os-example-uvisor
$ mbed update mbed-os-5.6-oob
$ mbed compile -m DISCO_F429ZI -t GCC_ARM -f

@ciarmcom
Copy link
Member

ARM Internal Ref: IOTSEC-443

@Patater
Copy link
Contributor

Patater commented Sep 14, 2017

This is caused by ARMmbed/uvisor#420

The version of Mbed OS being tested with attempts to sleep from unprivileged mode, but that causes an access violation.

@toyowata
Copy link
Author

Fixed in the mbed-os-5.6-oob2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants