3 posts / 0 new
Last post
dirkleu
Offline
Last seen:4 years 2 months ago
加入:2016-03-17 08:50
HardFault_HandlerC

Hi
我在修改DSPS時出現HardFault_HandlerC錯誤,ICE畫面如附件,map檔部分截取如下,請問可以看出是哪個function造成的嗎?

问候

ke_event_clear 0x000320dd Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_event_get 0x00032109 Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_event_get_all 0x0003212f Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_event_flush 0x00032135 Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_event_schedule 0x0003213d Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_mem_init 0x0003218d Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_mem_is_empty 0x000321d7 Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_malloc 0x00032215 Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_free 0x000322d7 Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_msg_alloc 0x000323b1 Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_msg_send 0x000323e1 Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_msg_send_basic 0x0003240d Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_msg_forward 0x0003241b Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_msg_forward_new_id 0x00032425 Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_msg_free 0x00032435 Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_queue_extract 0x00032441 Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_queue_insert 0x0003247f Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_task_init 0x0003256d Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_task_create 0x00032587 Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_task_delete 0x000325e1 Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_state_set 0x00032631 Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_state_get 0x000326b3 Thumb Code 0 rom_symdef.txt ABSOLUTE
ke_msg_discard 0x000326e3 Thumb Code 0 rom_symdef.txt ABSOLUTE

Keywords:
Device:
Gongyu_Dialog
Offline
Last seen:5 days 7 hours ago
加入:2016-04-27 07:07
保存的PC(0x322be)停在ke_malloc里面.

保存的PC(0x322be)停在ke_malloc里面. 应该是分配内存的时候出的问题。你可以先把“调试打印”先关掉(如果有的话),还有再检查attribute database的属性设置,是不是超界了?

dirkleu
Offline
Last seen:4 years 2 months ago
加入:2016-03-17 08:50
謝謝回應,

謝謝回應,
的確是內存分配的問題,我動態產生了一段內存,結果程式處理這段內存時超界了。

问候,