Cyclone LC fails to run the offline-programmed .hex with CSEC enabled despite successful programming

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

Cyclone LC fails to run the offline-programmed .hex with CSEC enabled despite successful programming

733 Views
CZJ-UPDATE2025
Contributor II

The Cyclone LC offline programming of the executable .hex file with Cesc function was successful, but it cannot run.

Chip: FS32K146HAT0MLLR
The .hex file programming has been confirmed successful. The offline programming of a program without CSEC functionality works fine.

 

Question: Are there any additional special steps required for offline programming of a program with CSEC functionality? Please provide a detailed explanation. Your prompt response would be greatly appreciated. Thank you!
Tags (1)
0 Kudos
Reply
6 Replies

712 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @CZJ-UPDATE2025 

I can't see a difference. How do you enable CSEc? Is the Program Partition command executed by that application? 

What does it mean "it cannot run"? Are you able to attach a debugger? What can you see in the debugger? 

Regards,

Lukas

0 Kudos
Reply

691 Views
CZJ-UPDATE2025
Contributor II
Our program has already enabled the partitioning command and successfully activated the CSEC function. Our question is:
We use the Cyclone LC software and device to program the .hex file, but the board's program doesn't run. However, after removing the code segment related to the CESC function from the source program, the program can run on the board after programming. So we would like to ask: are there any additional steps required for programming the program with the CESC function?
0 Kudos
Reply

664 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

No specific steps are needed when CSEc is used. I would need to know what does not work exactly. "It does not work" is not sufficient description. What can you see in debugger?

0 Kudos
Reply

655 Views
CZJ-UPDATE2025
Contributor II

CZJUPDATE2025_0-1752826332506.jpeg

 

CZJUPDATE2025_1-1752826354913.jpeg

After we programmed the .hex file, the program did not run on the board. This program also includes the CSEC function. Please help us solve this problem! Thank you!

Tags (1)
0 Kudos
Reply

640 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

I have no instant answer for this, there may be thousands of reasons. I have to repeat what I already wrote: what can you see in your debugger when you attach to such device?

0 Kudos
Reply

639 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2135417%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECyclone%20LC%20fails%20to%20run%20the%20offline-programmed%20.hex%20with%20CSEC%20enabled%20despite%20successful%20programming%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2135417%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSTRONG%3EThe%20Cyclone%20LC%20offline%20programming%20of%20the%20executable%20.hex%20file%20with%20Cesc%20function%20was%20successful%2C%20but%20it%20cannot%20run.%3C%2FSTRONG%3E%3C%2FP%3E%3CDIV%20class%3D%22%22%3EChip%3A%20FS32K146HAT0MLLR%3CBR%20%2F%3EThe%20.hex%20file%20programming%20has%20been%20confirmed%20successful.%20The%20offline%20programming%20of%20a%20program%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Ewithout%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3ECSEC%20functionality%20works%20fine.%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%20class%3D%22%22%3E%3CSTRONG%3EQuestion%3A%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EAre%20there%20any%20additional%20special%20steps%20required%20for%20offline%20programming%20of%20a%20program%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Ewith%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3ECSEC%20functionality%3F%20Please%20provide%20a%20detailed%20explanation.%20Your%20prompt%20response%20would%20be%20greatly%20appreciated.%20Thank%20you!%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2136520%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20After%20we%20programmed%20the%20.hex%20file%2C%20the%20program%20did%20not%20ru...%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136520%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIf%20S32DS%20is%20used%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32-Design-Studio%2FHow-attach-to-running-program%2Fm-p%2F1030375%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32-Design-Studio%2FHow-attach-to-running-program%2Fm-p%2F1030375%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2136519%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20After%20we%20programmed%20the%20.hex%20file%2C%20the%20program%20did%20not%20ru...%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136519%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20no%20instant%20answer%20for%20this%2C%20there%20may%20be%20thousands%20of%20reasons.%20I%20have%20to%20repeat%20what%20I%20already%20wrote%3A%20what%20can%20you%20see%20in%20your%20debugger%20when%20you%20attach%20to%20such%20device%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2136394%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3EAfter%20we%20programmed%20the%20.hex%20file%2C%20the%20program%20did%20not%20ru...%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136394%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22CZJUPDATE2025_0-1752826332506.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22CZJUPDATE2025_0-1752826332506.jpeg%22%20style%3D%22width%3A%20314px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348236iE2ADCD163796EE72%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22CZJUPDATE2025_0-1752826332506.jpeg%22%20alt%3D%22CZJUPDATE2025_0-1752826332506.jpeg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22CZJUPDATE2025_1-1752826354913.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22CZJUPDATE2025_1-1752826354913.jpeg%22%20style%3D%22width%3A%20225px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348237i09EB6B42A513B6E6%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22CZJUPDATE2025_1-1752826354913.jpeg%22%20alt%3D%22CZJUPDATE2025_1-1752826354913.jpeg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EAfter%20we%20programmed%20the%20.hex%20file%2C%20the%20program%20did%20not%20run%20on%20the%20board.%20This%20program%20also%20includes%20the%20CSEC%20function.%20Please%20help%20us%20solve%20this%20problem!%20Thank%20you!%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2136301%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Cyclone%20LC%20fails%20to%20run%20the%20offline-programmed%20.hex%20with%20CSEC%20enabled%20despite%20successful%20program%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136301%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ENo%20specific%20steps%20are%20needed%20when%20CSEc%20is%20used.%20I%20would%20need%20to%20know%20what%20does%20not%20work%20exactly.%20%22It%20does%20not%20work%22%20is%20not%20sufficient%20description.%20What%20can%20you%20see%20in%20debugger%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2136116%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Cyclone%20LC%20fails%20to%20run%20the%20offline-programmed%20.hex%20with%20CSEC%20enabled%20despite%20successful%20program%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136116%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EOur%20program%20has%20already%20enabled%20the%20partitioning%20command%20and%20successfully%20activated%20the%20CSEC%20function.%20Our%20question%20is%3A%3CBR%20%2F%3EWe%20use%20the%20Cyclone%20LC%20software%20and%20device%20to%20program%20the%20.hex%20file%2C%20but%20the%20board's%20program%20doesn't%20run.%20However%2C%20after%20removing%20the%20code%20segment%20related%20to%20the%20CESC%20function%20from%20the%20source%20program%2C%20the%20program%20can%20run%20on%20the%20board%20after%20programming.%20So%20we%20would%20like%20to%20ask%3A%20are%20there%20any%20additional%20steps%20required%20for%20programming%20the%20program%20with%20the%20CESC%20function%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2135879%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Cyclone%20LC%20fails%20to%20run%20the%20offline-programmed%20.hex%20with%20CSEC%20enabled%20despite%20successful%20program%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2135879%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F251414%22%20target%3D%22_blank%22%3E%40CZJ-UPDATE2025%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20can't%20see%20a%20difference.%20How%20do%20you%20enable%20CSEc%3F%20Is%20the%20Program%20Partition%20command%20executed%20by%20that%20application%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhat%20does%20it%20mean%20%22it%20cannot%20run%22%3F%20Are%20you%20able%20to%20attach%20a%20debugger%3F%20What%20can%20you%20see%20in%20the%20debugger%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3ELukas%3C%2FP%3E%3C%2FLINGO-BODY%3E