Skip to content

Firmware

Dilshan R Jayakody edited this page Apr 26, 2021 · 2 revisions

Firmware of the NTP clock driver is developed using the Arduino IDE/framework. To compile the firmware following libraries must install into the Arduino IDE:

After setting up the build-environment with the above libraries, start the Arduino IDE and open the NTP clock driver firmware. Select Sketch > Verify / Compile and ensure that the firmware is building without any issues. If verification is successful, select Sketch > Export compiled binary menu option to generate the firmware binaries (HEX files).

If compilation is successful following two files are generated in the source directory:

  • netclk-atmega328a.ino.standard.hex
  • netclk-atmega328a.ino.with_bootloader.standard.hex

To upload the firmware, connect in-circuit programmer to the ISP header (J6) and upload the netclk-atmega328a.ino.with_bootloader.standard.hex file.

ISP pinouts

After uploading the firmware, verify the fuse settings of the ATmega328P with the following list. If the fuse bit values are different, execute the fuse programming option of the programmer and set the fuse value(s) to the given configuration.

  • Low byte: 0xFF
  • High byte: 0xDE
  • Extended byte: 0x05

All the above steps are tested and verified with the Arduino IDE version 1.8.13 on both Linux and Windows platforms.

Clone this wiki locally