Beginner with Flowcode

Moderator: Benj

ABrosi
Flowcode v5 User
Posts: 13
Joined: Fri Apr 05, 2013 6:15 pm
Been thanked: 1 time
Contact:

Beginner with Flowcode

Postby ABrosi » Sat Apr 20, 2013 4:53 pm

Hi

I am a beginner and have some questions.
- Could i use also the Microchip ICD3 programmer instead of the PICKit2 or 3?
- Could i compile to HiTech compatible C-Code (I tried to do but all register names are in small letters instead of upper case letters, so i have to change the letters manually to upper
case letters)
- Could i use also the Microchip Bootloader (MCHP_FSUSB) for the PIC 18F23K22 instead of the 18F4550


Thanks for your helps

Regards
ABrosi

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

Re: Beginner with Flowcode

Postby dazz » Sat Apr 20, 2013 7:12 pm

I am a beginner and have some questions.

I will answer here for you

- Could i use also the Microchip ICD3 programmer instead of the PICKit2 or 3?

Yes You can use any programmer as long as you know the correct parameters for the ICD3 there is a guide in the following link http://www.matrixmultimedia.com/support ... f=68&t=800


- Could i compile to HiTech compatible C-Code (I tried to do but all register names are in small letters instead of upper case letters, so i have to change the letters manually to upper case letters)

Yes you can use HiTech directly with flowcode check the following link http://www.matrixmultimedia.com/support ... f=68&t=788

- Could i use also the Microchip Bootloader (MCHP_FSUSB) for the PIC 18F23K22 instead of the 18F4550

Not sure as i cant work out what your asking ??

Although i dont use Hitech c others do if you need more help ask

Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

ABrosi
Flowcode v5 User
Posts: 13
Joined: Fri Apr 05, 2013 6:15 pm
Been thanked: 1 time
Contact:

Re: Beginner with Flowcode

Postby ABrosi » Sat Apr 20, 2013 9:11 pm

Hi Dazz

Thanks for your fast help.

I tried that before too, but it still does not work.

The Hi Tech compiler V9.63 does not support this processor (18F23K22).
I use Hi Tech compiler V9.65.

So i need more help.

Regards
ABrosi

ABrosi
Flowcode v5 User
Posts: 13
Joined: Fri Apr 05, 2013 6:15 pm
Been thanked: 1 time
Contact:

Re: Beginner with Flowcode

Postby ABrosi » Sat Apr 20, 2013 9:19 pm

hi

detailed compiler message

File name: C:\Users\Andi.AndiBrosi-PC\Documents\Flowcode\TasterLEDTest\TasterLEDTest.c
Title:
Description:
Generated by: Flowcode v5.5.2.1
Date: Saturday, April 20, 2013 22:18:16
Licence: Professional
Registered to: Hans-Andrea Brosi
Licence key: DZH6CV
http://www.matrixmultimedia.com
Start des Compilers...
C:\Program Files\HI-TECH Software\PICC-18\PRO\9.65\bin\picc18.exe --CHIP=18F23K22 -N48 TasterLEDTest.c
TasterLEDTest.c: FCD_LED0_LEDOn()
177: {trisa &= ~(1 << 4); porta |= (1 << 4);};
^ (192) undefinierter Bezeichner/Variablenname "trisa"
^ (192) undefinierter Bezeichner/Variablenname "porta"
TasterLEDTest.c: FCD_LED0_LEDOff()
188: {trisa &= ~(1 << 4); porta &= ~(1 << 4);};
^ (192) undefinierter Bezeichner/Variablenname "trisa"
^ (192) undefinierter Bezeichner/Variablenname "porta"
TasterLEDTest.c: main()
203: ansela = 0x00;
^ (192) undefinierter Bezeichner/Variablenname "ansela"
204: anselb = 0x00;
^ (192) undefinierter Bezeichner/Variablenname "anselb"
205: anselc = 0x00;
^ (192) undefinierter Bezeichner/Variablenname "anselc"
214: trisa = trisa & 0xEF;
^ (192) undefinierter Bezeichner/Variablenname "trisa"
216: porta = (porta & 0xEF) | 0x10;
^ (192) undefinierter Bezeichner/Variablenname "porta"
227: trisb = trisb | 0x01;
^ (192) undefinierter Bezeichner/Variablenname "trisb"
228: FCV_TASTERRB0 = ((portb & 0x01) == 0x01);
^ (192) undefinierter Bezeichner/Variablenname "portb"
HI-TECH C PRO for the PIC18 MCU Family V9.65
Copyright (C) 1984-2010 HI-TECH SOFTWARE
Serial number: HCPIC18P-654321
(908) Exit Status = 1
Rückgabewert = 1
Flowcode konnte den C-Code des Flussdiagramms nicht kompilieren, da folgende Fehler auftraten:


Wenn Ihr Flussdiagramm C-Code enthält,überprüfen Sie diesen sorgfältig. Falls das Flussdiagramm keinen C-Code enthält oder Sie sich sicher sein können, dass dieser Code fehlerfrei ist, dann wenden Sie sich an den technischen Support.


BEENDET


regards
ABrosi

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

Re: Beginner with Flowcode

Postby dazz » Sat Apr 20, 2013 9:29 pm

Hi

best thing is to tackle one issue at a time.
have you got your icd working with flowcode, if not its best to get this sorted first

Is there any reason you want to use Hitech C as opposed to the built in sourceboost in flowcode, i would get the programmer working and once its programing then set up Hitech c

Sourceboost supports the 18F23K22

It's difficult to remotely sort out lots of issues at once so it's best to try and sort it one at a time, so as you have tried bits already, open flowcode, select build, select compiler options from the list ,click on it on the window that opens theres an export box, click on it and export the fcs file to your desktop, zip it up and attach it to your post , then we can look at the icd settings, also what o/s are you using, and is mplab set up in the default locations etc

Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

ABrosi
Flowcode v5 User
Posts: 13
Joined: Fri Apr 05, 2013 6:15 pm
Been thanked: 1 time
Contact:

Re: Beginner with Flowcode

Postby ABrosi » Sat Apr 20, 2013 10:12 pm

hi

Thanks

ICD3 is running with sourceboost.

But i would like to use the Hi Tech compiler V9.65 (this supports the PIC 18F23K22), because i would like to use the Bootloader from Microchip and i could also import and edit the C code in MPLAB.
It work close all only that with the upper and lower case letters is a problem.

Please help me.

Regard
ABrosi

ABrosi
Flowcode v5 User
Posts: 13
Joined: Fri Apr 05, 2013 6:15 pm
Been thanked: 1 time
Contact:

Re: Beginner with Flowcode

Postby ABrosi » Sat Apr 20, 2013 10:26 pm

Hi

FCS-File is attached.

regards
ABrosi
Attachments
FlowcodeCompilerOptions.zip
(410 Bytes) Downloaded 146 times

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

Re: Beginner with Flowcode

Postby dazz » Sat Apr 20, 2013 10:43 pm

Hi

Try the attached fcs, import it in to compiler option and give it a name (say Hiicd33) click the save icon, just check in the compiler tab that the picc18.exe path is correct
Try to compile to chip and let us know if it works

Regards
Dazz

trythis.zip
(397 Bytes) Downloaded 152 times
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

ABrosi
Flowcode v5 User
Posts: 13
Joined: Fri Apr 05, 2013 6:15 pm
Been thanked: 1 time
Contact:

Re: Beginner with Flowcode

Postby ABrosi » Sun Apr 21, 2013 7:26 am

hi

Thanks for your help

The Path for the PICC18.exe is not the same on my computer.
I changed to C:\Program Files\HI-TECH Software\PICC-18\PRO\9.65\bin, but it still the same as i posted in the post from
Sat Apr 20, 2013 10:19 pm.
The register names still in small letters instead of upper case letters.

Do you have some more ideas?

regards
ABrosi

ABrosi
Flowcode v5 User
Posts: 13
Joined: Fri Apr 05, 2013 6:15 pm
Been thanked: 1 time
Contact:

Re: Beginner with Flowcode

Postby ABrosi » Sun Apr 21, 2013 10:07 am

Hi dazz

I did a step in the right direction, I find out that it works with the newest Hi-Tech Compiler Version (V9.80) instead of the Version (V9.65).
So i could compile to the Chip.

But, i still have the register names in small letters, if i let show me the C-Code in Flowcode V5.5.2.1
Could I let me show the Hi-Tech compatible C-Code in Flowcode or could i export the Hi-Tech compatible C-Code.

An other option for me would be also okey, if i could give the compiler an offset of 0x400 for the generated HEX-File, so i could use the Microchip Bootloader with the 18F23K22 controller to bootload the generated Hex-File from Flowcode.
Is that possible or you think, it does not work?


regards
Andi

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

Re: Beginner with Flowcode

Postby dazz » Sun Apr 21, 2013 10:26 am

Hi Andi
All i can think of is upload the bootloader then try , check this link as there a parameter on there for offsetting the code, this will then allow flowcode to send the hex to the pic in the correct place
http://www.matrixmultimedia.com/support ... f=68&t=788
I don't use HiTech but others do so it does work, read the above link, then let us know if it works, if it doesn't then hopefully one of the other forum users or matrix staff will pick it up tommorow

Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

ABrosi
Flowcode v5 User
Posts: 13
Joined: Fri Apr 05, 2013 6:15 pm
Been thanked: 1 time
Contact:

Re: Beginner with Flowcode

Postby ABrosi » Sun Apr 21, 2013 12:58 pm

Hi Dazz

It works all fine now, thanks very much for the great support.

Where i could find a discription of all preprocessor directives (Parameters)?

regards
Andi

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

Re: Beginner with Flowcode

Postby dazz » Sun Apr 21, 2013 1:23 pm

Hi Andi
Glad it worked out, the HiTech parameters will be in the manual for hitech c, should be under command line or something like that
Is it all working fine now and have you uploaded the bootloader, if so can you put up a quick post detailing the steps you used as this will help others who face similar issues
Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

ABrosi
Flowcode v5 User
Posts: 13
Joined: Fri Apr 05, 2013 6:15 pm
Been thanked: 1 time
Contact:

Re: Beginner with Flowcode

Postby ABrosi » Sun Apr 21, 2013 2:50 pm

Hi dazz

I could work now with standard Bootloader from Microchip.

1. Download and Install the newest Version Hi-Tech PIC18 Compiler (V9.80 or later)
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en542861
2. Start Flowcode and do a new project
3. Choose a PIC Processor which has the Microchip Bootloader on it or supports the Microchip Bootloader
(Bootloader documentation under Microchip AN1310 http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en546974)
4. Go under Flowcode 5.5.2.1 under >Build than >Compiler Options and > Import the attached HiTechMCHPBootLoader.FCS file (ZIP-File)

Attention: The Bootloader need the Space from 0x000 to 3FF, so you have maybe to change the Offsetparameter after import the HiTechMCHPBootLoader.FCS!

5. Develope your Code and simulate it in Flowcode 5.5.2.1
6. Compile the Code to Chip
7. Burn the HEX-File to the PIC with the ICD3 programmer or choose the Microchip Bootloader to load the HEX-File to Chip

I hope it helps

Regards
ABrosi
Attachments
HiTechMCHPBootLoader.zip
(395 Bytes) Downloaded 135 times
These users thanked the author ABrosi for the post:
dazz (Sun Apr 21, 2013 4:32 pm)
Rating: 5.88%