flashing image for LPCXpresso54S018M via BLHost.exe

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

flashing image for LPCXpresso54S018M via BLHost.exe

Jump to solution
1,271 Views
belmontbob59
Contributor IV

I downloaded SDK 2.5.0 with MCUBoot component for KEIL IDE. I am running flashloader  on my target dev board. I can not flash my example application via blhost.exe

I get the following error

blhost.exe -u 0x1FC9,0x01A2 -- flash-image keyboard2mouse_bm.srec erase
Inject command 'flash-image'
Response status = 10205 (0x27dd) kStatusMemoryNotConfigured

the MCU (54S018M) is using internal flash (4M) within the MCU. Why is flashloader unable to configure the MCU's internal flash ? What command should I send in order to flash my image ?

0 Kudos
1 Solution
1,053 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello bob belmont,

Please refer to "Getting Started with LPC540xx-LPC54S0xx Flashloader User's Guide.pdf", it describe the steps in detail. I attached it for you.

I also test on my side, it can work well, please see my log:

C:\Users\nxp\Desktop\SDK_2.5.0_LPC54S018M (1)\middleware\mcu-boot\bin\Tools\blhost\win>blhost -u 0x1fc9,0x01a2 -- get-property 1
Inject command 'get-property'
Response status = 0 (0x0) Success.
Response word 1 = 1258424064 (0x4b020700)
Current Version = K2.7.0

C:\Users\nxp\Desktop\SDK_2.5.0_LPC54S018M (1)\middleware\mcu-boot\bin\Tools\blhost\win>blhost -u 0x1fc9,0x01a2 -- get-property 12
Inject command 'get-property'
Response status = 0 (0x0) Success.
Response word 1 = 0 (0x0)
Response word 2 = 0 (0x0)
Response word 3 = 536870912 (0x20000000)
Response word 4 = 536923447 (0x2000cd37)
Reserved Regions =
        Region0: 0x20000000-0x2000CD37 (51.305 KB)


C:\Users\nxp\Desktop\SDK_2.5.0_LPC54S018M (1)\middleware\mcu-boot\bin\Tools\blhost\win>blhost -u 0x1fc9,0x01a2 -- fill-memory 0x2000d000 4 0xc0000004
Inject command 'fill-memory'
Successful generic response to command 'fill-memory'
Response status = 0 (0x0) Success.

C:\Users\nxp\Desktop\SDK_2.5.0_LPC54S018M (1)\middleware\mcu-boot\bin\Tools\blhost\win>blhost -u 0x1fc9,0x01a2 -- configure-memory 0xa 0x2000d000
Inject command 'configure-memory'
Successful generic response to command 'configure-memory'
Response status = 0 (0x0) Success.

C:\Users\nxp\Desktop\SDK_2.5.0_LPC54S018M (1)\middleware\mcu-boot\bin\Tools\blhost\win>blhost -u 0x1fc9,0x01a2 -- get-property 25 0xa
Inject command 'get-property'
Response status = 0 (0x0) Success.
Response word 1 = 15 (0xf)
Response word 2 = 268435456 (0x10000000)
Response word 3 = 4096 (0x1000)
Response word 4 = 256 (0x100)
Response word 5 = 4096 (0x1000)
Response word 6 = 0 (0x0)
UNKNOWN Attributes: Start Address = 0x10000000  Total Size = 4 MB  Page Size = 256 bytes  Sector Size = 4 KB

C:\Users\nxp\Desktop\SDK_2.5.0_LPC54S018M (1)\middleware\mcu-boot\bin\Tools\blhost\win>blhost -u 0x1fc9,0x01a2 -t 100000 -- flash-erase-region 0x10000000 0x100000
Inject command 'flash-erase-region'
Successful generic response to command 'flash-erase-region'
Response status = 0 (0x0) Success.

C:\Users\nxp\Desktop\SDK_2.5.0_LPC54S018M (1)\middleware\mcu-boot\bin\Tools\blhost\win>blhost -u 0x1fc9,0x01a2 -t 100000 -- write-memory 0x10000000 lpcxpresso54s018m_led_blinky.bin
Inject command 'write-memory'
Preparing to send 16196 (0x3f44) bytes to the target.
Successful generic response to command 'write-memory'
(1/1)100% Completed!
Successful generic response to command 'write-memory'
Response status = 0 (0x0) Success.
Wrote 16196 of 16196 bytes.

C:\Users\nxp\Desktop\SDK_2.5.0_LPC54S018M (1)\middleware\mcu-boot\bin\Tools\blhost\win>

Re- power the board, led blink.


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
4 Replies
1,054 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello bob belmont,

Please refer to "Getting Started with LPC540xx-LPC54S0xx Flashloader User's Guide.pdf", it describe the steps in detail. I attached it for you.

I also test on my side, it can work well, please see my log:

C:\Users\nxp\Desktop\SDK_2.5.0_LPC54S018M (1)\middleware\mcu-boot\bin\Tools\blhost\win>blhost -u 0x1fc9,0x01a2 -- get-property 1
Inject command 'get-property'
Response status = 0 (0x0) Success.
Response word 1 = 1258424064 (0x4b020700)
Current Version = K2.7.0

C:\Users\nxp\Desktop\SDK_2.5.0_LPC54S018M (1)\middleware\mcu-boot\bin\Tools\blhost\win>blhost -u 0x1fc9,0x01a2 -- get-property 12
Inject command 'get-property'
Response status = 0 (0x0) Success.
Response word 1 = 0 (0x0)
Response word 2 = 0 (0x0)
Response word 3 = 536870912 (0x20000000)
Response word 4 = 536923447 (0x2000cd37)
Reserved Regions =
        Region0: 0x20000000-0x2000CD37 (51.305 KB)


C:\Users\nxp\Desktop\SDK_2.5.0_LPC54S018M (1)\middleware\mcu-boot\bin\Tools\blhost\win>blhost -u 0x1fc9,0x01a2 -- fill-memory 0x2000d000 4 0xc0000004
Inject command 'fill-memory'
Successful generic response to command 'fill-memory'
Response status = 0 (0x0) Success.

C:\Users\nxp\Desktop\SDK_2.5.0_LPC54S018M (1)\middleware\mcu-boot\bin\Tools\blhost\win>blhost -u 0x1fc9,0x01a2 -- configure-memory 0xa 0x2000d000
Inject command 'configure-memory'
Successful generic response to command 'configure-memory'
Response status = 0 (0x0) Success.

C:\Users\nxp\Desktop\SDK_2.5.0_LPC54S018M (1)\middleware\mcu-boot\bin\Tools\blhost\win>blhost -u 0x1fc9,0x01a2 -- get-property 25 0xa
Inject command 'get-property'
Response status = 0 (0x0) Success.
Response word 1 = 15 (0xf)
Response word 2 = 268435456 (0x10000000)
Response word 3 = 4096 (0x1000)
Response word 4 = 256 (0x100)
Response word 5 = 4096 (0x1000)
Response word 6 = 0 (0x0)
UNKNOWN Attributes: Start Address = 0x10000000  Total Size = 4 MB  Page Size = 256 bytes  Sector Size = 4 KB

C:\Users\nxp\Desktop\SDK_2.5.0_LPC54S018M (1)\middleware\mcu-boot\bin\Tools\blhost\win>blhost -u 0x1fc9,0x01a2 -t 100000 -- flash-erase-region 0x10000000 0x100000
Inject command 'flash-erase-region'
Successful generic response to command 'flash-erase-region'
Response status = 0 (0x0) Success.

C:\Users\nxp\Desktop\SDK_2.5.0_LPC54S018M (1)\middleware\mcu-boot\bin\Tools\blhost\win>blhost -u 0x1fc9,0x01a2 -t 100000 -- write-memory 0x10000000 lpcxpresso54s018m_led_blinky.bin
Inject command 'write-memory'
Preparing to send 16196 (0x3f44) bytes to the target.
Successful generic response to command 'write-memory'
(1/1)100% Completed!
Successful generic response to command 'write-memory'
Response status = 0 (0x0) Success.
Wrote 16196 of 16196 bytes.

C:\Users\nxp\Desktop\SDK_2.5.0_LPC54S018M (1)\middleware\mcu-boot\bin\Tools\blhost\win>

Re- power the board, led blink.


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
1,053 Views
belmontbob59
Contributor IV

Thank you Alice, I can not find "Getting Started with LPC540xx-LPC54S0xx Flashloader User's Guide.pdf" that you mentioned was attached to this case. Could you please attach it to this case? thank you kindly

0 Kudos
1,053 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello bob,

How about this time ?

BR

Alice

0 Kudos
1,053 Views
belmontbob59
Contributor IV

thank you !

0 Kudos