User Tools

Site Tools


demoboard_getting_started

Layerone Demoscene Board - Getting Started

So you got a Layerone Demoscene Board? Here's how to get started!

Power Up

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

Development Environment

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/

MPLAB X:

  1. Click the “Downloads” tab and download the latest MPLABX
  2. Click the “Downloads Archive” tab and download the latest X16 compiler

MPLAB IDE v8.92:

  1. Click the “Downloads Archive” tab, scroll down to “MPLAB IDE v8.92”
  2. 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

Programming

USB Programming

Once you've compiled your code, you can upload the “.hex” file using the L1 Demoscene Board Loader/Upgrader GUI.

Download Drivers (Windows):

64-Bit: http://l1demo.org/driver/Demox64.EXE

32-Bit: http://l1demo.org/driver/Demox86.EXE

Zip (Manual Installation): http://l1demo.org/driver/L1DemoBoardDrivers.zip

Advanced GUI:

Win: http://l1demo.org/downloads/L1DemoLoaderGUI.exe

Mac: http://l1demo.org/downloads/L1DemoLoaderGUI.dmg

Simple GUI:

Win: http://l1demo.org/downloads/L1DemoUpgrader.exe

Mac: http://l1demo.org/downloads/L1DemoUpgrader.dmg

Mac and Linux users: You will need to download and install “Mono” http://www.mono-project.com/ to run the app

How to upload:

  1. Connect USB micro cable to the L1 Demoscene Board
  2. Place the Jumper on PGEC1 and PGED1 as show here:
  3. This will activate the bootloader (COM port device will appear) on boot indefinitely until the jumper is moved the “Boot Flash” position shown below.
  4. Toggle the switch to USB power
  5. The L1 Demoscene Board will show up as a USB Serial device (COM port)
  6. Open either “L1DemoLoaderGUI.exe” or “L1DemoUpgrader.exe” (MAC/Linux users can use Mono to open them)
  7. Select the hex file you wish to upload
  8. For L1DemoLoaderGUI users, set Device: PIC24J 256DA206, Baud Rate: 115200
  9. Select the COM Port
  10. For L1DemoLoaderGUI users, click “Write”
  11. For L1DemoUpgrader users, click “Update”
  12. Place the Jumper on PGED1 and GND to enter “Boot Flash” mode:
  13. Your app will load within 5 seconds
  14. 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: https://www.youtube.com/watch?v=Rywn1wDwSdI

Here is a flowchart diagram of the bootloader:

PICKIT3 Programming

  1. WARNING: The following will erase the bootloader the board ships with!!
  2. Connect the PICKIT3 to the L1 Demoscene Board as shown (must match orientation shown in the picture!):
  3. Open MPLABX or MPLAB IDE
  4. Select the PICKIT3 as the programming device
  5. For MPLAB X: Select PICKIT3 in the Project Properies → Device
  6. For MPLAB IDE: Select PICKIT3 in the “Programmer” Tab
  7. Upload by clicking the “Download” button
demoboard_getting_started.txt · Last modified: 2015/01/18 13:10 by arko