Table of Contents
1 Version History ________________________________________________________________________ 4
2 Project configuration file _________________________________________________________________ 5
2.1 <hardware> ______________________________________________________________________ 5
2.2 <scripting> _______________________________________________________________________ 5
2.3 <image> _________________________________________________________________________ 5
2.4 <bootloader> _____________________________________________________________________ 6
2.5 <files> ___________________________________________________________________________ 8
2.6 Examples ________________________________________________________________________ 9
3 Hardware configuration file ______________________________________________________________ 10
3.1 <adc> __________________________________________________________________________ 10
3.2 <i2c> ___________________________________________________________________________ 10
3.3 <notify> _________________________________________________________________________ 12
3.4 <port> __________________________________________________________________________ 13
3.5 <sleep> _________________________________________________________________________ 14
3.6 <spi> ___________________________________________________________________________ 14
3.7 <timer> _________________________________________________________________________ 17
3.8 <uart> __________________________________________________________________________ 18
3.9 <usb> __________________________________________________________________________ 20
3.10 <ethernet> _____________________________________________________________________ 21
3.11 <sdhc> ________________________________________________________________________ 21
3.12 Example configurations ___________________________________________________________ 23
3.12.1 Using BGAPI over UART interface ____________________________________________ 23
3.12.2 Using BGAPI over USB/CDC interface _________________________________________ 23
3.12.3 Using BGAPI over SPI slave interface _________________________________________ 23
3.12.4 Using BGAPI over UART and enabling I2C peripheral interface _____________________ 23
3.12.5 Using BGAPI over UART2 and enabling UART1 to BGScript application ______________ 24
3.12.6 Using Ethernet interface ____________________________________________________ 24
4 WF121 Factory Configuration ____________________________________________________________ 25
5 Compiling a Project into a Firmware Image __________________________________________________ 27
6 Installing the Firmware _________________________________________________________________ 29
6.1 Using PICkit 3 ____________________________________________________________________ 29
6.2 Using Microchip IPE _______________________________________________________________ 30
6.3 Using DFU over UART or USB _______________________________________________________ 31
7 References __________________________________________________________________________ 32