linkserver loading binary

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

linkserver loading binary

Jump to solution
709 Views
yosri_c
Contributor III

Greetings NXP support 

 

we're trying to automate our boards set up (imx RT1176) , and we are using Linkserver cmd with MCU_LINK in a python script to flash and load binaries in Flash NOR , and  we are using a minimal Flashloader to burn couple of fuses and for some specific  hw initialization , for the moment we are done  with loading binaries in Flash , but we couldn't figure out how to load and run flashloader into OCRAM1 using linkserver 

C:/nxp/LinkServer_24.12.21/LinkServer.exe flash MIMXRT1176:MIMXRT1170-EVK load combined_RAW_image.bin:0x60000000   (  this is for flash NOR  )

anything might help ?

 

Kind regards 

 

 

0 Kudos
Reply
1 Solution
606 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @yosri_c ,

This project maybe helpful for you: https://www.nxpic.org.cn/module/forum/thread-620172-1-1.html

It makes the flashloader as a bin array and loads it into RAM and jumps in the main function.That is, this program can be applied to any debugger.

Best regards,
Gavin

View solution in original post

4 Replies
607 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @yosri_c ,

This project maybe helpful for you: https://www.nxpic.org.cn/module/forum/thread-620172-1-1.html

It makes the flashloader as a bin array and loads it into RAM and jumps in the main function.That is, this program can be applied to any debugger.

Best regards,
Gavin

537 Views
yosri_c
Contributor III
Thank you Gavin
0 Kudos
Reply
702 Views
tejara7613
Contributor I

Hello!

To load and run your minimal Flashloader into OCRAM1 on the i.MX RT1176 using LinkServer, you'll need a two-step process instead of your current flash command. First, use LinkServer.exe flash MIMXRT1176:MIMXRT1170-EVK load your_flashloader.bin:0x20200000 to transfer the binary to OCRAM1 (confirming the exact address). Then, execute it with LinkServer.exe flash MIMXRT1176:MIMXRT1170-EVK go 0x20200000. Ensure your flashloader binary is designed for direct execution from RAM.

0 Kudos
Reply
678 Views
yosri_c
Contributor III
i think this command would try to load the binary into flash not ram ..
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2130027%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Elinkserver%20loading%20binary%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2130027%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EGreetings%20NXP%20support%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ewe're%20trying%20to%20automate%20our%20boards%20set%20up%20(imx%20RT1176)%20%2C%20and%20we%20are%20using%20%3CSTRONG%3ELinkserver%3C%2FSTRONG%3E%20%3CSTRONG%3Ecmd%3C%2FSTRONG%3E%20with%20%3CSTRONG%3EMCU_LINK%3C%2FSTRONG%3E%20in%20a%20python%20script%20to%20flash%20and%20load%20binaries%20in%20Flash%20NOR%20%2C%20and%26nbsp%3B%20we%20are%20using%20a%20minimal%20%3CSTRONG%3EFlashloader%3C%2FSTRONG%3E%20to%20burn%20couple%20of%20fuses%20and%20for%20some%20specific%26nbsp%3B%20hw%20initialization%20%2C%20for%20the%20moment%20we%20are%20done%26nbsp%3B%20with%20loading%20binaries%20in%20Flash%20%2C%20but%20we%20couldn't%20figure%20out%20how%20to%20load%20and%20run%20flashloader%20into%20%3CSTRONG%3EOCRAM1%3C%2FSTRONG%3E%20using%20linkserver%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EC%3A%2Fnxp%2FLinkServer_24.12.21%2FLinkServer.exe%20flash%20MIMXRT1176%3AMIMXRT1170-EVK%20load%20combined_RAW_image.bin%3A0x60000000%26nbsp%3B%3C%2FSTRONG%3E%20%26nbsp%3B(%26nbsp%3B%20this%20is%20for%20flash%20NOR%26nbsp%3B%20)%3C%2FP%3E%3CP%3Eanything%20might%20help%20%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EKind%20regards%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2143465%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20linkserver%20loading%20binary%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2143465%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThank%20you%20Gavin%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2137135%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20linkserver%20loading%20binary%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2137135%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%2F232947%22%20target%3D%22_blank%22%3E%40yosri_c%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThis%20project%20maybe%20helpful%20for%20you%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxpic.org.cn%2Fmodule%2Fforum%2Fthread-620172-1-1.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxpic.org.cn%2Fmodule%2Fforum%2Fthread-620172-1-1.html%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EIt%20makes%20the%20flashloader%20as%20a%20bin%20array%20and%20loads%20it%20into%20RAM%20and%20jumps%20in%20the%20main%20function.That%20is%2C%20this%20program%20can%20be%20applied%20to%20any%20debugger.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EGavin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2131624%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20linkserver%20loading%20binary%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2131624%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei%20think%20this%20command%20would%20try%20to%20load%20the%20binary%20into%20flash%20not%20ram%20..%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2130063%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20linkserver%20loading%20binary%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2130063%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello!%3C%2FP%3E%3CP%3ETo%20load%20and%20run%20your%20minimal%20Flashloader%20into%20OCRAM1%20on%20the%20i.MX%20RT1176%20using%20LinkServer%2C%20you'll%20need%20a%20two-step%20process%20instead%20of%20your%20current%20flash%20command.%20First%2C%20use%20LinkServer.exe%20flash%20MIMXRT1176%3AMIMXRT1170-EVK%20load%20your_flashloader.bin%3A0x20200000%20to%20transfer%20the%20binary%20to%20OCRAM1%20(confirming%20the%20exact%20address).%20Then%2C%20execute%20it%20with%20LinkServer.exe%20flash%20MIMXRT1176%3AMIMXRT1170-EVK%20go%200x20200000.%20Ensure%20your%20flashloader%20binary%20is%20designed%20for%20direct%20execution%20from%20RAM.%3C%2FP%3E%3C%2FLINGO-BODY%3E