-
公开(公告)号:US11853151B1
公开(公告)日:2023-12-26
申请号:US18165925
申请日:2023-02-07
Applicant: Realtek Semiconductor Corporation
Inventor: Siwei Jiang , Kun-Hsuan Wu , Hong Zhang , Shuyu Deng
CPC classification number: G06F11/079 , G06F11/0736 , G06F11/0793 , G06F11/28
Abstract: An embedded device detection method, comprising the following steps: executing a task by an embedded device, wherein the task comprises multiple functions; when an abnormal interruption occurs to the task, obtaining a stack pointer and a program counter corresponding to the abnormal interruption by a detection device, wherein the program counter is configured to record a memory address in use when the abnormal interruption occurs to the task; obtaining a stack space corresponding to a first target function being executed according to the program counter when the abnormal interruption occurs to the task; finding out a second target function before the first target function is executed according to the stack pointer and the stack space; and correcting the task according to the second target function.