debug with multilink is ok,but fail after re-powerup

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

debug with multilink is ok,but fail after re-powerup

Jump to solution
659 Views
zhangzhixing
Contributor III

The K396 board I developed can be successfully pinged from my computer when running either the lwip_baremetal_s32k396 or lwip_FreeRTOS_s32k396 project using the Multilink debugger. However, after a power cycle, neither project can be pinged.

After changing the optimization level to none for the lwip_baremetal_s32k396 project, it can be pinged successfully without using the debugger. But for the lwip_FreeRTOS_s32k396 project, even after setting optimization to none, it still cannot be pinged without the debugger.

I added code to toggle an LED in vApplicationIdleHook, and it appears that the idle task is not being entered. What could be causing this issue?

Tags (1)
0 Kudos
Reply
1 Solution
645 Views
PavelL
NXP Employee
NXP Employee

Hello @zhangzhixing ,

I experienced the same symptoms. Have you tried to disable PIT in device_init, as I mentioned in my update  Solved: lwip_FreeRTOS_s32k396' example project and failure - NXP Community ?

Best regards,

Pavel

View solution in original post

0 Kudos
Reply
3 Replies
646 Views
PavelL
NXP Employee
NXP Employee

Hello @zhangzhixing ,

I experienced the same symptoms. Have you tried to disable PIT in device_init, as I mentioned in my update  Solved: lwip_FreeRTOS_s32k396' example project and failure - NXP Community ?

Best regards,

Pavel

0 Kudos
Reply
585 Views
zhangzhixing
Contributor III

Just comment out PIT and that's fine. Thanks.

Tags (1)
0 Kudos
Reply
589 Views
zhangzhixing
Contributor III

Just comment out PIT and that's fine. Thanks.

Tags (1)
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2140795%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Edebug%20with%20multilink%20is%20ok%EF%BC%8Cbut%20fail%20after%20%20re-powerup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2140795%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3EThe%20K396%20board%20I%20developed%20can%20be%20successfully%20pinged%20from%20my%20computer%20when%20running%20either%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Elwip_baremetal_s32k396%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eor%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Elwip_FreeRTOS_s32k396%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eproject%20using%20the%20Multilink%20debugger.%20However%2C%20after%20a%20power%20cycle%2C%20neither%20project%20can%20be%20pinged.%3C%2FP%3E%3CP%20class%3D%22%22%3EAfter%20changing%20the%20optimization%20level%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Enone%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efor%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Elwip_baremetal_s32k396%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eproject%2C%20it%20can%20be%20pinged%20successfully%20without%20using%20the%20debugger.%20But%20for%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Elwip_FreeRTOS_s32k396%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eproject%2C%20even%20after%20setting%20optimization%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Enone%2C%20it%20still%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Ecannot%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ebe%20pinged%20without%20the%20debugger.%3C%2FP%3E%3CP%20class%3D%22%22%3EI%20added%20code%20to%20toggle%20an%20LED%20in%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EvApplicationIdleHook%2C%20and%20it%20appears%20that%20the%20idle%20task%20is%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Enot%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ebeing%20entered.%20What%20could%20be%20causing%20this%20issue%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2142256%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20debug%20with%20multilink%20is%20ok%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2142256%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EJust%20comment%20out%20PIT%20and%20that's%20fine.%20Thanks.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2142253%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20debug%20with%20multilink%20is%20ok%EF%BC%8Cbut%20fail%20after%20%20re-powerup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2142253%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EJust%20comment%20out%20PIT%20and%20that's%20fine.%20Thanks.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2140926%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20debug%20with%20multilink%20is%20ok%EF%BC%8Cbut%20fail%20after%20%20re-powerup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2140926%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F245816%22%20target%3D%22_blank%22%3E%40zhangzhixing%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EI%20experienced%20the%20same%20symptoms.%26nbsp%3BHave%20you%20tried%20to%20disable%20PIT%20in%20device_init%2C%20as%20I%20mentioned%20in%20my%20update%26nbsp%3B%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2Flwip-FreeRTOS-s32k396-example-project-and-failure%2Ftd-p%2F2136326%22%20target%3D%22_blank%22%3ESolved%3A%20lwip_FreeRTOS_s32k396'%20example%20project%20and%20failure%20-%20NXP%20Community%3C%2FA%3E%26nbsp%3B%3F%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E