Skip to main content
Topic: PIC firmware v3.0 for Demon core v3 (Read 36204 times) previous topic - next topic

PIC firmware v3.0 for Demon core v3

This is PIC firmware v3.0 for Demon core v3. Includes Windows update utility and bat file

Get Demon core v3.xx

Get firmware upgrade utilities for other platforms

List of application downloads on the wiki

Fixes
*SPI speed increase in v2.6 tested ok with v3.xx Demon core, made permanent
*Updated to v3.0 to match v3.xx Demon core, this will help distinguish the full speed SPI versions for Demon core v3.xx from low-speed versions for SUMP core v2
*Fixed Winbond ROM read issue
Got a question? Please ask in the forum for the fastest answers.

Re: PIC firmware v3.0 for Demon core v3

Reply #1
Anyone seen issues updating?
Was out yesterday and the IT gnome decided it would be good to update this desktop to win7sp1.
When starting the boot loader it attempts to install the driver (really attach the USB HID driver) but device mangler shows the device fails to start.  Can update it elsewhere of course but am willing to help to try to resolve this before just connecting it to my linux box and updating.

P

Re: PIC firmware v3.0 for Demon core v3

Reply #2
Hi P,

Thanks for the report, I'm sorry about the upgrade issue.

I'm not sure what the issue would be. I've been waiting to hear of similar issues, but there have been none so far. Did you update on Linux instead?
Got a question? Please ask in the forum for the fastest answers.

Re: PIC firmware v3.0 for Demon core v3

Reply #3
Have not upgraded the pic yet. 
This is an original unit that the boot loader was missing on but after rescue its been working without issue.
Have not looked for any comments from diolan to see if they have seen issues yet.

Re: PIC firmware v3.0 for Demon core v3

Reply #4
I haven't had any problem with new fw and fpga updates. Clear signals, fast communication... all ok

Re: PIC firmware v3.0 for Demon core v3

Reply #5
Hi pbilke,

Any update on this issue? Did you get it going again? Please let me know if you need any more help.
Got a question? Please ask in the forum for the fastest answers.

Re: PIC firmware v3.0 for Demon core v3

Reply #6
Where can I get the source code for the PIC firmware?

I want to use the hardware UART to control some AX-12 actuators, and I want to leave the OLS operational if possible.

Re: PIC firmware v3.0 for Demon core v3

Reply #7
The latest should be in the gadget factory git hub:
http://gadgetfactory.net/logicsniffer/

I attached my latest copy, though it may not be synced. You'll also need to get the Microchip USB stuff on your own.
Got a question? Please ask in the forum for the fastest answers.

Re: PIC firmware v3.0 for Demon core v3

Reply #8
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.

Re: PIC firmware v3.0 for Demon core v3

Reply #9
I'm really sorry, I've also never worked with them.
Got a question? Please ask in the forum for the fastest answers.

Re: PIC firmware v3.0 for Demon core v3

Reply #10
@mjbrown: I suspect you need to do a 'mvn clean install' (presumed you've installed Maven) in [tt:]OpenBench-Logic-Sniffer/client/jawis-client[/tt:]...

HtH
when good software is not an alternative...

Re: PIC firmware v3.0 for Demon core v3

Reply #11
[quote author="ian"]The latest should be in the gadget factory git hub:
http://gadgetfactory.net/logicsniffer/
[/quote]

Hi Ian,

lately I searched for the PIC-Firmware source code on GitHub
https://github.com/GadgetFactory/OpenBe ... ic-Sniffer
but all I found where the already compiled HEX-Files in this location
https://github.com/GadgetFactory/OpenBe ... C_firmware

In the end I pulled the files from the old gadgetforge svn.

[quote author="ian"]
I attached my latest copy, though it may not be synced. You'll also need to get the Microchip USB stuff on your own.
[/quote]
Would be nice if the source code could be merged into the github project files, maybe into a  dedicated directory "PIC-Firmware/src".

Adding a README with a link to this article
http://dangerousprototypes.com/docs/Com ... C_projects
should get people started.

Eberhard

Re: PIC firmware v3.0 for Demon core v3

Reply #12
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
};

Re: PIC firmware v3.0 for Demon core v3

Reply #13
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.

Re: PIC firmware v3.0 for Demon core v3

Reply #14
No worries, sorry about the error in the docs. This will be eventually moved to the open USB stack and then we can distribute the complete source.
Got a question? Please ask in the forum for the fastest answers.