# Program crash

**URL:** https://forum.amebaiot.com/t/program-crash/4320
**Category:** AI
**Tags:** rtl8735b, evb-amb82
**Created:** [August 24, 2025, 2:04pm UTC](https://forum.amebaiot.com/t/program-crash/4320 "2025-08-24T14:04:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nsmith1024](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@nsmith1024](https://forum.amebaiot.com/u/nsmith1024)
#### Post date: [August 24, 2025, 2:04pm UTC](https://forum.amebaiot.com/t/program-crash/4320/1 "2025-08-24T14:04:25Z")

</div>

Hello,

Im running the NN object recognition loop example on AMB82-mini, i also added some of my own code, but it keeps crashing, any idea what it can cause it? Is it running out of code space or RAM?

Here is the crash log:

09:54:14.647 → Total number of objects detected = 4  
09:54:14.647 →  
09:54:14.647 →  
09:54:14.647 → Total number of objects detected = 4  
09:54:14.647 →  
09:54:14.681 →

[VID Wrn]  
09:54:14.681 →  
CH 0 MMF ENC Queue full  
09:54:14.681 →  
YOLOv4t tick[61]  
09:54:14.681 →  
09:54:14.681 →  
09:54:14.681 → Bus Fault:  
09:54:14.681 → SCB Configurable Fault Status Reg = 0x00000400  
09:54:14.681 →  
09:54:14.681 → Bus Fault Status:  
09:54:14.681 → BusFault Address Reg is invalid(Asyn. BusFault)  
09:54:14.681 → Imprecise data bus error:  
09:54:14.681 → a data bus error has occurred, but the return address in the stack frame is not related to the instruction that caused the error.  
09:54:14.681 →  
09:54:14.681 → S-domain exception from Thread mode, Extended Stack frame on S-PSP  
09:54:14.714 → Registers Saved to stack  
09:54:14.714 →  
09:54:14.714 → Stacked:  
09:54:14.714 → R0 = 0x00000070  
09:54:14.714 → R1 = 0x701a9119  
09:54:14.714 → R2 = 0xffffffff  
09:54:14.714 → R3 = 0xffffffde  
09:54:14.714 → R4 = 0x00000018  
09:54:14.714 → R5 = 0x7045402809:54:14.714 → R7 = 0x702a3268  
09:54:14.714 → R8 = 0x00000060  
09:54:14.714 → R9 = 0x00000001  
09:54:14.714 → R10 = 0x702a30c8  
09:54:14.714 → R11 = 0x11111111  
09:54:14.714 → R12 = 0x704a5098  
09:54:14.714 → LR = 0x20106a2d  
09:54:14.714 → PC = 0x10022bfe  
09:54:14.714 → PSR = 0xa1100000  
09:54:14.714 →  
09:54:14.714 → Current:  
09:54:14.748 → LR = 0xffffffed  
09:54:14.748 → MSP = 0x20003fd8  
09:54:14.748 → PSP = 0x70453f98  
09:54:14.748 → xPSR = 0xa0000005  
09:54:14.748 → CFSR = 0x00000400  
09:54:14.748 → HFSR = 0x00000000  
09:54:14.748 → DFSR = 0x00000000  
09:54:14.748 → MMFAR = 0x00000000  
09:54:14.748 → BFAR = 0x00000000  
09:54:14.748 → AFSR = 0x00000000  
09:54:14.748 → PriMask = 0x00000000  
09:54:14.748 → SVC priority: 0x00  
09:54:14.748 → PendSVC priority: 0xf0  
09:54:14.748 → Systick priority: 0xf0  
09:54:14.748 →  
09:54:14.748 → MSP Data:  
09:54:14.748 → 20003FD8: 702BC9A4 FFFFFFF9 20004000 000003E8  
09:54:14.748 → 20003FE8: E000E000 702BC9A4 07070707 70129F9D  
09:54:14.781 → 20003FF8: 7012A008 21000000 AF7FDFB4 FFE7FBEF  
09:54:14.781 → 20004008: 8D0D71B8 393685EE B7DF8E6D AFB771CD  
09:54:14.781 → 20004018: 5B8088CE 3E47693C B9F4FF4B F5EFBAEE  
09:54:14.781 → 20004028: 8798C266 2A9CB30C 9EC67DF4 DFD9DBFF  
09:54:14.781 → 20004038: F8EA9DB5 51649A44 E97E4CC7 7757516F  
09:54:14.781 → 20004048: 0400E380 0919C122 D4E9F923 A7985D6D  
09:54:14.814 → 20004058: DA205546 4A041055 0B6D3FF5 4FFD157C  
09:54:14.814 → 20004068: 2A484B45 00312998 33EEBD43 68B6D2EC  
09:54:14.814 → 20004078: 019A28E1 095BD100 636A778D D62BB247  
09:54:14.814 → 20004088: 82E9155A 8B29A509 D98DF37D 6BC6FFEF  
09:54:14.814 → 20004098: 64005B9A 0268186E 7FC359C8 F6FB126F  
09:54:14.814 → 200040A8: 942CDAFD 1315E5B9 F5DCDDDF E86FE7F6  
09:54:14.814 → 200040B8: 199635F0 7C034C21 FBFAD969 AF36ED1D

---

<div class="post-metadata">

### Author: ![Pammy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/pammy/32/936_2.png) [@Pammy](https://forum.amebaiot.com/u/Pammy)
#### Post date: [August 25, 2025, 1:35am UTC](https://forum.amebaiot.com/t/program-crash/4320/2 "2025-08-25T01:35:15Z")

</div>

Hi @nsmith1024 ,

May I check if the default example (without adding your code) crashes? If no, it could be the portion of the code that you have added that is causing the hardfault.

From the log, it could be due to memory issue.

Could you share your code with us for us to reproduce your issue. Thank you.
