Layerone Demoscene Board - Getting Started
So you got a Layerone Demoscene Board? Here's how to get started!
There are two ways to power the Layerone Demoscene Board, USB or external power.
- USB microAB - 5V
- External power input range: 4.75v to 15.0v
Here you have two options, you can either download MPLABX the newer IDE or MPLAB IDE v8.92 the older IDE. You can write your code in either ASM or C.
MPLAB Download Site: http://www.microchip.com/pagehandler/en-us/family/mplabx/
Click the “Downloads” tab and download the latest MPLABX
Click the “Downloads Archive” tab and download the latest X16 compiler
MPLAB IDE v8.92:
Click the “Downloads Archive” tab, scroll down to “MPLAB IDE v8.92”
Click the “Downloads Archive” tab and download the latest MPLAB ASM30 Assembler (if you wish to program in ASM) or the MPLAB C Compiler for PIC24 (if you wish to program in C).
Download Example Code
Once you've compiled your code, you can upload the “.hex” file using the L1 Demoscene Board Loader/Upgrader GUI.
Download Drivers (Windows):
Zip (Manual Installation): http://l1demo.org/driver/L1DemoBoardDrivers.zip
Mac and Linux users:
You will need to download and install “Mono” http://www.mono-project.com/ to run the app
How to upload:
Connect USB micro cable to the L1 Demoscene Board
Place the Jumper on PGEC1 and PGED1 as show here:
This will activate the bootloader (COM port device will appear) on boot indefinitely until the jumper is moved the “Boot Flash” position shown below.
Toggle the switch to USB power
The L1 Demoscene Board will show up as a USB Serial device (COM port)
Open either “L1DemoLoaderGUI.exe” or “L1DemoUpgrader.exe” (MAC/Linux users can use Mono to open them)
Select the hex file you wish to upload
For L1DemoLoaderGUI users, set Device: PIC24J 256DA206, Baud Rate: 115200
Select the COM Port
For L1DemoLoaderGUI users, click “Write”
For L1DemoUpgrader users, click “Update”
Place the Jumper on PGED1 and GND to enter “Boot Flash” mode:
Your app will load within 5 seconds
Note: Since you will likely be uploading new programs as you develop your code, you can keep jumper in this position, and hit the reset button which will invoke the bootloader for 5 seconds after reset. During this time you can upload your updated hex file since your Upgrader/Loader is already configured.
NOTE: When you power up the board without a jumper, you have 5 seconds to upload your new hex file! After 5 seconds, the bootloader loads the app inside flash. If you connect the jumper and boot it, the bootloader will be invoked and will wait for a new program to be uploaded until the jumper is removed.
After uploading the “Leo Rectangles” demo you should see:
Here is a flowchart diagram of the bootloader:
WARNING: The following will erase the bootloader the board ships with!!
Connect the PICKIT3 to the L1 Demoscene Board as shown (must match orientation shown in the picture!):
Open MPLABX or MPLAB IDE
Select the PICKIT3 as the programming device
For MPLAB X: Select PICKIT3 in the Project Properies → Device
For MPLAB IDE: Select PICKIT3 in the “Programmer” Tab
Upload by clicking the “Download” button