28
29
30
31
32
33
34
35
36
wait(
1
);
myled1 =
0
;
myled2 =
0
;
myled3 =
0
;
myled4 =
1
;
//4th from left (right most) LED turns ON, rest off
wait(
1
);
}
}
When you Compile and Run the above code on the Arch GPRS V2 board, you should see that the LEDs blink in sequence.
If you get through the above steps successfully, this means that:
1.
Your Arch GPRS V2 is powering up correctly.
2.
Your code is being downloaded and run by the Arch GPRS V2 module correctly.
3.
You are ready to take on more complex projects now!
Programming Arch on Windows, Linux or Mac
Arch does not have an mbed interface. It uses USB In-System-Programming (ISP) to upgrade the firmware.
To enter the USB ISP mode, connect the Arch with your computer and long press its button, and then a disk named "CRP DISABLD" will
appear.
On windows
1.
delete firmware.bin in the "CRP DISABLD" disk.
2.
copy a new firmware into the disk.
On linux
1.
if the disk is not mounted, mount the disk at
{mnt_dir}
2.
dd if={new_firmware.bin} of={mnt_dir}/firmware.bin conv=notrunc
On mac you'll need to use Terminal to run the following script to copy you're .bin file to your Arch
1.
dd if={new_firmare.bin} of=/Volumes/CRP\ DISABLD/firmware.bin conv=notrunc
If you are so inclined, you can also create an
Automator
application to support drag-and-drop of the file to your board. Just create a "
Run
Shell Script
" with the following command:
dd if=$* of=/Volumes/CRP\ DISABLD/firmware.bin conv=notrunc
You will also need to change the
"Pass Input"
option from
"to stdin"
to
"as arguments"
--without this you will get
an error
"The action 'Run Shell Script' encountered an error"
or
"dd: no value
specified for if (1)"
in the log.
Also, an improved form of the script is:
dd if="${1}" of=/Volumes/CRP DISABLD/firmware.bin conv=notrunc
Which should handle spaces in the file path and only uses the first file supplied. Quick press the button to run the new firmware.
Tech Support
Please submit any technical issue into our
forum
or drop mail to
.
http://wiki.seeedstudio.com/Arch_GPRS_V2/2
‐
28
‐
19