Hello everyone.
At this time I have assembled on a PCB with microcontroller KL03 as shown in the image attached. It is the first time I use this reference and wanted to take advantage of its functionality ROM Bootloader. The problem is that rather than attempt blhost.exe programmed from the interface, I always get an error response.
Using the command:
-p blhost COM68 - get-property 1
the answer is:
ERROR: Initial ping failure with status = 0x0000000a
Have any recommendation that it can continue to allow me to overcome this problem?
thank's !
Hello Ernesto,
I am also interested in this subject, From what I read, you need to set FOPT register accordingly (at runtime)
According to documentation :
ROM-based Bootloader (KL03)
Bootloader is executed out of reset if either of these are true:
− FOPT[BOOTSRC_SEL] = 0b11 or 0b10
FOPT is a Flash Option byte at 0x40D in flash – flash erased state defaults to 0b11.
− BOOTCFG0 pin is enabled and asserted (FOPT[BOOTPIN_OPT] = 0b0)
To achieve that, i think you can refer to How to modify FTFL_FOPT register on Kinetis K10 to change boot options?
Please let me how it goes :smileyhappy:
Regards,
Hi vcanuel,
when type blhost -p COMxx -- get-property 1, I can get the bootloader version from the Kinetis bootloader
then blhost -p COMxx -- flash-erase-all ,it's also OK
but when input: blhost -p COMxx -- write-memory 0 xxxx.bin , it failed.
My question is are there tips to create Application image file? And does blhost only support bin file? Are there window application to update Application besides blhost? I thinks actually customer don't want to use a dos window. Thanks.
Best Regards,
Wenxue
Hi
If you have an unprogrammed device it should enable all boot loader peripherals by default. Make sure that you connect using PTB1 as LPUART0_TX and PTB2 as LPUART0_RX.
Looking at your circuit I suspect that you will need to reverse the connections that you have.
Regards
Mark
Hi Mark,
Thank you very much for your answer. Indeed the device is new.
On the pins. They are as you say.
B1 -> TXD
B2 -> RXD
What happens is that the names in the schematic refer to TXD and RXD of FT231XQ.
You let me clear that the device should connect well to the bootloader. I'll keep trying, although this probe everything in my power.
The pin PTB5_NMI_b should be in any state in particular to use bootloader mode?