Author Topic: Serial bootloader K50 choice in config.h  (Read 26022 times)

Offline HowieM

  • Newbie
  • *
  • Posts: 12
    • View Profile
Serial bootloader K50 choice in config.h
« on: June 28, 2016, 12:40:39 PM »
Will the serial bootloader project support Kinetis K50DX256?  If so, which hw choice should be selected in the bootloader config.h (K40 w/o ethernet?) and does anything else need to be modified?

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3244
    • View Profile
    • uTasker
Re: Serial bootloader K50 choice in config.h
« Reply #1 on: June 28, 2016, 01:28:21 PM »
Hi

I would do the following:
1. Make a new define for the HW, eg. K50DX256_BOARD and select that
2. Search the boot loader project for TWR_K53N512 (assumed to be closest) and at each location add
defined TWR_K53N512 || defined K50DX256_BOARD
3. This should now build and then you can modify each location (where needed) to
#elif defined TWR_K53N512
....
#elif defined K50DX256_BOARD
....

and copy the conditional content from TWR_K53N512 to the new one, and modify anything needed to suit the exact chip/board
4. Once all locations have been modified accordingly make sure that you select a suitable linker script (eg. K_256_64.ld)

From this point you can check whether it works as expected.

Good luck

Regards

Mark