LPC546 boot to DFU

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

LPC546 boot to DFU

1,815 Views
dinartal
Contributor III

Hello. I need to boot to hardware DFU USB0 from user app.

I found solution here: https://community.nxp.com/t5/LPC-Microcontrollers/REinvoke-ISP-IAP-with-LPC54608/m-p/987677

Problem is when i try to jump when USB cable is detached. Look:

Reinvoke.png

 

i tried to launch IAP_ReinvokeISP(8, &s); inside loop, but it always return 10228. I want to launch dfu after cable attached, if it can`t before. So now i can launch dfu only if cable attached correctly.

Labels (1)
0 Kudos
Reply
6 Replies

1,705 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @dinartal 

Many thanks for your patience, I just  received the below feedback:

If you give the wrong parameter on Reinvoke ISP command, you should expect ERR_ISP_REINVOKE_ISP_CONFIG error.

If you give a the correct parameter while USBx is not connected or H/W is not ready, regardless you may get an error status or not, it's irrelevant, USBx may or may not work reliably when you issue the IAP call first and then connect.

Thus , the only  correct sequence is, connect USBx first and make sure USBx works before making reinvoke ISP command to USBx.

All the best, 

Diego.

0 Kudos
Reply

1,793 Views
dinartal
Contributor III

Hello @diego_charles 

i am using hardware dfu located in ROM.

it is similar if you boot with pressed ISP0 and ISP2 buttons on dev board.

i don`t know how to check it`s version

0 Kudos
Reply

1,778 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @dinartal 

Thanks for your reply!

We could check the ROM bootloader version  by calling the function IAP_ReadCodeBootVersion()

I will come back to you later with further feedback on your issue.

Diego .

 

 

0 Kudos
Reply

1,773 Views
dinartal
Contributor III

It looks like minor version is 0 and major is 4865

4865.png

1,717 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @dinartal 

Many thanks for your reply ,

I just wanted to provide an update, letting you know that   we are still checking this with our AE team.

I will let you know as soon we have more news. 

 

Sorry for any inconvenience. 

Diego.

0 Kudos
Reply

1,804 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hello @dinartal 

Hope that you are doing well!

I think that I have replicated your error with my LPCxpresso54608  :

  • If I try reinvoke  using USB0  , without a cable attached,  I get an 10228 (Reinvoke ISP not successful ).
  • On the other hand if I reinvoke while having the cable attached, I am able to perform DFU.

 

Could you please  provide me the version of the bootloader that your LPC54618 has?

diego_charles_0-1627429316256.png

I am currently checking this, and I will get back to you.

All the best 

Diego

 

0 Kudos
Reply