Hello Ben,
Yes that does work prerfectly, but I would prefer to declare the variable in assembler. Is that possible?
Cheers,
Bert
Search found 23 matches
- Wed Nov 26, 2008 11:46 am
- Forum: General / Misc
- Topic: Define variable in asm
- Replies: 3
- Views: 3810
- Tue Nov 25, 2008 10:21 pm
- Forum: General / Misc
- Topic: Define variable in asm
- Replies: 3
- Views: 3810
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
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
- Mon Nov 24, 2008 1:04 pm
- Forum: General / Misc
- Topic: Flowcode variables in C in a macro
- Replies: 2
- Views: 3475
Re: Flowcode variables in C in a macro
Ah, this works perfectly, thanks Sean.
- Sun Nov 23, 2008 11:09 am
- Forum: General / Misc
- Topic: Flowcode variables in C in a macro
- Replies: 2
- Views: 3475
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
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
- Fri Jun 06, 2008 10:45 pm
- Forum: Bugs / Application Errors
- Topic: 18F4685 fails to program
- Replies: 3
- Views: 10718
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 faile...
- Mon May 26, 2008 1:29 pm
- Forum: Bugs / Application Errors
- Topic: 18F4685 fails to program
- Replies: 3
- Views: 10718
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...
- Wed May 21, 2008 8:10 pm
- Forum: Bugs / Application Errors
- Topic: ARM programmer fails to install
- Replies: 4
- Views: 5007
Re: ARM programmer fails to install
Installing .NET runtime seems to solve the problem.
Thanks again for your quick reply!
Bert
Thanks again for your quick reply!
Bert
- Wed May 21, 2008 4:42 pm
- Forum: Bugs / Application Errors
- Topic: ARM programmer fails to install
- Replies: 4
- Views: 5007
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
Maybe I should download the updated version of Flowcode for ARMs and try it that way?
Bert
- Wed May 21, 2008 1:17 pm
- Forum: Bugs / Application Errors
- Topic: ARM programmer fails to install
- Replies: 4
- Views: 5007
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 thi...
- Thu Jan 17, 2008 11:55 am
- Forum: Flowcode V2 & V3
- Topic: Embedded c-code
- Replies: 9
- Views: 12274
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
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
- Wed Jan 16, 2008 5:26 pm
- Forum: Flowcode V2 & V3
- Topic: Embedded c-code
- Replies: 9
- Views: 12274
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
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
- Wed Jan 16, 2008 4:19 pm
- Forum: Flowcode V2 & V3
- Topic: Embedded c-code
- Replies: 9
- Views: 12274
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...
- Thu Jan 10, 2008 6:09 pm
- Forum: Flowcode V2 & V3
- Topic: Convert string to integer (or byte)
- Replies: 3
- Views: 4842
- Thu Jan 10, 2008 3:37 pm
- Forum: Flowcode V2 & V3
- Topic: Convert string to integer (or byte)
- Replies: 3
- Views: 4842
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
Bert
- Mon Dec 31, 2007 2:15 pm
- Forum: Flowcode V2 & V3
- Topic: SDK program
- Replies: 6
- Views: 5958
- Mon Dec 31, 2007 2:12 pm
- Forum: Flowcode V2 & V3
- Topic: BTG _option_reg, 0
- Replies: 2
- Views: 3107
- Thu Dec 27, 2007 3:48 pm
- Forum: Flowcode V2 & V3
- Topic: BTG _option_reg, 0
- Replies: 2
- Views: 3107
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
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
- Mon Dec 24, 2007 2:44 pm
- Forum: Flowcode V2 & V3
- Topic: SDK program
- Replies: 6
- Views: 5958
- Fri Dec 21, 2007 11:14 pm
- Forum: E-blocks
- Topic: EB023 fail to load page on testprogram
- Replies: 2
- Views: 4107
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 ...
- Wed Dec 19, 2007 9:36 pm
- Forum: E-blocks
- Topic: EB023 fail to load page on testprogram
- Replies: 2
- Views: 4107
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 tra...
- Tue Mar 06, 2007 12:01 pm
- Forum: Flowcode V2 & V3
- Topic: File format
- Replies: 1
- Views: 2627
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
Bert
- Thu Mar 01, 2007 11:32 am
- Forum: Flowcode V2 & V3
- Topic: Fuses for non-standard programmer
- Replies: 3
- Views: 4009
- Thu Mar 01, 2007 12:05 am
- Forum: Flowcode V2 & V3
- Topic: Fuses for non-standard programmer
- Replies: 3
- Views: 4009
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...