Search found 23 matches

by bert
Wed Nov 26, 2008 11:46 am
Forum: General / Misc
Topic: Define variable in asm
Replies: 3
Views: 3558

Re: Define variable in asm

Hello Ben,

Yes that does work prerfectly, but I would prefer to declare the variable in assembler. Is that possible?

Cheers,
Bert
by bert
Tue Nov 25, 2008 10:21 pm
Forum: General / Misc
Topic: Define variable in asm
Replies: 3
Views: 3558

Define variable in asm

I want to define a variable called asmtest in asm. I thought I could do this in a C block (for an 18F4455 PIC):

asm{
asmtest equ 0x00000006
// rest of the asm code
}

But I get a syntax error. Could you tell me what the proper syntax is please?

Cheers,
Bert
by bert
Mon Nov 24, 2008 1:04 pm
Forum: General / Misc
Topic: Flowcode variables in C in a macro
Replies: 2
Views: 3285

Re: Flowcode variables in C in a macro

Ah, this works perfectly, thanks Sean.
by bert
Sun Nov 23, 2008 11:09 am
Forum: General / Misc
Topic: Flowcode variables in C in a macro
Replies: 2
Views: 3285

Flowcode variables in C in a macro

I have a macro is called Mtest, with a local variable called Mtest.VarTest.

So in a C-box (in that same macro) I would expect this variable to be called FCV_MTEST.VARTEST but that doesn't work. What would be the proper syntax in this case?

Cheers,
Bert
by bert
Fri Jun 06, 2008 10:45 pm
Forum: Bugs / Application Errors
Topic: 18F4685 fails to program
Replies: 3
Views: 8961

Re: 18F4685 fails to program

Hi Ben, Thanks for your reply. I still get an error message: Launching the programmer... C:\Program Files\Matrix Multimedia\Common\PPPv3\PPPv3.exe -cs 2 -nogui "18F4685test.hex" Sending program... Erasing the PICmicro Writing program memory .. Writing configuration memory Programming failed: <8><10>...
by bert
Mon May 26, 2008 1:29 pm
Forum: Bugs / Application Errors
Topic: 18F4685 fails to program
Replies: 3
Views: 8961

18F4685 fails to program

The EB006 / PPP will not program an 18F4685 pic. If I take the HEX file gerenated by Flowcode and use a different programmer (the Wisp648) it programs just fine, so apparently the HEX file and the 18F4685 are fine. This is a part of the output file from PPP: C:\Program Files\Matrix Multimedia\Common...
by bert
Wed May 21, 2008 8:10 pm
Forum: Bugs / Application Errors
Topic: ARM programmer fails to install
Replies: 4
Views: 4755

Re: ARM programmer fails to install

Installing .NET runtime seems to solve the problem.

Thanks again for your quick reply!

Bert
by bert
Wed May 21, 2008 4:42 pm
Forum: Bugs / Application Errors
Topic: ARM programmer fails to install
Replies: 4
Views: 4755

Re: ARM programmer fails to install

Thanks for your quick reply. The driver now installs without warnings but mLoader.exe still won't start.

Maybe I should download the updated version of Flowcode for ARMs and try it that way?

Bert
by bert
Wed May 21, 2008 1:17 pm
Forum: Bugs / Application Errors
Topic: ARM programmer fails to install
Replies: 4
Views: 4755

ARM programmer fails to install

I have downloaded Flowcode for ARMs from the website. Installation went fine until the moment that the programmer software was to be installed. I received this errormessage: "The current language is not supported by the Device Driver Installation wizard. Contact the vendor that provided you this pac...
by bert
Thu Jan 17, 2008 11:55 am
Forum: Flowcode V2 & V3
Topic: Embedded c-code
Replies: 9
Views: 11779

Re: Embedded c-code

Ok, thanks Ben!

One final question: I noticed that the libraries eeprom.pic18.lib, flash.pic18.lib and adc.pic18.lib are not present in the Flowcode boostC library directory (as opposed to the pic16 versions that are present in that directory). Can they be downloaded separately?

Bert
by bert
Wed Jan 16, 2008 5:26 pm
Forum: Flowcode V2 & V3
Topic: Embedded c-code
Replies: 9
Views: 11779

Re: Embedded c-code

Thanks for your quick reply Ben! This works perfectly.

Can I leave the random library in the compiler options list or will that have a negative inpact of some sort on other projects?

Bert
by bert
Wed Jan 16, 2008 4:19 pm
Forum: Flowcode V2 & V3
Topic: Embedded c-code
Replies: 9
Views: 11779

Embedded c-code

According to the boostC manual srand() and rand() are valid functions, but this c-code block fails: srand (FCV_RANDOM); FCV_RANDOM = rand (); with list of errors, including srand and rand being unknown: C:\PICflow\projecten\lopend\Random4.c(384:2): error: unknown identifier 'srand' C:\PICflow\projec...
by bert
Thu Jan 10, 2008 6:09 pm
Forum: Flowcode V2 & V3
Topic: Convert string to integer (or byte)
Replies: 3
Views: 4552

Great, thanks Ben!

I now do this to get two numbers out of the string (for example "64"):

number = ( string[0] - 48 ) * 10
number = number + string[1] - 48

Is this the preferred way or is there a smarter command?

Bert
by bert
Thu Jan 10, 2008 3:37 pm
Forum: Flowcode V2 & V3
Topic: Convert string to integer (or byte)
Replies: 3
Views: 4552

Convert string to integer (or byte)

I have a string which contains "6" and I want to convert that string to an integer (or byte) so I can use it in a calculation. Which command do I need to use?

Bert
by bert
Mon Dec 31, 2007 2:15 pm
Forum: Flowcode V2 & V3
Topic: SDK program
Replies: 6
Views: 5460

Thanks, I'll take a look at that. The helpfile for this component (custom.hlp) doesn't seem to exist (at least not on my harddrive). Can you point me to a download link?
by bert
Mon Dec 31, 2007 2:12 pm
Forum: Flowcode V2 & V3
Topic: BTG _option_reg, 0
Replies: 2
Views: 2927

I will check out the C manual, I didn't even know I had one :)
by bert
Thu Dec 27, 2007 3:48 pm
Forum: Flowcode V2 & V3
Topic: BTG _option_reg, 0
Replies: 2
Views: 2927

BTG _option_reg, 0

I want to toggle bit 0 of the OPTION_REG register with asm, like this (entered in a C-box):

asm
{
BTG _option_reg, 0
}


but for some reason it gives an arror and won't compile. I think this is valid Microchip assembler. Any (asm) suggestions how to get this to work?

Bert
by bert
Mon Dec 24, 2007 2:44 pm
Forum: Flowcode V2 & V3
Topic: SDK program
Replies: 6
Views: 5460

Has the VB5 SDK been released yet? I can only find an SDK for V2 but I assume that won't work with V3 (in fact I suspect it won't work for any version because the module1.bas file appears to be missing).

Bert
by bert
Fri Dec 21, 2007 11:14 pm
Forum: E-blocks
Topic: EB023 fail to load page on testprogram
Replies: 2
Views: 3930

Problem fixed

After hours of messing about with settings and Ethereal, which is now called Wireshark btw, I finally found the problem. In the pdf that came with the E-block it says that the ipadres of the networkcard needs to set. The instructions say that you can use ipconfig the find out the current ip address ...
by bert
Wed Dec 19, 2007 9:36 pm
Forum: E-blocks
Topic: EB023 fail to load page on testprogram
Replies: 2
Views: 3930

EB023 fail to load page on testprogram

I'm testing the EB023 block with the testporgram and setup from the small CD (EB023_test.hex). When I switch on the programmer the program says "Starting up... completed" as it should (this only takes a fraction of a second). The "cable not connected" icon disappears from the tray so it would seem t...
by bert
Tue Mar 06, 2007 12:01 pm
Forum: Flowcode V2 & V3
Topic: File format
Replies: 1
Views: 2493

File format

Is the file format of the .fcf file available somewhere? I want to use an external program to write this file (sort of like pre-processor) and then continue working on it using Flowcode itself.

Bert
by bert
Thu Mar 01, 2007 11:32 am
Forum: Flowcode V2 & V3
Topic: Fuses for non-standard programmer
Replies: 3
Views: 3821

Thanks Steve, that did fix it.

Nevertheless I still would expect any asm statement added in a C box to be carried on to the asm file. Why didn't that work?

Bert
by bert
Thu Mar 01, 2007 12:05 am
Forum: Flowcode V2 & V3
Topic: Fuses for non-standard programmer
Replies: 3
Views: 3821

Fuses for non-standard programmer

I use an Xwisp programmer which assumes the fuses to be in the hex file. In my program I've added a C box at the very beginning of the program with the following content: /* fuses asm __config 0x3f32 */ While downloading the programmer complains and says it cannot find fuses in the hex file. I don't...