C implementation blhost protocol (for use in MCU)

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

C implementation blhost protocol (for use in MCU)

553 Views
dav1
Contributor V

Is there a compact implementation in C available for the protocol blhost uses to communicate with the rom-bootloader of MCX mcu's?

essentials to basically run this on another LPC/MCX -> UART -> MCX (in isp mode)

blhost -u -- flash-image your_app.bin erase

 

Labels (2)
Tags (2)
0 Kudos
Reply
3 Replies

432 Views
dav1
Contributor V

would be great if NXP can support here.

the source-code is most likely available in C as part of the mcuxpresso gui tools for flashing

0 Kudos
Reply

525 Views
Celeste_Liu
NXP Employee
NXP Employee

Hello @dav1 ,

Thanks for your post. Sorry, but we don’t have any C implementation of the protocol that blhost uses in MCU. 
I’m afraid you would need to implement it yourself.

Have a nice day.

BR

Celeste

 

0 Kudos
Reply

431 Views
dav1
Contributor V
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2315641%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EC%20implementation%20blhost%20protocol%20(for%20use%20in%20MCU)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2315641%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIs%20there%20a%20compact%20implementation%20in%20C%20available%20for%20the%20protocol%20blhost%20uses%20to%20communicate%20with%20the%20rom-bootloader%20of%20MCX%20mcu's%3F%3C%2FP%3E%3CP%3Eessentials%20to%20basically%20run%20this%20on%20another%20LPC%2FMCX%20-%26gt%3B%20UART%20-%26gt%3B%20MCX%20(in%20isp%20mode)%3C%2FP%3E%3CPRE%3Eblhost%20-u%20--%20flash-image%20your_app.bin%20erase%3C%2FPRE%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2315641%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EBoot%20ROM%7CBooting%20%7C%20Flash%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHW-Open-Source%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2315994%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20C%20implementation%20blhost%20protocol%20(for%20use%20in%20MCU)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2315994%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%2F83226%22%20target%3D%22_blank%22%3E%40dav1%3C%2FA%3E%26nbsp%3B%EF%BC%8C%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20post.%26nbsp%3BSorry%2C%20but%20we%20don%E2%80%99t%20have%20any%20C%20implementation%20of%20the%20protocol%20that%20blhost%20uses%20in%20MCU.%26nbsp%3B%3CBR%20%2F%3EI%E2%80%99m%20afraid%20you%20would%20need%20to%20implement%20it%20yourself.%3C%2FP%3E%0A%3CP%3EHave%20a%20nice%20day.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3ECeleste%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2326429%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20C%20implementation%20blhost%20protocol%20(for%20use%20in%20MCU)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2326429%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Enote%20that%20you%20do%20this%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-mcuxpresso%2Frblhost%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-mcuxpresso%2Frblhost%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2326428%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20C%20implementation%20blhost%20protocol%20(for%20use%20in%20MCU)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2326428%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ewould%20be%20great%20if%20NXP%20can%20support%20here.%3C%2FP%3E%3CP%3Ethe%20source-code%20is%20most%20likely%20available%20in%20C%20as%20part%20of%20the%20mcuxpresso%20gui%20tools%20for%20flashing%3C%2FP%3E%3C%2FLINGO-BODY%3E