Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - mjbrown

1
Open Bench Logic Sniffer / Re: PIC firmware v3.0 for Demon core v3
Nevermind.

I got it working by using the "CDC Serial Emulator" usb_descriptors.c and usb_config.h instead of the "CDC - Basic Demo" like it says in main.c.  I haven't tried doing a ROM update but I finally got putUSBUSART working and that was all I needed.  Sorry for whining before trying everything I could think of.
2
Open Bench Logic Sniffer / Re: PIC firmware v3.0 for Demon core v3
I was able to download and compile your PIC firmware code, but USB functionality isn't quite working right.

I notice in the compiled PIC firmware, the Product ID is 0xFC92.  The product ID in the usb_descriptors.c from CDC - Serial Demo from Microchip is now 0x000A.  I imagine there are also other changes which are causing my USB not to work quite right.  Could you diff the current usb_descriptors.c to your version and give me the changes?

The second thing I noticed is in the .zip you posted there is a PUMP.hex and a ols.hex.  ols.hex works correctly and is twice the size of PUMP.hex.  The hex I get after compiling is much closer to the PUMP.hex, am I doing something wrong when I compile?

Thanks.

ROM USB_DEVICE_DESCRIPTOR device_dsc=
{
    0x12,                  // Size of this descriptor in bytes
    USB_DESCRIPTOR_DEVICE,  // DEVICE descriptor type
    0x0200,                // USB Spec Release Number in BCD format
    CDC_DEVICE,            // Class Code
    0x00,                  // Subclass code
    0x00,                  // Protocol code
    USB_EP0_BUFF_SIZE,      // Max packet size for EP0, see usb_config.h
    0x04D8,                // Vendor ID
    0x000A,                // Product ID: CDC RS-232 Emulation Demo
    0x0100,                // Device release number in BCD format
    0x01,                  // Manufacturer string index
    0x02,                  // Product string index
    0x00,                  // Device serial number string index
    0x01                    // Number of possible configurations
};
3
Open Bench Logic Sniffer / Re: PIC firmware v3.0 for Demon core v3
Thank you.  I tried getting the source from the git repository and when trying to build I got the error:

OpenBench-Logic-Sniffer/build/build.xml:50: The following error occurred while executing this line:
OpenBench-Logic-Sniffer/client/jawis-client/ols.distribution/target/ols-0.9.4-full.zip' doesn't exist

I'm not familiar with ant and maven so I have no clue how to troubleshoot.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01212299728session_write_close ( )...(null):0
20.01242431328ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01242432104Database_MySQL->query( ).../DatabaseHandler.php:119
40.05702570848Database_MySQL->error( ).../Db-mysql.class.php:273