Dangerous Prototypes

Other projects => Open Bench Logic Sniffer => Topic started by: ian on February 23, 2011, 07:17:01 pm

Title: PIC firmware v3.0 for Demon core v3
Post by: ian on February 23, 2011, 07:17:01 pm
This is PIC firmware v3.0 for Demon core v3. Includes Windows update utility and bat file

Get Demon core v3.xx (http://http://dangerousprototypes.com/forum/viewtopic.php?f=23&t=1711#p16505)

Get firmware upgrade utilities for other platforms (http://http://dangerousprototypes.com/forum/viewtopic.php?f=23&t=1780)

List of application downloads on the wiki (http://http://dangerousprototypes.com/docs/Open_Bench_Logic_Sniffer#Software)

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
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: pbilke on February 25, 2011, 04:26:31 pm
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
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: ian on February 26, 2011, 10:04:12 am
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?
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: pbilke on February 28, 2011, 06:01:37 pm
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.
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: exerion on March 02, 2011, 02:11:56 am
I haven't had any problem with new fw and fpga updates. Clear signals, fast communication... all ok
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: ian on March 05, 2011, 02:32:24 pm
Hi pbilke,

Any update on this issue? Did you get it going again? Please let me know if you need any more help.
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: mjbrown on November 01, 2011, 08:44:26 am
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.
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: ian on November 01, 2011, 02:13:58 pm
The latest should be in the gadget factory git hub:
http://gadgetfactory.net/logicsniffer/ (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.
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: mjbrown on November 02, 2011, 07:19:29 am
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.
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: ian on November 02, 2011, 08:15:09 am
I'm really sorry, I've also never worked with them.
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: jawi on November 02, 2011, 08:25:33 am
@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
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: wayoda on November 02, 2011, 10:31:45 am
[quote author="ian"]The latest should be in the gadget factory git hub:
http://gadgetfactory.net/logicsniffer/ (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 (https://github.com/GadgetFactory/OpenBench-Logic-Sniffer)
but all I found where the already compiled HEX-Files in this location
https://github.com/GadgetFactory/OpenBe ... C_firmware (https://github.com/GadgetFactory/OpenBench-Logic-Sniffer/tree/master/OLS_Upgrader/PIC_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 (http://dangerousprototypes.com/docs/Compiling_PIC_projects)
should get people started.

Eberhard
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: mjbrown on November 16, 2011, 11:02:55 pm
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
};
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: mjbrown on November 17, 2011, 06:58:38 am
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.
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: ian on November 17, 2011, 10:25:39 am
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.
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: JTR on November 20, 2011, 04:57:59 am
[quote author="ian"]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.[/quote]

Hi Ian,

I sent you the ported OLS firmware a couple of days ago. Did you get it or has something gone wrong with my new mail setup? I have changed hosts and maybe I stuffed up the settings...

I also have done the logic shrimp and have it waiting to send to you. That pretty much completes all the porting of all the DP projects away from the microchip stack.
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: ian on November 20, 2011, 09:10:59 am
Thanks JTR,

I did receive it, thank you, I just sent another reply. I can check in the LCD backpack (do not have that code yet), Logic Shrimp, etc, but OLS firmware needs to be pushed to github and I don't have admin access there. I'll try to get it worked out this week with the Gadget Factory (host of the OLS code).
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: JTR on November 20, 2011, 12:45:44 pm
Hi Ian,

Please keep in mind I have not tested the OLS in anyway as I do not have the hardware. I pretty much know that the stack works as it is exactly the same stack used for the LCD BACKPACK and logic shrimp. On the OLS every single write to the CDC uart has been recoded to use the new putc_cdc function. There are quite a few of them. This thing really needs proper testing. I will let you guys sort out how you do that but if it is posted on git hub it needs to be a fork and clearly marked as a beta with the new stack. IF there are problems I expect that they will be localized and easily fixed by anyone as there is now only one way that the stack is used and it is easy to work out.

There is a chance that there is something major wrong and that the stack does not fire up. In that case I guess I sort of need to know and to be able to find feedback if it cannot find me. You can pass Jack my email address in case he has any problems.

I will send you the ports for all three projects shortly. There is a post I put on the microchip web site that has a few details as to what people can expect from the new version. http://http://www.microchip.com/forums/fb.ashx?m=615325
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: kind2011 on March 21, 2012, 10:46:18 pm
i  want to update the ols but is getting the: error reading ols id
i think is for the baud rate congiguration in the pc? what baud rate i need to select?
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: ian on March 26, 2012, 06:54:24 pm
The baud rate should not matter because it is a USB virtual serial port. Did you update teh PIC or FPGA firmware first? Both need to be updated to read the OLS ID successfully.
Title: Re: PIC firmware v3.0 for Demon core v3
Post by: vinko1990 on December 04, 2015, 11:44:02 pm
Hi guys i want to report a problem with my logic analyzer v1.04.

I'm trying to program the PIC firmware 3.0 but i cannot succed with it. In my logic analyzer i have the binary for the FPGA 3.07 demon-core.
Now if i try use all the tools that i've found on the forum they dont work. Instead with my PICKIT2 i can program without any problem the version OLSv1.04-firmware-v2.3 (but with this i think that i have some problem with the client of the logic analyzer). Then if i try to open the OLSv1.firmware.v2.6 or OLSv1.firmware.v3.0 with the PICKIT2 it say:
- Warning: No configuration words in hex file. In MPLAB use File-Export to save hex with config.
And of course, if i click on write, it success without any problem, but after that with this 2 version of firmware the logic analyzer it's not recognize anymore when i connect it with the usb cable. Can someone suggest me what to do?