*** Steps to make a CAN application firmware bootloader aware ***

Follow these five simple steps to convert your 'F50x CAN project bootloadable.

-----

1. ToolChain settings:

* In Silicon Labs IDE, these options are under 'Project > ToolChain Integration'

* These are for the Keil toolchain

* Add the following to the Compiler command line:
INTVECTOR(0x400) INTERVAL(3) 

* Add the following to the Linker command line:
CODE(0x400-0xF9FF, ?CO?F50X_TARGET_APP_INFOBLOCK(0xF9F5)) 

-----

2. Add files to project:

* Add the four files in this folder to your project:
F50x_Target_Interface.c
F50x_Target_Interface.h
F50x_Target_App_InfoBlock.c
F50x_Target_App_Startup.A51

* Ensure that the .c and .A51 source files are added to the build.

-----

3. Add header file to your source file:

* If you have a source file such as "F50x_CAN0_LED1_Blinky.c", add the following statement:

#include "F50x_Target_Interface.h"

-----

4. Add call to CAN0_Init_For_BL_Support()

* Add a call to this function in your CAN0_Init function just before writing to CAN0CN to return it to normal mode.

-----

5. Add call to Check_BL_Command (status, Interrupt_ID)

* Add a call to this function in your CAN0_ISR.

-----

