Programming the Amicus18

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Manx_Man
Posts: 4
Joined: Tue Jul 10, 2012 9:41 pm
Has thanked: 3 times
Contact:

Programming the Amicus18

Postby Manx_Man » Tue Jul 10, 2012 10:03 pm

I have recently purchased flowcode v5, which is an excellent program and very easy to use.
I also purchased an Amicus18 board, which uses the PIC18f25K20 chip, so I would have something to program.
Can I compile and programme the Amicus18 board using flowcode. I have tried selecting the Amicus Loader through the compiler option menu but I get an error saying wrong type of hex file?
Can anyone help?
:(

User avatar
DavidA
Matrix Staff
Posts: 1060
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 275 times
Contact:

Re: Programming the Amicus18

Postby DavidA » Wed Jul 11, 2012 8:51 am

Hello,

I dont know of the specific programmer you are refering to, but if you want to make it so that Flowcode compiles to that programmer directly then you would need to ensure that the programmer had a command line programming tool, and then look in the documentation for that programmer for the command line parameters you would need to pass to enable it to program automatically. However this largely depends on the programmer used.

The other option is to just compile your Flowchart to a 'hex' file then load that hex into your programmer software and program your board.
These users thanked the author DavidA for the post:
Manx_Man (Fri Jul 13, 2012 6:49 pm)
Rating: 5.26%
 

Manx_Man
Posts: 4
Joined: Tue Jul 10, 2012 9:41 pm
Has thanked: 3 times
Contact:

Re: Programming the Amicus18

Postby Manx_Man » Wed Jul 11, 2012 9:46 pm

Hello Dave,
Many thanks for your reply.

Just a little information about the Proton Amicus18 is a multifunction development system inspired by the popular Arduino board, however, the Amicus18 board uses a Microchip PIC® microcontroller instead of an Atmel AVRtm type.

The board is made and developed by Proton how have written a special compiler for the Amicus18 development board.

But when I use this complier within Flowcode, under complier option, programmer, the loader comes up with a error, wrong HEX format.

When I compare the two Hex files, one from Flowcode and the other from Proton Amicus18 complier, the only difference is the first line of HEX, the Proton complier has:-
:020000040000FA

the first line of Hex. The rest of the Hex code matches.

One thing I should mention is that the Proton Amicus18 comes with a boot load within the PIC18F25K20, so you can programme it through a USB cable, so is this first line of HEX code got anything to do with this?

I noticed within Flowcode you have a a load of text within the parameters '-v -t PIC%p "%f.c"' what does this all mean?


thanks

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 514 times
Been thanked: 467 times
Contact:

Re: Programming the Amicus18

Postby dazz » Wed Jul 11, 2012 11:11 pm

Hi
I dont have an amicus but have read through the amicus docs, attached is a pic that will possibly work . if you set up a new entry in the programmer options save it as amicus and then compile to chip without anything attached it loads the amicus18loader and says it cant find an amicus so it appears it will work, i've also attached a rar file with the parameters in simply unzip the file to your desktop, open flowcode and in the programmer options select import and import the new file.
Let us know how you get on

Regards
Dazz
Attachments
Amicus18.rar
(329 Bytes) Downloaded 97 times
Untitled.jpg
Untitled.jpg (66.13 KiB) Viewed 3097 times
These users thanked the author dazz for the post:
DavidA (Thu Jul 12, 2012 10:04 pm)
Rating: 5.26%
 
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

User avatar
DavidA
Matrix Staff
Posts: 1060
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 275 times
Contact:

Re: Programming the Amicus18

Postby DavidA » Thu Jul 12, 2012 10:04 pm

Hi,

Well firstly please look at the fantastic pic dazz posted.

The '-v -t PIC%p "%f.c" parts are the command line parameters that are passed to the programmer, these parameters are specific to the PPP programmer which we use for E-blocks, other programmers use different command line parameters, hence why in the picture dazz posted the parameters are completely different.

If the ones that dazz posted dont work, i suggest you look up the documentation for the programmer you have and then look up the command line parameters you will need to pass to the programmer to allow programming of your specific chip.

As i mentioned we havent really seen this programmer before, we do offer guidance for getting E-blocks (our own programmer) and the PICKit2/PICKit3 working as these are by far the most popular programmers.

Flowcode will allow you to program with any programmer as long as it accepts command line parameters.

Manx_Man
Posts: 4
Joined: Tue Jul 10, 2012 9:41 pm
Has thanked: 3 times
Contact:

Re: Programming the Amicus18

Postby Manx_Man » Thu Jul 12, 2012 11:05 pm

Thanks Dazz and Dave,

I have tried your compiler parameters setting, but i get the message 'Wrong HEX file'.

But i have come up with a solution which works :-

1. Compile using Flowcode using default seting.
2. Compile to Hex using flowcode using defaults seting.
3. Open up the raw hex file using note book and insert the following picece of code into line one:-
:020000040000FA.
4. Press the Programme or compile to chip icon, then the program loads into the Amicus18 and the run ok...

A bit long winded method i know, but it works and i can use Flowcode, which is much easier than learning ASM.
:P
I hope this help other members.

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 514 times
Been thanked: 467 times
Contact:

Re: Programming the Amicus18

Postby dazz » Fri Jul 13, 2012 12:19 am

Hi manx man

Can you add the following to the linker options (see attached pic), i think it might sort it out, been doing a bit of digging and that code you posted is for extended hex and adding the following to the boostc linker options (-hexela add it just before the last -p ) should add your line of code automatically ive tested by compiling several files to hex and it add the first line you typed

let us know if it works

Regards

Dazz

Untitled.png
Untitled.png (38.54 KiB) Viewed 3077 times
These users thanked the author dazz for the post (total 2):
Manx_Man (Fri Jul 13, 2012 6:47 pm) • medelec35 (Wed Jul 25, 2012 11:35 pm)
Rating: 10.53%
 
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

Manx_Man
Posts: 4
Joined: Tue Jul 10, 2012 9:41 pm
Has thanked: 3 times
Contact:

Re: Programming the Amicus18

Postby Manx_Man » Fri Jul 13, 2012 6:47 pm

Dazz,

It works....Many thanks.

Excellant

:P

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 514 times
Been thanked: 467 times
Contact:

Re: Programming the Amicus18

Postby dazz » Fri Jul 13, 2012 9:13 pm

Thanks for letting me know

Regards
Dazz
These users thanked the author dazz for the post:
Manx_Man (Fri Jul 13, 2012 11:16 pm)
Rating: 5.26%
 
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php