Search found 1445 matches

by kersing
Wed May 06, 2009 10:54 pm
Forum: General / Misc
Topic: 16F675 interupt
Replies: 4
Views: 3004

Re: 16F675 interupt

Hi, It looks like a (small) error in the flowcode definition. At least, looking at the processor definition IOC is defined, IOCB is not. You could try changing iocb to ioc (multiple times) in 12F675.fcd (directory Program Files\Matrix Multimedia\Flowcode V3\fcd) Or wait for Ben or Steve to provide t...
by kersing
Mon May 04, 2009 6:39 pm
Forum: General / Misc
Topic: 16F684 weak pull-ups?
Replies: 3
Views: 2234

Re: 16F684 weak pull-ups?

jadiflow wrote:wpua = 0b00110111; //wpua on all

The wpua... line generates a compiler error. I checked the 16F684.fcd and didn't find anything on the weak pullup register. Is this not implemented in the F684?


Jan,

It looks like it is called WPU, not WPUA in the definition for this processor.

Good luck,

Jac
by kersing
Mon Apr 13, 2009 9:46 pm
Forum: Suggestions
Topic: Add checkbox to USBSlave properties screen
Replies: 1
Views: 2832

Add checkbox to USBSlave properties screen

Hi, In the USBSlaves SlaveProperty TAB one has to specify a Slave Service Macro Name, even when no slave service is being used. If no macro name is supplied the code generated for FCD_USBSlave0_Start_Slave_Service is invalid. Without a macro name there are a lot of FCM_(...params...) calls in the ge...
by kersing
Mon Apr 13, 2009 9:34 pm
Forum: Bugs / Application Errors
Topic: USB Components: pic_usb does not implement req_Set_Interface
Replies: 1
Views: 2653

USB Components: pic_usb does not implement req_Set_Interface

Hi, pic_usb.h defines req_Set_Interface. However in pic_usb.c it is not used as it should be in usb_handle_standard_request. As a result the (Linux at least) USB stack waits a couple of seconds when trying to close a USB connection as it does not receive a reply to the request and has to wait for a ...
by kersing
Mon Apr 13, 2009 9:18 pm
Forum: Suggestions
Topic: USBSlave rename Start_Slave_Service
Replies: 1
Views: 2539

USBSlave rename Start_Slave_Service

Hi, Suggestion to rename the Start_Slave_Service of the USBSlave component to Run_Slave_Service or something along those lines. Start suggests (at least to me) a function spending a finite amount of time within the function. Looking at the code of Start_Slave_Service it becomes obvious it will not r...
by kersing
Mon Apr 06, 2009 11:05 pm
Forum: Flowcode V2 & V3
Topic: Flowcode V3 PIC USB Pack Released
Replies: 33
Views: 41836

Re: Flowcode V3 PIC USB Pack Released

I will look into why the details are not being displayed correctly with the USB slave component. Hi Ben, Did you get around to look at the issue with the details not being displayed? Looking at the code in usb_config_dll.c (usb_get_descriptor_callback): case 00: descriptor_size = sizeof(string_00);...
by kersing
Tue Mar 03, 2009 11:40 pm
Forum: Flowcode V2 & V3
Topic: Flowcode V3 PIC USB Pack Released
Replies: 33
Views: 41836

Re: Flowcode V3 PIC USB Pack Released

Ben,

I'll get back to you regarding my sample code. Have to clean it. There is some example code available on the internet, http://www.varxec.net/picdem_fs_usb/fsusb_demo.c for instance.
by kersing
Tue Mar 03, 2009 11:33 pm
Forum: Flowcode V2 & V3
Topic: Flowcode V3 PIC USB Pack Released
Replies: 33
Views: 41836

Re: Flowcode V3 PIC USB Pack Released

Ben, The information not being available seems to have something to do with it being declared "rom char *MX_...". If I change usb_config_dll.c to use a static or const char array for the MX_... and hard code the length (or use array element 0 as it contains the length) the information beco...
by kersing
Tue Mar 03, 2009 1:25 pm
Forum: Flowcode V2 & V3
Topic: Flowcode V3 PIC USB Pack Released
Replies: 33
Views: 41836

Re: Flowcode V3 PIC USB Pack Released

Hi Ben, The DLL is not used on Linux. The information 'lsusb' normally uses is stored in a text file on the system (manufacturer id and device id information). In the verbose mode lsusb requests additional information from the device. That is the information stored in the unicode strings as set in t...
by kersing
Tue Mar 03, 2009 12:21 pm
Forum: Flowcode V2 & V3
Topic: Flowcode V3 PIC USB Pack Released
Replies: 33
Views: 41836

Re: Flowcode V3 PIC USB Pack Released

Hi Ben, There is no need for a driver to be able to show information on connected devices on Linux. The OS has a convenient 'lsusb' command to list information on devices connected. To be able to talk to the simple function I've implemented I'm using libusb with a simple C program. So there is no ne...
by kersing
Mon Mar 02, 2009 10:35 pm
Forum: Flowcode V2 & V3
Topic: Flowcode V3 PIC USB Pack Released
Replies: 33
Views: 41836

Re: Flowcode V3 PIC USB Pack Released

Hi, Created a very simple program with the USB Slave. Used the properties of the component to set the 'Name' and 'Manufacturer'. When I connect the device to a Linux box the values are not shown, the output is: bcdDevice 0.01 iManufacturer 1 iProduct 2 iSerial 0 bNumConfigurations 1 Where I expect t...
by kersing
Mon Mar 02, 2009 10:16 pm
Forum: Bugs / Application Errors
Topic: Error in USBSlave_code.c after update to v3.6.11.53
Replies: 2
Views: 2989

Error in USBSlave_code.c after update to v3.6.11.53

Hi,

After updating Flowcode (for PIC) to 3.6.11.53 using the 3.4/3.5 updater code using the USB Slave component does not compile. The error is caused by a typo on line 375 of USBDlave_code.c, it reads '#els' and should be '#else'.

Best regards,

Jac
by kersing
Wed Sep 10, 2008 10:04 pm
Forum: Bugs / Application Errors
Topic: Macro with array as parameter fails in code generation
Replies: 4
Views: 4816

Re: Macro with array as parameter fails in code generation

Steve,

While trying to create a simple example I found I wasn't able to call the macro with an array. I did not notice this before because the code I have been working on calls the macro from custom_code so the caller is in C code, not the graphic program flow.

Best regards,

Jac
by kersing
Mon Sep 08, 2008 5:11 pm
Forum: Bugs / Application Errors
Topic: Macro with array as parameter fails in code generation
Replies: 4
Views: 4816

Re: Macro with array as parameter fails in code generation

Hi Steve, Actually, I found a way to pass arrays to a macro: * First define the array parameter with a size. (a[10]) * Next create the code in the macro, this step needs the array size to include all element directly accessed (something like a[3] == 1 requires the array to be defined with at least 4...
by kersing
Fri Sep 05, 2008 3:36 pm
Forum: Bugs / Application Errors
Topic: Macro with array as parameter fails in code generation
Replies: 4
Views: 4816

Macro with array as parameter fails in code generation

Hi, When creating a macro with an array (of bytes) as parameter flowcode generates code the preprocessor does not accept. In the generated c code (lines 50+51): //Macro function declarations void FCM_testMacro(char FCL_DATA[10]); This generates the following errors when trying to generate a HEX file...
by kersing
Sun Aug 31, 2008 9:12 am
Forum: Components (Comms)
Topic: ECIO and use of USB in Flowcode
Replies: 18
Views: 10752

Re: ECIO and use of USB in Flowcode

Hi again! Solved the issues listed in my previous message. According to the beta components page: Note: The ECIO definition files that come with Flowcode V3.2.2 do not include the USB interrupt function. Therefore if you are using V3.2.2 or earlier of Flowcode you will need to replace the ECIO FCD f...
by kersing
Sat Aug 30, 2008 7:57 pm
Forum: Components (Comms)
Topic: ECIO and use of USB in Flowcode
Replies: 18
Views: 10752

Re: ECIO and use of USB in Flowcode

Hi, I'm trying to create an USB application based on the USB_Mouse example provided in the beta components. After adding the usb_defs.h file to the correct directory I'm able to generate a hex file, however looking at the generated c code I noticed the following lines: //Start USB interrupts //Inter...
by kersing
Thu Aug 28, 2008 8:49 pm
Forum: Flowcode V2 & V3
Topic: USB of PIC 18F4550
Replies: 5
Views: 3364

Re: USB of PIC 18F4550

Hi Ben, Thank you for supplying the file. The USB example code in the beta components section did not compile when I commented the references to usb_defs.h. After copying the file to C:\Program Files\Matrix Multimedia\Flowcode V3\boostc\include flowcode generates the hex file succesfully. Best regar...
by kersing
Wed Aug 27, 2008 10:47 pm
Forum: Flowcode V2 & V3
Topic: USB of PIC 18F4550
Replies: 5
Views: 3364

Re: USB of PIC 18F4550

Hi Steve,

I'm looking at the HIB USB example, however it includes usb_defs.h which can't be found on my system. Is there anything I need to install to get this file (and probably other parts needed for USB as well) ??

Best regards,

Jac