# Target halted due to a break instruction in user code(Cause=6 means "Instruction bus error")

**URL:** <https://forums.freertos.org/t/target-halted-due-to-a-break-instruction-in-user-code-cause-6-means-instruction-bus-error/8760>\
**Category:** Kernel\
**Created:** [February 7, 2020, 5:28am UTC](https://forums.freertos.org/t/target-halted-due-to-a-break-instruction-in-user-code-cause-6-means-instruction-bus-error/8760 "2020-02-07T05:28:23Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![SergentSloGin](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/sergentslogin/32/48_2.png) [@SergentSloGin](https://forums.freertos.org/u/SergentSloGin)\
**Post date:** [March 12, 2020, 9:29am UTC](https://forums.freertos.org/t/target-halted-due-to-a-break-instruction-in-user-code-cause-6-means-instruction-bus-error/8760/7 "2020-03-12T09:29:24Z")

</div>

@saikumar.k Exception code 6 is mainly caused by either calling a non ISR API function from an ISR or using an application/RTOS object before it has been created.  
No one here knows your code so it’s impossible for us to tell you exactly what is wrong with it. Hopefully we’re pointing you in the right direction, as that is the only thing we can realistically do.

---

_[View the full topic](https://forums.freertos.org/t/target-halted-due-to-a-break-instruction-in-user-code-cause-6-means-instruction-bus-error/8760)._
