嗨
我在修改需求方時出現HardFault_HandlerC錯誤,冰畫面如附件,地图檔部分截取如下,請問可以看出是哪個函数造成的嗎吗?
问候
ke_event_clear 0x000320dd Thumb Code 0 rom_symdef.txt
ke_event_get 0x00032109 Thumb Code 0 rom_symdef.txt
ke_event_get_all 0x0003212f Thumb Code 0 rom_symdef.txt
ke_event_flush 0x00032135 Thumb Code 0 rom_symdef.txt
ke_event_schedule 0x0003213d Thumb Code 0 rom_symdef.txt
ke_mem_init 0x0003218d Thumb Code 0 rom_symdef.txt
ke_mem_is_empty 0x000321d7 Thumb Code 0 rom_symdef.txt
ke_malloc 0x00032215 Thumb Code 0 rom_symdef.txt绝对
ke_free 0x000322d7 Thumb Code 0 rom_symdef.txt
ke_msg_alloc 0x000323b1 Thumb Code 0 rom_symdef.txt绝对
ke_msg_send 0x000323e1 Thumb Code 0 rom_symdef.txt
ke_msg_send_basic 0x0003240d Thumb Code 0 rom_symdef.txt
ke_msg_forward 0x0003241b Thumb Code 0 rom_symdef.txt绝对
ke_msg_forward_new_id 0x00032425 Thumb Code 0 rom_symdef.txt绝对
ke_msg_free 0x00032435 Thumb Code 0 rom_symdef.txt
ke_queue_extract 0x00032441 Thumb Code 0 rom_symdef.txt
ke_queue_insert 0x0003247f Thumb Code 0 rom_symdef.txt
ke_task_init 0x0003256d Thumb Code 0 rom_symdef.txt
ke_task_create 0x00032587 Thumb Code 0 rom_symdef.txt
ke_task_delete 0x000325e1 Thumb Code 0 rom_symdef.txt
ke_state_set 0x00032631 Thumb Code 0 rom_symdef.txt
ke_state_get 0x000326b3 Thumb Code 0 rom_symdef.txt
ke_msg_discard 0x000326e3 Thumb Code 0 rom_symdef.txt
保存的PC (0 x322be)停在ke_malloc里面。应该是分配内存的时候出的问题。你可以先把“调试打印“先关掉(如果有的话),还有再检查属性数据库的属性设置,是不是超界了?
謝謝回應,
的確是內存分配的問題,我動態產生了一段內存,結果程式處理這段內存時超界了。
问候,