Hi,
I have isolated the problem to a single C statement. If it is in, I get the error described above. If it is out, it compiles to HEX without errors. The statement is:
#pragma DATA 0x2100, 0x12, 0x34, 0x56, 0x78 ;
to preset some eeprom memory locations.
What am I doing wrong here??
Jan Didden
Search found 273 matches
- Thu Jun 19, 2008 5:46 pm
- Forum: Bugs / Application Errors
- Topic: Error when compiling to Hex
- Replies: 14
- Views: 11230
- Thu Jun 19, 2008 9:56 am
- Forum: Bugs / Application Errors
- Topic: Error when compiling to Hex
- Replies: 14
- Views: 11230
Error when compiling to Hex
Hi, I receive an error when compiling to hex: /quote C:\.....\G2\quad G2-2.c(1174): error: missing semicolon C:\.....\G2\quad G2-2.c(1174): error: failure failure Return code = 1 Flowcode was unable to compile the flowchart's C code due to the following errors: If your flowchart contains C code, ple...
- Wed Jun 04, 2008 9:33 am
- Forum: Components (Other)
- Topic: Connecting a alphanumeric LCD to Flowcode
- Replies: 71
- Views: 66780
Re: Connecting a alphanumeric LCD to Flowcode
Just to make sure I understand the connections: Flowcode specified D0 bit = LCD D4 = component connection Data 1 Flowcode specified D1 bit = LCD D5 = component connection Data 2 Flowcode specified D2 bit = LCD D6 = component connection Data 3 Flowcode specified D3 bit = LCD D7 = component connection...
- Tue Jun 03, 2008 12:12 pm
- Forum: General / Misc
- Topic: Assigning a string to an array?
- Replies: 2
- Views: 3242
Re: Assigning a string to an array?
Of course....
Thanks.
Thanks.
- Tue Jun 03, 2008 10:38 am
- Forum: Suggestions
- Topic: Mixed switches
- Replies: 1
- Views: 3320
Mixed switches
Hi, Currently, when you attach a switch component, all switches are either momentary or toggle. If you have one or a few of each you need to attach multiple switch components to different ports. My suggestion is to modify the switch component so that individual switches can be specified as momentary...
- Tue Jun 03, 2008 10:21 am
- Forum: General / Misc
- Topic: Assigning a string to an array?
- Replies: 2
- Views: 3242
Assigning a string to an array?
Hi,
I have defined an array (string) of 20 chars. I want to assign a string to the array in one shot, like:
MyArray [] = "This is my string" , or
MyArray [20] = "This is my string" or
MyArray = "This is my string"
Neither syntax works. Is this possible, and what is the correct syntax?
Jan Didden
I have defined an array (string) of 20 chars. I want to assign a string to the array in one shot, like:
MyArray [] = "This is my string" , or
MyArray [20] = "This is my string" or
MyArray = "This is my string"
Neither syntax works. Is this possible, and what is the correct syntax?
Jan Didden
- Mon Jun 02, 2008 3:56 pm
- Forum: Components (Other)
- Topic: HD44780 LCD Command Set emulation?
- Replies: 9
- Views: 7312
Re: HD44780 LCD Command Set emulation?
OK, thanks Steve. Any plans to implement others?
Jan Didden
Jan Didden
- Mon Jun 02, 2008 1:08 pm
- Forum: Components (Other)
- Topic: HD44780 LCD Command Set emulation?
- Replies: 9
- Views: 7312
HD44780 LCD Command Set emulation?
Hello,
I noticed that in Flowcode you can sent control commands directly to the LCD, e.g. 'cursor on' (hex 15). But that is not shown of the simulator display, right? Are there any commands that *are* simulated and can be verified during a sim?
Jan Didden
I noticed that in Flowcode you can sent control commands directly to the LCD, e.g. 'cursor on' (hex 15). But that is not shown of the simulator display, right? Are there any commands that *are* simulated and can be verified during a sim?
Jan Didden
- Sun Jun 01, 2008 12:41 pm
- Forum: Components (Comms)
- Topic: Bi-phase rotary encoder
- Replies: 6
- Views: 6670
Re: Bi-phase rotary encoder
... and one more: Using the switch macro to read a switch, you need to specify a variable WhichSwitch(byte). What does that signify? If I have switches A1...A8, and I want to read switch A3, do I use WhichSwitch = 2? 3? If I define a variable SW3(byte), and give the switch also the label SW3, can I ...
- Sun Jun 01, 2008 10:10 am
- Forum: Components (Comms)
- Topic: Bi-phase rotary encoder
- Replies: 6
- Views: 6670
Re: Bi-phase rotary encoder
That would be nice!
Another, related, question: does Flowcode support the Interrupt-on-Change feature on some PIC ports? Or do I need to set the appropriate registers in C or ASM supplemental code?
Edit: answer found elsewhere: No
Jan Didden
Another, related, question: does Flowcode support the Interrupt-on-Change feature on some PIC ports? Or do I need to set the appropriate registers in C or ASM supplemental code?
Edit: answer found elsewhere: No
Jan Didden
- Mon May 26, 2008 9:04 am
- Forum: E-blocks
- Topic: ECIO digital I/O
- Replies: 1
- Views: 3020
ECIO digital I/O
Hi, I am planning to buy a few ECIO modules, but am a bit confused on the specs. The ECIO-40P datasheet says I get up to 5 PWM channels (I need 4, so therefore my choice). However, the data sheet says the 18F4455 (used on the ECIO-40P) only has 2 PWM channels. Also, Flowcode only lets me add 2 PWM p...
- Fri May 23, 2008 5:37 pm
- Forum: Components (Comms)
- Topic: Bi-phase rotary encoder
- Replies: 6
- Views: 6670
Re: Bi-phase rotary encoder
OK, thanks.
Jan Didden
Jan Didden
- Fri May 23, 2008 5:32 pm
- Forum: General / Misc
- Topic: presetting eeprom
- Replies: 15
- Views: 11553
Re: presetting eeprom
Perfect! Thanks Steve, have a great weekend!
Jan Didden
Jan Didden
- Thu May 22, 2008 1:05 pm
- Forum: General / Misc
- Topic: presetting eeprom
- Replies: 15
- Views: 11553
presetting eeprom
Hi, I need to set some eeprom locations just one time, to read initial data when the unit is switched on first. From then on, the eeprom data will be changed as part of the operation. So I can't set it as part of the flowchart, but need to somehow set it when I program the chip. Can I do that? Edit:...
- Thu May 22, 2008 12:31 pm
- Forum: Components (Comms)
- Topic: Bi-phase rotary encoder
- Replies: 6
- Views: 6670
Bi-phase rotary encoder
Hello,
I need to inteface a rotary encoder to a PIC. I can bit-bang it, but I would like to know if there is a standard macro for such a component available?
TIA,
Jan Didden
I need to inteface a rotary encoder to a PIC. I can bit-bang it, but I would like to know if there is a standard macro for such a component available?
TIA,
Jan Didden
- Fri May 16, 2008 11:47 am
- Forum: Flowcode V2 & V3
- Topic: integer to string
- Replies: 5
- Views: 4746
Re: integer to string
Ahhh! You need to spell out 'String' in the function name...
Thanks,
Jan Didden
Thanks,
Jan Didden
- Fri May 16, 2008 9:19 am
- Forum: Flowcode V2 & V3
- Topic: integer to string
- Replies: 5
- Views: 4746
Re: integer to string
Hello Ben, While I understand the example you provided, it still isn't clear to me why the built-in string fiunction ToStr$() doesn't work. I would rather have that working; it is provided for this express purpose I assume. It's simple: I have an integer variable Ibias, and I want to convert it to a...
- Tue May 13, 2008 10:37 am
- Forum: Flowcode V2 & V3
- Topic: integer to string
- Replies: 5
- Views: 4746
Re: integer to string
Thanks Ben, I study the example.
Jan Didden
Jan Didden
- Tue May 13, 2008 9:33 am
- Forum: Flowcode V2 & V3
- Topic: integer to string
- Replies: 5
- Views: 4746
integer to string
Hello, I need to convert an integer to a string for outputting on an RS232. I tried this: IbStr[20] = ToStr$(Ib) where Ib is the int variable, and IbStr is defined as a string[20]. Anyway I try this: IbStr[] = ToStr$(Ib) or IbStr=ToStr$(Ib) or even ToStr$(123) I get an error message, undifined var, ...
- Tue May 13, 2008 9:02 am
- Forum: General / Misc
- Topic: Creating time mark output
- Replies: 3
- Views: 3777
Re: Creating time mark output
OK, clear. So, while in a delay, I continue to receive interrupts (if they are enabled, of course)?
Thanks,
Jan Didden
Thanks,
Jan Didden
- Fri May 02, 2008 12:07 pm
- Forum: General / Misc
- Topic: Creating time mark output
- Replies: 3
- Views: 3777
Creating time mark output
Hi, I need to create a time mark pulse at around 1mSec intervals, but not constant, it varies a bit. I was planning to use a timer int to increment a counter. So far so good, but I also use several delays in the program. The time mark int should occur even during a delay. I don't know which timers F...
- Fri Apr 18, 2008 8:52 pm
- Forum: General / Misc
- Topic: Macro calls
- Replies: 2
- Views: 3410
Re: Macro calls
Steve, perfect! Thanks!
Jan Didden
Jan Didden
- Thu Apr 17, 2008 6:31 pm
- Forum: General / Misc
- Topic: Macro calls
- Replies: 2
- Views: 3410
Macro calls
Hi, I'n new to Flowcode, so please forgive me if I ask the obvious. I have a Q about macro/subroutine calls. You can specify a parameter and a returned value. Is that particular parameter (variable?) automagically passed when I call the macro? Like it is a global variable? What happens with the retu...