Hello,
I would like to use a bootloader on mu twrkit k60.
So I found the AN2295 to develop the bootloader.
I configure the project for the k60 controler but I get error . The kinetis model is basicly design for the K60_100Mhz:
#define KINETIS_MODEL K60_100MHz
But on the main functions identifier are undefined:
bootloader.c
Warning[Pe223]: function "SIM_SOPT2_TPMSRC" declared implicitly C:\Users\Xavier\Desktop\Developpement\kinetis\Bootloader\AN2295_Kinetis_rev5_works\CommonSource\Bootloader\bootloader.c 357
Warning[Pe223]: function "SIM_SOPT2_UART0SRC" declared implicitly C:\Users\Xavier\Desktop\Developpement\kinetis\Bootloader\AN2295_Kinetis_rev5_works\CommonSource\Bootloader\bootloader.c 357
Error[Pe020]: identifier "SIM_SCGC6_FTF_MASK" is undefined C:\Users\Xavier\Desktop\Developpement\kinetis\Bootloader\AN2295_Kinetis_rev5_works\CommonSource\Bootloader\bootloader.c 360
Error[Pe020]: identifier "SIM_SCGC6_TPM0_MASK" is undefined C:\Users\Xavier\Desktop\Developpement\kinetis\Bootloader\AN2295_Kinetis_rev5_works\CommonSource\Bootloader\bootloader.c 360
Error[Pe020]: identifier "SIM_SCGC6_TPM1_MASK" is undefined C:\Users\Xavier\Desktop\Developpement\kinetis\Bootloader\AN2295_Kinetis_rev5_works\CommonSource\Bootloader\bootloader.c 360
When we use K60_100Mhz the MK60DZ10.h is use . But there is no definition of the previous identifier in this file. It is only define in MK60DZ12.h.
Why this append?
Can someone give me a hand?
Best regard
Hello Xavier BUHOT:
Colleague Santiago is right, you are trying to build for an incorrect target. Please confirm two things:
1) There are several build configurations. Make sure that you build the one corresponding to your device:
2) You do not mention the specific tower board you have. Is it TWR-K60D100M or TWR-K60N512? According to this, you have to modify the file called "bootloader_cfg.h". Comment all of the includes except for the one of your board:
Regards!
Jorge Gonzalez
Hello Xabier,
Your problem is that you are using code of Kinetis L devices in a Kinetis K. Registers are different in both devices.
All the errors you are getting are because there is no such field in the registers, and they are not defined in K60D10.h. For example, if you take a look at the first error:
Warning[Pe223]: function "SIM_SOPT2_TPMSRC" declared implicitly C:\Users\Xavier\Desktop\Developpement\kinetis\Bootloader\AN2295_Kinetis_rev5_works\CommonSource\Bootloader\bootloader.c 357
and then you check the register SIM_SOPT2 in the Kinetis K60 100 MHz Reference Manual, you can see that there is no field "TPMSRC":
Regards,
Santiago
Thank you for the response. It seems to be a no-free solution.
I am student and I need to intergrate a solution for my compagny.
I thought that kinetis was a good solution because it has a free bootloader solution?
Is there other solution for creating a bootloader?
Xavier
The uTasker project is free for non-commercial work or can be licensed for commerical applications.
If your work is hobby/educational you can use it freely but support is limited to this or the uTasker forum.
If your work is for a company developing commercial applications it requires a license which costs $242.50 for a product (royalty-free) and includes 3 months personal support by telephone, remote desktop or emal.
In the second case and if your company doesn't allow purchasing licenses for software and support you can search for open source projects that may allow the operations but will not be supported or documented. You can also make a request to Freescale to ask when the software for the particular device/configuration you need will be ready - depending on the schedules you may need to work on other things in the meantime and return to the boot loader at a later date.
Alternatively, you can use the Freescale code as a starting point and invest some time studying it and solving any problems that it presently has - if you need just a serial loader this shouldn't be that complicated.
Regards
Mark
Kinetis: µTasker Kinetis support
For the complete "out-of-the-box" Kinetis experience and faster time to market
Hi Xavier
If a ready made K60 loader (USB, UART, SD card, Ethernet, KBOOT compatible) for the K60 would be of interest these are available at
http://www.utasker.com/kinetis/TWR-K60N512.html
µTasker Kinetis TWR-K60D100M support
Documentation at http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.PDF
Can be built with CW10.x, KDS, IAR, Keil, Crossworks, CooCox, Green Hills, Atollic, GCC, VisualStudio.
Regards
Mark
Kinetis: µTasker Kinetis support
For the complete "out-of-the-box" Kinetis experience and faster time to market