Getting Started with SKPIC32

Similar documents
32 bit Micro Experimenter Board Description and Assembly manual

PIC KIT 2 BASIC-USERS GUIDE FEMTO ELECTRONICS

ATHENA32 PIC32 Evaluation Board ATHENA32. Product Datasheet. Francesco Ficili Date 13/01/2019. Pag. 1

TDSDB Features. Description

DEVBOARD3 DATASHEET. 10Mbits Ethernet & SD card Development Board PIC18F67J60 MICROCHIP

SK40C ENHANCED 40 PINS PIC START-UP KIT. User s Manual V1.3. March 2012

Manual of Board ET-PIC STAMP 18F8722-K22 ET-PIC STAMP 18F8722-K22

ET-PIC 24 WEB-V1. o Central Processing Unit (CPU) o System. o nanowatt Power Managed Modes. o Analog Features

PIC Dev 14 Surface Mount PCB Assembly and Test Lab 1

Introducing the 32 bit Micro Experimenter

CYTRON USB PIC Programmer v2009 UP00B

eip-24/100 Embedded TCP/IP 10/100-BaseT Network Module Features Description Applications

PIC Dev 14 Through hole PCB Assembly and Test Lab 1

Dwarf Boards. DB057 : 40-pin controller board

Thank you for purchasing the RGB Multi-MCU base and driver board from SuperTech-IT and TheLEDCube.com

Contents. The USB Logic Tool... 2 Programming... 2 Using the USB Logic Tool... 6 USB Logic Tool Features... 7 Device Hardware...

PICado Alpha Development Board V1.0

Description: USB to Serial interface and USB development platform

eip-10 Embedded TCP/IP 10-BaseT Network Module Features Description Applications

Getting acquainted with the development tools June 27, 2006 ELE492 Embedded System Design Exercise 1

BC-USB-Kit Manual. First Edition. February, BeatCraft, Inc.

How to Restore a chipkit Bootloader

PIC32&Overview& E155&

Prefetch Cache Module

Olimex PIC-KIT3 In-circuit programmer/debugger

AKKON USB CONTROLLER BOARD

None. MICROCONTROLLERS III

CHIPS Newsletter Vol 5 - Yahoo! Mail. Official Newsletter of

ECIO Base Board datasheet EB061-00

1. About this document General information Board layout Testing this product Circuit description...

TCO305 TCP/IP Control System Interface Development Using Microchip Brand Microcontrollers

Display Real Time Clock (RTC) On LCD. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

32-bit Microcontrollers. PIC32 Microcontroller Family with USB On-The-Go.

Product Overview -A 16 bit Micro Experimenter for Solderless Breadboards

AXE Stack 18. BASIC-Programmable Microcontroller Kit. An inexpensive introduction to microcontroller technology for all ability levels

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

Building RoboPIC 18F4550

SimPLC. User Manual.

PIC32MX150F128 Breakout Board

Breeze Board. Type A. User Manual.

)8-,768'HY.LW 2YHUYLHZ. )XMLWVX0LNURHOHNWURQLN*PE+ Am Siebenstein Dreieich-Buchschlag, Germany

BOLT 18F2550 SYSTEM PROGRAMMING MANUAL

Embedded Development Platform Getting Started Guide for Microchip PIM Carrier Module

IFC-MB00 Interface Free Controller Main Board

Distributed Real- Time Control Systems

NFC NUTSHELL KIT. MCU Modules USER MANUAL REVISION GMMC GmbH Keywords Abstract. Document information

Getting Started with STK200 Dragon

Lesson 5 Arduino Prototype Development Platforms. Chapter-8 L05: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

Breeze Board. Type B. User Manual.

8051 Intermidiate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

Pickit 3 Starter Kit Users Guide Microchip Technology

Internet board datasheet EB

Overview The Microcontroller The Flex Board Expansion boards Multibus board Demo board How to: Compile demo Flash & Run Demos

ECIO base board. EB061

Bolt 18F2550 System Hardware Manual

SKP16C26 Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

Physics 335 Intro to MicroControllers and the PIC Microcontroller

SK18A. 18 Pins PIC START-UP KIT. User s Manual V1.1. Dec 2007

INSTRUCTIONS FOR SETTING UP ROACH SOFTWARE IN MPLAB-X

Espardino micro2142/8

VM134 (K8076) QUICK GUIDE

Arduino Micro Breadboard Laboratory Interface Processor (Micro BLIP) User Manual

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

Mercury System SB310

MASTERs 2012 LAB Manual for 1658 BTL Bootloading, Application Mapping and Loading Techniques on PIC32. Table of Contents

P&E Microcomputer Systems, Inc. P.O. Box 2044, Woburn, MA 01888, USA

SSD1963 EVK Rev3B User s Guide

TCP/IP Base Board Setup Instructions (JGS_ETH24_BASE)

How to use SSD1928. This software demonstrates hardware features unique to the Solomon Systech SSD1928 Image Processor. These features include

Clicker 2 for Kinetis

Doc: page 1 of 9

Introducing: New Low-Cost & Low Pin Count PIC Microcontrollers for the 8-, 16- & 32-bit Markets

Rapid40i PIC Prototyping PCB User Manual

Intel Galileo gen 2 Board

S32K148 EVB QUICK START GUIDE REV1 APPLIES FOR: S32K148 EVB (SCH REV A/B) EXTERNAL USE

HAND HELD PROGRAMMER QUICK START GUIDE

Freeduino USB 1.0. Arduino Compatible Development Board Starter Guide. 1. Overview

M16C/62P QSK QSK62P Plus Tutorial 1. Software Development Process using HEW4

ARDUINO MINI 05 Code: A000087

SBC65EC. Ethernet enabled Single Board Computer

Debug Tool Fashion Accessories An showcase of development tool accessories designed to enhance your debug session

Omega MP. Multi-Programming Shield for Atmel Microcontrollers. User Manual

OLED Engineering Kits User Manual

EPM900 - Overview. Features. Technical Data

Embedded Systems. PIC16F84A Internal Architecture. Eng. Anis Nazer First Semester

MuIn dsnav - User Manual [EN]

KPIC-0818P (V050919) Devices Included in this Data sheet: KPIC-0818P

RFID: Read and Display V2010. Version 1.1. Sept Cytron Technologies Sdn. Bhd.

Microchip 18F4550 Interface, Signal conditioning, USB, USB- RS-232, 16x2 LCD Interface

IDUINO for maker s life. User Manual. For IDUINO development Board.

Assembly Instructions for 128x64 Graphics Display Unit

Dwarf Boards. DN001 : introduction, overview and reference

keyestudio Keyestudio MEGA 2560 R3 Board

PIC-32MX development board Users Manual

LAB #1: The CSM12C32 Module and PBMCUSLK Project Board

XC866 Getting Started on EasyKit & Toolkits

Usb Universal In-circuit Programmer Pic Avr Arm Msp 8051 Eeprom

EasyAVR6 Development System

CEIBO FE-51RD2 Development System

EasyPIC5 Development System

Transcription:

Getting Started with SKPIC32 Content: 1.Introduction 2.The Board 3.Software 4.Hands On 4.1.Loading program with bootloader 4.2.Loading program without bootloader 1. Introduction 32-bit PIC MCU have more advantages over the 8-bit and 16-bit PICs we have used. They are faster (max clock rate of 80 MHz compared to 40 MHz), have more peripherals available, offer more program memory (flash) and data memory (RAM), and have significantly more computational horsepower due to the 32-bit address and data buses and single-cycle multiply for 32-bit math. The primary disadvantages are that they come only in surface mount packages, making them harder to work with for fast prototyping compared to the DIP (dual-inline packages) 8-bit PICs that can be plugged into a breadboard; and they must be powered by 2.3-3.6 V, unlike the 5 V of DIP 8-bit PICs and some DIP chips we would like to interface with. Therefore Cytron has come out with SKPIC32 in SK (Starter Kit) category. SKPIC32 is designed to support Microchip s most advanced 32-bit PIC MCU (at the time of this writing). Unlike others SK series, Cytron has soldered 100-pin surface mount packages of PIC32 MCU, PIC32MX795F512L, on the board by default. Apart from that, this start-up kit also come with all the basic components needed for the PIC32 to run right from the box. Furthermore, the chip has been pre-program with Microchip s HID bootloader which allow you to load the program without hardware programmer. Initially,

SKPIC32 comes with a sample code of LED Blinking in the chip. 2. The board Figure above shows the SKPIC32 board. Most of the components are surface mount packages to minimize the size of the board. Below are some explanation on the board. In order to power up the SKPIC32, users must connect 5V either from JP2 or USB. There is a 3.3V regulator on board to regulate the 5V input to 3.3V output. Thus, users only need to plug in the USB from computer without worrying spoilt the PIC32 chip. A green LED indicator label as POWER will lit on when there is a power. USB mini B socket to connect to the computer. All the pins from PIC32MX795F512L are breakout into 0.1 inch standard of header pins. Users are free to connect the pins according to their application. All the breakout pins are label clearly with their port name. There are two push button on board. One is reset button, another one is programable push button which connect to RG15 of the PIC32. 2 red color programmable LED indicator which connected to RB0 and RB1. ICSP (In circuit serial programming) connection to program the PIC32MX795F512L when bootloader is no needed.

Figure below shows the family datasheet of PIC32MX795F512L and the MCU core specification 80MHz, 1.56 DMIPS/MHz, 32-bit MIPS M4K Core USB 2.0 On-The-Go Peripheral with integrated PHY 10/100 Ethernet MAC with MII/RMII Interfaces 2 x CAN2.0b modules with 1024 buffers 8 Dedicated DMA Channels for USB OTG, Ethernet, and CAN 5 Stage pipeline, Harvard architecture MIPS16e mode for up to 40% smaller code size Single cycle multiply and hardware divide unit 3. Sotfware We are going to install MPLAB (software used for editing, compiling, and debugging code), the C32 compiler (software to create the program) and the Microchip Applications Library (common source files for programming) in order to use SKPIC32. Download MPLAB IDE Full Release Zipped Installation at the microchip website under Design>MPLAB@IDE. You need to log in in order to get the MPLab IDE. If you already own this software on you computer, ignore this step. After download, extract the files it it is a zip file. Doubleclick on the setup launcher, run it, and choose complete setup. Let it install in the default location. Install everything is required. If MPLAB IDE Document Select appears, you can just close it. Now the MPLAB IDE is installed. Download and intall the MPLAB C32 C Compiler ver1.11 on SKPIC32 product webpage. At the time of writing, the latest MPLAB C32 C Compiler in microchip website is Ver2.1 which is not compatible with SKPIC32 s bootloader. Microchip hasn t release new bootloader files for PIC32 in the latest MAL (Microchip Application Libraries). So if you wish to use bootloader to program the chip, you will have to install MPLAB C32 C Compiler ver1.11 because the current bootloader for PIC32 cannot work with the latest compiler which is available on Microchip s website. However, if you are NOT using the bootloader, you can compile your code with any compiler version and program the chip using PICkit 3. Download the MAL (Microchip Application Libraries) at microchip website. Save the zip file to your desktop and extract the files. Run the installer and install to the default. This MAL nclude many of

software libraries like graphic library, TCP/IP stack, Accessory Framework for Android and etc. You can select any projects that you need for your application. Download the sample code provided in SKPIC32 product webpage inclucing LED Blinkng and HID Bootloader. LED Blinking sample code is to help user to get started their PIC32 programming in MPLab IDE. While HID Bootloader folder contains Bootloader project code for SKPIC32, PC software for loading the program into the chip in Bootloader mode, and some useful linker scripts. Actually the HID Bootloader can also be downloaded from the MAL. It is inside one of the USB framework library. After you have done everything above. It is time to get start with the programming. The provided LED Blinking sample source code will be use as example. Open the Microchip MPLAB project file named SKPIC32 Blinking at <Your Save Directory>\LED Blinking SKPIC32\LED Blinking\SKPIC32 Blinking.mcp. Please make sure the device selected is PIC32MX795F512L and the MPLAB C32 C Compiler is version 1.11(b). If you try to build the sample source code at this stage, you will get Build Failed message. It is because the compiler cannot find some.c and.h files. Those file in project window are showing files not found in bracket. - TimeDelay.c - Compiler.h - GenericTypeDefs.h - TimeDelay.h However all these files can be find at <Your Save Directory>\LED Blinking SKPIC32\Microchip\Common and <Your Save Directory>\LED Blinking SKPIC32\Microchip\Include. Remove the files by right click and add those files again. Remove the file not found and add the file again After adding each necessary files, you can now build the source code by clicking the icon. The output project should be showing Build Succeeded. It is done! Hex code is generated in the project folder. This hex code will be use to load into the chip.

4. Hands-On To kick start, plug in the USB cable to the USB socket on board. The green LED labeled with POWER should be lit on. This indicate that the board is being power up and is ready to use. As mentioned in the introduction, this SKPIC32 is pre-programmed with a sample code, LED Blinking. After power up the board, try press the switch labeled with SW, the two red LEDs on board will keep blinking simultanuesly until it is reset. LED Blinking 4.1 Loading program with bootloader The purpose of a bootloader is to load programs onto a microcontroller over a serial line without the need of a high voltage or otherwise hardware orientated programmer. What this means to you is that you will now be able to load programs much faster and much easier onto PICs then you ever dreamed of. Of course, bootloader firmware must programmed into the microcontroller at the first time. But no worries, the SKPIC32 is ready programmed with the bootloader firmware. The steps to load the program into SKPIC32 is shown below Please follow the steps on section 3.0 in order to get the hex code. Please make sure that the HID Bootloader Linker Script is included in the project as shown at the figure below. This file is designed to be used by an application that will be loaded with the HID bootloader.

Press and hold the SW on board and at the same time reset the SKPIC32 either press and release the reset button or plug in the USB socket. Once the HID bootloader is recognize by computer, release the SW button. Two red LEDs on board will blink alternatively. You have enter the bootloader mode! Enter Bootlaoder Mode Open the bootloader PC software which is located at <Your Save Directory>\HID Bootloader SKPIC32\PC Software\HIDBootLoader.exe. If you have enter the bootloader mode, the PC software should look like the figure below, with some accessable button and showing device attached. PC Software USB Bootloader in Bootloader Mode However, if the board is not in bootloader mode, all the button in the PC software is not accessable and it is showing device detached. PC Software USB Bootloader when not in Bootloader Mode Please try with step 1 again if you are not in bootloader mode. You are ready to load the program into PIC32 if the HID Bootloader is recognized by your computer. Click on the Open Firmware Image button, select the hex code of your application. Click on the

Erase/Program/Verify Device button to start loading the hex code into the PIC32 chip. It may take several second in order to complete. If the dialog showing You may now unplug or reset the device, it is done! You can now reset your SKPIC32, and it should be run according to your program. 4.2 Loading program without bootloader If you wish to program the SKPIC32 wihtout using bootloader, there is a ICSP connection for user to program the SKPIC32 with PICKit3 (or ICD3) as shown at the figure below. PICKit3 programming SKPIC32 Please remove the HID Bootloader Linker Script in the project before building the code if you are using SKPIC32 LED Blinking sample project. This action will erase the Bootloader Firmware inside the PIC32MX795F512L. Thus, the chip won t be able to enter bootloader mode again. If you wish to use the bootloader again, you can program the bootloader hex code into it. You can get the bootloader hex code at <Your Save Directory>\HID Bootloader SKPIC32\HID Bootloader for SKPIC32.