Hi!
I’m using bootloader ROM of the Kinetis KL27Z to flash my application into the device through “blhost” using command line.
I need to change the “Bootloader Configuration Area (BCA)” and the FTFA_FOPT register to configure the initialization of the microcontroller and disable NMI pin option during the system reset (In my hardware system I don’t have any access to NMI pin). Can I change these configurations using the “blhost” application or I need to set these configurations on my application source code ? (I’m using de KSDK 1.3 with Processor Expert).
Do is available an option where the device enter in the bootloader mode when connected and after a defined time run the application on flash?
I would like to change the Manufacturer and Product strings of “Kinetis Bootloader”. Can I change it using the proper “blhost.exe”, loading a “MyConfig.dat” for example? (I’m using the bootloader in the HID USB mode).
If all the previous questions are possible, how can I configure my main application to don’t overwrite the values of “FTFA_FOPT” register?
Thanks!
已解决! 转到解答。
Hi Andre,
1. First, I configured the microcontroller to start always in the bootloader mode, changing the configurations of FTFA-FOPT on the Flash. After this I need to send a command to execute the application wrote in flash memory, for example the command “-- execute <address> <arg> <stackpointer>”. Is it possible? For KL27Z which “address”, “arg” and “stackpointer” I use to run my application situated on flash?
Yes, it can make it.
Right now, we have only provided the demo with the IAR.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Andre,
First of all, I'd highly recommend that you can use the write-memory command to modify the BCA and FTFA_FOPT register.
1. Do is available an option where the device enter in the bootloader mode when connected and after a defined time run the application on flash?
Definitely, it can make it. In the application code, it will reset after execute the software reset, then the MCU boots from the ROM.
2. I would like to change the Manufacturer and Product strings of “Kinetis Bootloader”. Can I change it using the proper “blhost.exe”, loading a “MyConfig.dat” for example? (I’m using the bootloader in the HID USB mode)
I'm not clear with the Manufacturer and Product strings, I will appreciate if you can clarify it.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
In my case, I need to control the main application code by the bootloader commands. In another words, how I don’t have the possibility to access the NMI pin, then I think in this way:
First, I configured the microcontroller to start always in the bootloader mode, changing the configurations of FTFA-FOPT on the Flash. After this I need to send a command to execute the application wrote in flash memory, for example the command “-- execute <address> <arg> <stackpointer>”. Is it possible? For KL27Z which “address”, “arg” and “stackpointer” I use to run my application situated on flash?
The “Manufacturer and Product Strings” are these strings that appear on the computer when it is connected or enumerated, like the image below:
In the “KBTLDR120RM.pdf” document, (Kinetis Bootloader v1.2.0 Reference Manual), page 62, we have the idea of the offset address where the strings are situated, like the part of document shown below. In “FSL_Kinetis_Bootloader_1_2_0\apps\led_demo” we have just examples to IAR, and it configures the timeout of Kinetis Bootloader in the Startup configurations. There are available examples for KSDK 1.3 and KDS 3.1?
Thanks!
Hi Andre,
1. First, I configured the microcontroller to start always in the bootloader mode, changing the configurations of FTFA-FOPT on the Flash. After this I need to send a command to execute the application wrote in flash memory, for example the command “-- execute <address> <arg> <stackpointer>”. Is it possible? For KL27Z which “address”, “arg” and “stackpointer” I use to run my application situated on flash?
Yes, it can make it.
Right now, we have only provided the demo with the IAR.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------