No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
mcc_generated_files
nbproject
.gitignore
BaseConfig_MCC.mc3
Makefile
README.md
blinky_ExampleTask.c
blinky_ExampleTask.h
cooperative_scheduler.c
cooperative_scheduler.h
fadeDisplay_ExampleTask.c
fadeDisplay_ExampleTask.h
gamma_correction.h
led_ExampleTask.c
led_ExampleTask.h
main.c
nullifyBadge.c
nullifyBadge.h
nullifyBadge_displayL1.c
nullifyBadge_displayL1.h
nullifyBadge_displayL2.c
nullifyBadge_displayL2.h
slot_ExampleTask.c
slot_ExampleTask.h
taskManager.c
taskManager.h
xc8_types.h

README.md

Nullibadge

This is the source code that wasn't made by a series of drunk coders.

Source code for a community built unofficial Defcon 25 badge.

About

Order a Badge

Programming

Install MPLabX 3.65

Win Lin Osx

Install XC8 1.42

Win Lin OSX

GIT

git clone https://github.com/nullibadge/defcon2017.git

Pickit3

Acquire one of these: https://www.amazon.com/Funny-DIY-Expert-Programmer-Development/dp/B01NBPCLSR/ref=sr_1_1?ie=UTF8&qid=1498755321&sr=8-1&keywords=pickit3

Step by Step

  1. Plug in your pickit3 to your computer
  2. Open MPLab X
  3. File -> Open Project -> Select your git folder
  4. Select Clean Build from the Tool Bar (Looks like a Hammer with a Brush)
  5. Click Production -> Set Project Configuration -> Customize
  6. Under Conf:[default] -> Configuration Pane -> Hardware Tool Pane -> Hardware Tools you should see PICkit3 with a serial #
  7. Under Conf:[default] -> Configuration Pane -> Device -> Be sure to select PIC16LF18346

Note: Early dev boards used a non L version microcontroller. These could take higher voltages. The new ones cannot and have better battery life.

Note: You don't need to power the board with battery and shouldn't when programming them. You can turn off the battery power by toggling the switch on the bottom right of the badge.

  1. Under Conf:[default] -> select PICkit3 -> Under Options Categories select Power -> Check Power target circuit from PICkit3 -> change the power to 3.25V. Anything higher than 3.6V will fry the L microcontroller and destroy your badge.
  2. Under Compiler Toolchain on the right click on XC8 1.42 and click apply then ok
  3. Connect the PICKit3 to your badge. The arrow indicates the left most pin.

Here is a picture of proper placement.

  1. Click the Green Play button to right of "Clean Rebuild"
  2. Select your PICKit3. You may get a prompt about the having the right device selected. Ensure you are using the L version if you use a new revision (>rev1) of the badge. Click OK and the badge will program.

Active tasks are set inside main.c, you can change them to run the other examples

scheduler_TaskAdd(&schedulerInst, &slot_ExampleTask);