zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.72k stars 6.55k forks source link

frdm_kl25z samples/basic/disco meet hard fault #13462

Closed hakehuang closed 5 years ago

hakehuang commented 5 years ago

Describe the bug build and run the application on frdm_kl25z cmeet hardfault

To Reproduce Steps to reproduce the behavior:

  1. mkdir build; cd build
  2. cmake -DBOARD=board_xyz
  3. make
  4. See error

Expected behavior the application can output normal message

Impact

  1. the application lack of correct protection for abnormal configurations
  2. the led configuration framework seems not platform independent

Screenshots or console output

***** Booting Zephyr OS 1.14.0-rc1 *****

***** HARD FAULT *****

***** Hardware exception *****

Current thread ID = 0x1ffff0a4

Faulting instruction address = 0x81a

Fatal fault in ISR! Spinning...

Environment (please complete the following information):

hakehuang commented 5 years ago

@MaureenHelm