Okay, here is what I did.
1. I created a project and selected the correct target. (KL25Z128)
2. I copied all the .h and .c files from the AN2295_Kinetis/.project, but replaced K60 header with the KL25 header and the bootloader_cfg.h with the AN2295_FRDM_KL25Z_crg.h.
3. I had errors everywhere so I made sure the variables that I won't need from K60 are commented out.
I am running into errors on the bootloader.c and the flash_kinetis.c files. Below are my errors. They seem to be spawning from the lines with __declspec because the parameters do exist in bootloader.h and all those parameters are declared after __declspec. I'm using the same files from AN2295_Kinetis/.project but if you need me to attach anything, I will.
What am I doing wrong?
Description Path Resource Location Type
declaration for parameter 'address' but no such parameter /KL25Z_Boot/Sources/bootloader bootloader.c line 88 C/C++ Problem
declaration for parameter 'bootloaderIdent' but no such parameter /KL25Z_Boot/Sources/bootloader bootloader.c line 105 C/C++ Problem
declaration for parameter 'crc_res' but no such parameter /KL25Z_Boot/Sources/bootloader bootloader.c line 99 C/C++ Problem
declaration for parameter 'enableBootMode' but no such parameter /KL25Z_Boot/Sources/bootloader bootloader.c line 101 C/C++ Problem
declaration for parameter 'ExecuteOnStackStart' but no such parameter /KL25Z_Boot/Sources/flash flash_kinetis.c line 31 C/C++ Problem
declaration for parameter 'FlashConfig_t' but no such parameter /KL25Z_Boot/Sources/bootloader bootloader.c line 78 C/C++ Problem
declaration for parameter 'FTFL_FlashCommandSequence' but no such parameter /KL25Z_Boot/Sources/flash flash_kinetis.c line 29 C/C++ Problem
declaration for parameter 'length' but no such parameter /KL25Z_Boot/Sources/bootloader bootloader.c line 93 C/C++ Problem
declaration for parameter 'programbuffer' but no such parameter /KL25Z_Boot/Sources/flash flash_kinetis.c line 25 C/C++ Problem
declaration for parameter 'result' but no such parameter declaration for parameter 'i' but no such parameter /KL25Z_Boot/Sources/bootloader bootloader.c line 95 C/C++ Problem
declaration for parameter 'rom_vector' but no such parameter /KL25Z_Boot/Sources/bootloader bootloader.c line 49 C/C++ Problem
declaration for parameter 'srs_backup' but no such parameter /KL25Z_Boot/Sources/bootloader bootloader.c line 97 C/C++ Problem
declaration for parameter 'timeout_cnt' but no such parameter /KL25Z_Boot/Sources/bootloader bootloader.c line 103 C/C++ Problem
declaration for parameter 'tmp_transpone' but no such parameter /KL25Z_Boot/Sources/bootloader bootloader.c line 89 C/C++ Problem
declaration for parameter 'write_buffer' but no such parameter /KL25Z_Boot/Sources/bootloader bootloader.c line 91 C/C++ Problem
expected '{' at end of input /KL25Z_Boot/Sources/bootloader bootloader.c line 639 C/C++ Problem
expected '{' at end of input /KL25Z_Boot/Sources/flash flash_kinetis.c line 288 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token /KL25Z_Boot/Sources/bootloader bootloader.c line 138 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token /KL25Z_Boot/Sources/bootloader bootloader.c line 152 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token /KL25Z_Boot/Sources/bootloader bootloader.c line 173 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token /KL25Z_Boot/Sources/bootloader bootloader.c line 190 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token /KL25Z_Boot/Sources/bootloader bootloader.c line 216 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token /KL25Z_Boot/Sources/bootloader bootloader.c line 252 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token /KL25Z_Boot/Sources/bootloader bootloader.c line 337 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token /KL25Z_Boot/Sources/flash flash_kinetis.c line 37 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token /KL25Z_Boot/Sources/flash flash_kinetis.c line 58 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token /KL25Z_Boot/Sources/flash flash_kinetis.c line 73 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token /KL25Z_Boot/Sources/flash flash_kinetis.c line 103 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token /KL25Z_Boot/Sources/flash flash_kinetis.c line 153 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token /KL25Z_Boot/Sources/flash flash_kinetis.c line 216 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token /KL25Z_Boot/Sources/flash flash_kinetis.c line 229 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token /KL25Z_Boot/Sources/flash flash_kinetis.c line 242 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token /KL25Z_Boot/Sources/flash flash_kinetis.c line 249 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before '{' token /KL25Z_Boot/Sources/flash flash_kinetis.c line 262 C/C++ Problem
expected declaration specifiers before '__declspec' /KL25Z_Boot/Sources/bootloader bootloader.c line 81 C/C++ Problem
expected declaration specifiers before ';' token /KL25Z_Boot/Sources/bootloader bootloader.c line 84 C/C++ Problem
mingw32-make: *** [Sources/bootloader/bootloader.o] Error 1 KL25Z_Boot C/C++ Problem
mingw32-make: *** [Sources/flash/flash_kinetis.o] Error 1 KL25Z_Boot C/C++ Problem
mingw32-make: *** Waiting for unfinished jobs.... KL25Z_Boot C/C++ Problem
parameter 'bootloaderIdent' is initialized /KL25Z_Boot/Sources/bootloader bootloader.c line 105 C/C++ Problem
parameter 'rom_vector' is initialized /KL25Z_Boot/Sources/bootloader bootloader.c line 49 C/C++ Problem
storage class specified for parameter 'FlashConfig_t' /KL25Z_Boot/Sources/bootloader bootloader.c line 78 C/C++ Problem
storage class specified for parameter 'FTFL_FlashCommandSequence' /KL25Z_Boot/Sources/flash flash_kinetis.c line 29 C/C++ Problem