µCore Starter Kit Quickstart Guide
For those of you in a hurry!
You will need a µCore starter kit and a suitable power supply (+12VDC 300mA).
Hardware Setup
- Check the contents of your Kit against the shipping list.
- Insert the µCore module in the socket on the µCore carrier (make sure it is the right way around)
- Connect the µPod to your PC using the serial cable provided
- Plug the µPod into the µCore carrier µPod interface (again check orientation)
- Connect the µCore carrier to a suitable power supply
- All done.
Software Setup
- Place the CD in your CD drive.
- Copy the directory "gcc-h8" from the CD to the root of your hard drive.
- Copy the directory "project" from the CD to your desktop.
- If you wish you can rename the new project directory.
- Right click on the desktop project directory and select "Properties".
- If the "Read Only" box is checked, uncheck it and accept.
- You are now ready to develop for µCore.
Developing for µCore
- Enter your new project directory, double click "Command Prompt".
- At the command line type "ed main.c"
- Notepad will open and display the contents of main.c You can change the message in the printf statement if you wish.
- Save main.c & exit Notepad.
- At the command line type "buildall", the buildall script will now compile your program.
- At the command line type "flash".
- The uFlash-H8 utility will now program your µCore with the application & run it.
- Congratulations, you are now an embedded µCore programmer.
What went wrong?
The most likely problems are:
The command prompt didn't work
You need to create a new command prompt shortcut for your system, to do this:
- Remove the current shortcut by moving it to the Recycle Bin
- Locate the Command Prompt for your system and create a shortcut in your project directory
- Right click the shortcut and select properties
- Select the Shortcut tab on the properties window
- After the current contents of the Target field add the text "/K .\script\setenv.bat" (excluding the quotemarks - "")
- Apply these changes and quit the preferences.
Command prompt reported "out of environment space"
- Right click your command prompt shortcut and select properties
- Select the Memory tab
- In the "Initial environment" field, enter 1024
- Apply changes and exit properties.
The uFlash-H8 driver was unable to open the communications port
The flash script defaults to using com1, to modify this:
- In the project\script directory, edit the file flash.bat
- Change the phrase
-com1 to reflect the com port configuration on your PC.