Flash S19 file in standalone with MCULink probe

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Flash S19 file in standalone with MCULink probe

1,623 次查看
arnogir
Senior Contributor II

Hello,

I'm using MKL33Z256, with MCUXpresso v11.6 and MCUlink

I have an S19 file which is a concatener of a bootloader + Appli + Serial Number

I want flash this S19 file. But with solution give here:

https://mcuoneclipse.com/2020/12/05/standalone-and-command-line-programmer-with-mcuxpresso/

I can only flash axf file and bin file. No S19 File.

I also try with LinkServer:

https://mcuoneclipse.com/2023/05/14/linkserver-for-microcontrollers/

But I got error to found my probe:

 

C:\nxp\LinkServer_1.1.16>LinkServer probes
ERROR: Failed to boot probes
ERRMSG: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x85 in position 38: invalid start byte
CRITICAL: Critical error
ERRMSG: RuntimeError: No active exception to reraise

 

 

And then, is LinkServer can flash S19 file?

 

I need a solution to flash this S19 file in standalone (maybe have a conversion s19-> axf and use first solution?) or directly have a solution to flash in standalone the S19 file...

Thank

0 项奖励
回复
5 回复数

1,558 次查看
arnogir
Senior Contributor II

Ok,

This work,

 

Is any solution to be independant of the workspace?

I just wnat flash a binary file into a knowed target! ?

 

LinkeServer seems good but I get error

0 项奖励
回复

1,444 次查看
ErichStyger
Specialist I

If you don't want to use the IDE, why not just using the LinkServer from the command line?

See:

https://mcuoneclipse.com/2023/05/14/linkserver-for-microcontrollers/

0 项奖励
回复

1,615 次查看
ErichStyger
Specialist I

As shown in https://mcuoneclipse.com/2020/12/05/standalone-and-command-line-programmer-with-mcuxpresso/, the LinkServer is only able to program .axf and .bin files.

But you can easily convert .s19 into .bin, I have you covered here:

https://mcuoneclipse.com/2014/08/03/converting-s19-files-into-binary-files-with-gnu-objcopy/

I hope this helps,

Erich

0 项奖励
回复

1,556 次查看
arnogir
Senior Contributor II

Ok,

Sorry, after test, solution work only if launched from MCUXpresso.

 

If launch from .bat, It block:

 

Nc: Inspected v.2 On chip Kinetis Flash memory module FTFA_1K.cfx
Nc: Image 'Kinetis SemiGeneric Sep 19 2022 09:10:55'
Nc: Opening flash driver FTFA_1K.cfx
Nc: Sending VECTRESET to run flash driver
Nc: Flash variant 'KL33 FTFA Generic 1K' detected (256KB = 256*1K at 0x0)
Nc: Closing flash driver FTFA_1K.cfx
Nc: Inspected v.2 On chip Kinetis Flash memory module FTFA_1K.cfx
Nc: Image 'Kinetis SemiGeneric Sep 19 2022 09:10:55'
Nc: Opening flash driver FTFA_1K.cfx
Nc: Sending VECTRESET to run flash driver
Nc: Flash variant 'KL33 FTFA Generic 1K' detected (256KB = 256*1K at 0x0)
Nc: Closing flash driver FTFA_1K.cfx
Nt: Loading 'outFile.bin' Binary 0x00000000 len 0x3FFFD
Nc: Opening flash driver FTFA_1K.cfx
Nc: Sending VECTRESET to run flash driver
Nc: Flash variant 'KL33 FTFA Generic 1K' detected (256KB = 256*1K at 0x0)

 

 

0 项奖励
回复

1,560 次查看
arnogir
Senior Contributor II

Hello Erich

 

Sorry for the late, I haven't received mail notification following your reply..

I will test that and inform you.

Thank

0 项奖励
回复