Good morning all,
I specifically write to ufedor on NXP Kinetis support engineer suggestion.
I opened a ticket already: "Case:00242755:We bought a LS1012ARDB board and I bricked to OpenSDA firmware/bootloader on the K22 M"
Situation: we bought 2 brand new LS1012ARDB-PC boards and connected them to WIN10 hosts (ver 1909 so recent).
Problem: both RDBs got their K22 based CMSIS DAP bootloader bricked after having worked for a few days like a charm with CodeWarrior IDE.
I now try since ~1 week to reflash a new bootloader into the K22 of this QorIQ platform.
Of course I first and naturally started with the Kinetis folks who provide binaries here
OpenSDA Serial and Debug Adapter | NXP
But this showed being the wrong path - QorIQ team also has it's own bootloaders and OpenSDA firmware running on also the K2x Kinetis familly. It's true: Kinetis MCUs and related bootloader are close and very similar - but that does not work this way as we all know, I was aware about this but was looking for some clear answer.
I also managed to get full DAPLink sources to rebuild my bootloader from scratch and flashing it using our MDK Pro IDE latest version + UlinkPro probes: DAPLink/DEVELOPERS-GUIDE.md at master · ARMmbed/DAPLink · GitHub
Both approaches described above give same result: either K22 does not boot correctly or boots but USB device is not recognized by my WIN10 host. Remind: my goal is to first get BOOTLOADER MSC back so I can then simply drop into it the new DAPLink application binary - so far my bootloader remains silent. I am now convinced I use both wrong binaries and / or sources - I must get those not from Kinetis folks but from QorIQ folks here, agree.
So I was given from Kinetis support those links:
https://community.nxp.com/thread/483925?commentID=1054604#comment-1054604
https://community.nxp.com/message/974928
Of course I read those posts and also directly tried the k22fx512_if_mbed.bin.zip that was provided by ufedor.
This comes as a BIN I first had to transform into a HEX so my MDK Pro + UlinkPro setup is able to flash it into the K22 target using latest srec_cat tool:
srec_cat.exe k22fx512_if_mbed.bin -binary -o k22fx512_if_mbed.hex -intel
My KEIL uVision project has correct packages and all is configured well, flash process terminates without error (checked the logs too). Confirm my K22 MCU is exactly this one: MK22FX512AVLH12
So here I am, what do I wrong? Is there a more recent binary I could get from QorIQ team that will not brick when connecting to WIN10 host? Our company only uses WIN10, I cannot change that. May sources so I rebuild the bootloader and OpenSDA or DAPLink on top as well? I saw on this link DAPLink/DEVELOPERS-GUIDE.md at master · ARMmbed/DAPLink · GitHub that the projects.yaml file does not cover the very MCU used here but only k20dx_frdmk22f_if.
Thanks for helping. If we succeed in this I can give a go here to use this platform for an upcoming project. If not I may look for other alternatives, we cannot use bricked boards for development of course. Just saying that so you understand my reality and decision making I've to perform based on support feedback and help I get.
Thanks much & regards,
Christophe
Solved! Go to Solution.
I consider this question as resolved. To summarize: ufedor provided my also the K22 bootloader BIN I successfully was able to flash onto K22 using KEIL MDK Pro + ULINK Pro JTAG probe. Fact I've to transform BIN into HEX does not brake it. Once you flashed the bootloader of the K22, then indeed you can drop OpenSDA firmware on top simply into your host BOOTLOADER MSC that shall appear after first step (being reflashing K22 bootloader).
Maybe ufedor is OK to share the K22 bootloader BIN as well here? So far we only got the application binary.
File names are
Thx Christophe
I consider this question as resolved. To summarize: ufedor provided my also the K22 bootloader BIN I successfully was able to flash onto K22 using KEIL MDK Pro + ULINK Pro JTAG probe. Fact I've to transform BIN into HEX does not brake it. Once you flashed the bootloader of the K22, then indeed you can drop OpenSDA firmware on top simply into your host BOOTLOADER MSC that shall appear after first step (being reflashing K22 bootloader).
Maybe ufedor is OK to share the K22 bootloader BIN as well here? So far we only got the application binary.
File names are
Thx Christophe
Hi ufedor,
Thanks so much for following Christophe SCHMID 's question, he has created the case and which is assigned to the kinetis box in the previous time, but I am just the NXP kinetis engieer, and not familiar with the QorIQ board, because the LS1012ARDB onboard K22 opensda is still related to the LS1012, then I don't have the related firmware and never test that board.
So, please help our customer to get out of it, it seems he still can't make the LS1012ARDB on-board k22 opensda work, please help him to check, whether it is the opensda firmware problems or the tool and operation step problems, thank you for your help!
Best Regards,
Kerry
Hello ufedor,
Thanks for the files. My point here is I even don't pass §3 means: I don't have any MSD volume labeled "BOOTLOADER" showing up. Therefore I am blocked, I need first to bring back BOOTLOADER, after that will (hopefully) work I can then indeed drop the BIN above into this volume. Agree? And: can you help me unbrinck the bootloader itself?
Thx Christophe
Please confirm that the following was performed:
This is the workaround we have confirmed to fix the mbed issue on Win10 PC's:
- Go to the "Start" option on the PC and type the command "Services"
- Than you should see the following "Services" window open
- Select the "Storage Services" and on the left-hand side of the window click the "Stop the service"
Please confirm that the following steps:
1) Switch on power to LS board.
2) Press and hold Reset button
3) Plug the PC USB cable into the CSAM USB connector on the board.
What is the D22 LED (MBED) state after 3)?
Hi,
I did the "Storage Services" stop already and it worked in the past. So I don't think this is the problem now. I also retried to renable, disable it again, nothing changes, still the same: debug probe is dead.
Doing your three steps: LED D22 is and remains OFF, nothing happens even not a single blink, also after releasing the reset button once connected the USB cable into the CSAM USB.
I flashed the BIN you provided me already: k22fx512_if_mbed.hex (had to transform it BIN-->HEX first using srec_cat.exe).
> I flashed the BIN you provided me already:
> k22fx512_if_mbed.hex (had to transform it BIN-->HEX first using srec_cat.exe).
Please read section 4 in the provided document to understand that the image should be copied into 'BOOTLOADER' and not transformed to HEX and programmed.
There is a missunderstanding here:
Conclusion: I need another binary, sources that brings me first back my BOOTLOADER, then I can can indeed drop k22fx512_if_mbed.bin into BOOTLOADER, understood that.
Do we agree on that? Thx Christophe
Quick question: is the bootloader code supposed to be ROMed on the K22 and not erasable? Or can we even update it? It's possible I also erased the ROM (had a pop-up in the past in MDK Pro asking me if I want to unlock the ROM).
One thing is sure: my K22 MCU is empty here, zero code, zero move, kapputt...
I'm trying to figure out how the board can be recovered.
Nobody erased the K22 bootloader before - so there is no fast solution.
Ok great, now we've a common understanding :smileyhappy:
Hope you can find a way to recover the K22 BL, since with the KEIL + UlinkPro method it's very easy to erase it all.
I may did this whereas I was not supposed to. Was also start thinking about how to unlock the K22 and reprog it. Now you're the expert here for this then I first wait on your answer, thanks much to help me, really.
Even i'm facing the same issue that i'm not finding any BOOTLOADER drive on my WIN10. I followed the similar steps as @christophe_schm. I submitted a ticket as well but i didn't got any reply.
@ufedor can you please help me to get BOOTLOADER and if their is any firmware in order to get BOOTLOADER drive on PC please do provide.
Note: The MCU that i have is MK20DX128VFM5 K20