2026-01-24 7:13 PM - edited 2026-01-25 5:43 PM
When using stm32n6 and enabling both GFX and AI models, the runtime continuously reports errors:
"Epoch controller error interrupt: EC_IRQ = 0x00000008 Epoch controller opcode counter: 0x00000000 Epoch controller tag: 0x00000000 ATON_STD_IRQHandler()@851: irqs=0xlx Assertion '0' failed: file 'E:/TouchGFXProjects/AR_Glasses/Middlewares/AI_Runtime/Npu/ll_aton/ll_aton_runtime.c', line 855, function: __LL_ATON_RT_IrqErr"
What could be the possible cause of this? Is it related to the XSPI2 bus? both GFX and cubeAI utilize XSP2.
The model used is the official demo program: st_yolo_x_nano_480_1.0_0.25_3_st_int8.tflite from STM32N6-GettingStarted-ObjectDetection-main.
I sincerely hope that st can help me solve this problem. Thanks
Solved! Go to Solution.
2026-01-27 7:25 AM
Hi @dumb,
I know that we have a colleague working on a tutorial to use both touchGFX and XCubeAI.
I think he is using the same model.
Could you please wait for this document?
I would expect it to come relatively soon. I will look for a date.
I added this question link to our internal ticket regarding this tutorial.
I did some research earlier in the AI team and TouchGFX team to know how to use both and nobody knew (and they are focused on other subjects), so this article is the main possibility I see to answer such questions.
Thanks for your understanding.
Have a good day,
Julian
2026-01-27 7:25 AM
Hi @dumb,
I know that we have a colleague working on a tutorial to use both touchGFX and XCubeAI.
I think he is using the same model.
Could you please wait for this document?
I would expect it to come relatively soon. I will look for a date.
I added this question link to our internal ticket regarding this tutorial.
I did some research earlier in the AI team and TouchGFX team to know how to use both and nobody knew (and they are focused on other subjects), so this article is the main possibility I see to answer such questions.
Thanks for your understanding.
Have a good day,
Julian
2026-01-27 5:04 PM
Thank you very much for your reply. I look forward to updates on your project. If possible, could you please provide me with a link when the project is completed? Thank you
2026-01-28 6:41 AM - edited 2026-01-28 6:41 AM
Hi @dumb,
Yes of course.
Regarding the timeline, the tutorial is also handling camera middleware, and my colleague is waiting for a driver update.
Article is for now planned for mid-late February (rough estimation, depends on the update).
If you don't mind, could you share your project to take a look in the meantime.
Have a good day,
Julian
2026-01-28 5:42 PM
Thank you for your reply. Here is the link to my project:https://github.com/pml15583288906-cell/AR_GLASSES
I currently suspect a memory overwrite issue, but I'm not sure how to modify the memory to make the project run properly. Thank you very much for your help
2026-02-02 5:11 PM - edited 2026-02-02 5:12 PM
Initially, I suspected that the NPU startup failure was caused by the prominent usage of XSPI2. Therefore, I completely disabled the initialization and startup of GFX, leaving only the initialization and startup of the AI model. However, the error as described in the title still occurred. So, I thought it might be a memory conflict issue, but I had no clue about how to modify the memory. No matter how I tried, the same issue persisted