Skip to main content

Show Posts

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

Messages - rhyde

Open Bench Logic Sniffer / Re: OLS upgrade issue [solved]
np I was just trying to help test your latest code.  I have entered the bootloader both ways, with the same results.  When I enter the pic bootloader, the system correctly notices the CDC device is gone and a new hid device is present.  Although I have downloaded and successfully recompiled the Diolan fw_update, and the one from jack's svn tree neither can successfully report the version.  Nor do I appear to be able to actually update code.  It wasn't clear to me which I should use, but as neither work I am at a bit of a loss.

% fw_update  -pid 0xfc90 -vid 0x04d8 -ver
fw_update Version: 0.2.0
U2IO BootLoader Version reading: FAILED.
Segmentation fault

So I can see the CDC device in both running mode and rom loading mode.
From rom loading mode I can get ols-loader to move it to boot mode reliably, and the system via lsusb notices and lists the new device with rational values for the parts I can grok.

It would be much easier if I can figure out what is blocking fw_update from working so I don't have to find a windoze box to deal with all this.
USB Infrared Toy / Re: Firmware improvements
FYI I figured out my issue.  safari downloaded this and unpacked in a directory with a ' ' (Space) character in it.  The libtool script it makes in the build process can not handle this.  Also I went to that site Ian and all the had for mac os was the sources, but as long as the path to where it is being built does not have spaces in it it will build.
General discussion / Re: Digital radio boards
There are several interesting things happening in the world of digital radio these days.  Seeing this port got me thinking about a dp transceiver board and what it would contain.  I want one...  I have done some work with some existing kits, but this could be a lot of fun.  A dds chip a mixer, a2d wide band into a board that implements a sound card interface?  A optional set of band filters for the frontend?  Simple transmitter for those licensed by their goverments.   The GNUradio is interesting but kinda of a cadillac.  The softrock kits are another option, but I think of a transceiver wing for a ols or a butterfly and that gets really interesting fast.  Is that what you are thinking about?
Open Bench Logic Sniffer / Re: OLS install under Mac/OSX?
Your 9.1 dmg image installs on my macbook air, just fine.  All appears to work, other than the issues I already reported, it seems just fine.  This is a intel mac with snow leopard so by default it would prefer 64 bit, but I know that 32 bit java works as well since sump requires that.

As for other OLS clients the sump client will work if you follow instructions, and get a working RXTX version both jar and lib.  There is no standard distribution, and alot of broken distributions.  I finally found one that was kinda working, but occasionally crashed on disconnect.  I did an attempt at fixing the most recent code base, which has a int is not a pointer and and a pointer is not 32 bit bug in the code.  Even with that fixed it still crashes if you disconnect wrong or at the wrong time.  (Don't ask me what is the right time I never figured that out.  BP has the same issue btw.

sump requires that you add -d32 to the java command line.  (Snow leopard the latest macos system release defaults everything to 64 bit and is starting to remove some PPC and 32 bit version of libraries.  So the clock is clearly ticking on Apple moving to 64bit only support.)

Most of the tools will compile with mac ports and xtools installed.  At the moment the only big Mac issue I have is fw_update is not willing to upgrade my latest OLS board to the expirmental release.  It does compile if you chmod +x configure and install-sh, and you have to have installed libusb, but the one in ports is fine.
./configure --prefix=/opt/local --with-usb=/opt/local works for most commands here.

Oh since you asked for clear instruction download the latest dmg image for a binary install, it auto unpacks to your download directory as which you can click on in the finder, or copy to /Applications if you want it to reside with the other apps.  (For non mac users this is a bit unusual as most dmg(s) either come with a link to /Application in them as well as the application so you can drag it into the folder, or have a mpkg which does the install.  The download a dmg and get an .app was a bit confusing at first, but it works well enough once you understand that is what it does.  A dmg is a disk image, so normally so when you download one the default behavior is to open the newly downloaded and mounted image in finder displaying the contents of the disk image.)
Client software / Re: Jawi's Logic Sniffer client software - support and bug reports
[quote author="jawi"]
It just struck me that I've had similar problems when starting out with the development of my client on OSX. The problem was that I used the original SUMP client for some time, which led to the manual installation of the RXTX jars in my JRE installation. After this, I couldn't get my client to work until I removed the RXTX libs from the JRE installation again... I'll document this on the homepage, as it is probably not fixable in code (yet).
Glad to help by stubbing my toes, I am skilled at the latter.  Is there anything we can do to track down what is happening with RLE or some of the plugins?  I actually have some time this month so I am getting a bunch of projects back up.
Open Bench Logic Sniffer / Re: Test package: New SPI routing, Winbond ROM support
I tried to upgrade and I can not get the pic bootloader to load on my mac on a new board.  I posted a comment somewhere else, which I thought was here.  Sorry if I did it in the wrong place.  I have time this week to try things so I am back on several projects.
(The other post has all the details so I will not repeat them here, and if I should have done it here send me a  note and I will fix it.)
Open Bench Logic Sniffer / OLS upgrade issue [solved]
[quote author="ian"]
OLS-loader bitstream loader utility for Windows, Mac, Linux.
Ian I tried to do a upgrade to your experimental latest release on my mac and failed.  The instructions left me confused.  It is not a case of a bricking of a board, but I don't get how it is supposed to work.  To do a PIC upgrade it appears that I can not use ols-loader which appears to be the latest loader software.  It requires a serial interface to exist which does happen when a in bootloader mode for the pic.  The existing fw-update on my system does not work with either mechanism.  I also note the ols-loader is not in your source tree in google code, or it is but marked finished so it will not check out???

Which tools am I supposed to use this time?

I am able to compile the latest fw_update sources on Jack's site, but it fails with

PIC-firmware rich$  fw_update -e -w -m flash -vid 0x04D8 -pid 0xFC90 -ix OLSv1.firmware.v2.2.hex
U2IO flash erasing: FAILED.
Device is not found.
Operation aborted.

it also fails to print the version with a U2IO BootLoader Version reading: FAILED
Segmentation fault.

ols-loader can read the version, if I get out of PIC bootloader and into rom loading mode

PIC-firmware rich$ ols-loader -status -p:/dev/tty.usbmodem411
Logic Sniffer ROM loader v0.2 (September 10, 2010)
Opening serial port '/dev/tty.usbmodem411' @ 921600 ... OK
Found OLS HW: 1, FW: 2.1, Boot: 2
Found flash: ATMEL AT45DB021D
OLS status: 94

Clues would be appreciated.  (The board is a new one Seeed just shipped me, but the pc board claims to be version 1.01, so I guess this is a new batch of older boards, or some other part was the reason my order was delayed a bit.)
Project development, ideas, and suggestions / Re: Web Platform v2?
Hmm I have several web platforms, of the original edition and I have a new BeagleBoard-xm.  The work to integrate either into a project is very different.  The BeagleBoard is a bit pricey to control a toaster, and getting the whole software chain working and up to date is a lot of work.    I can enable quite a few simple projects with the web platform for the cost of a BB-xm.  Also the amount of work required to get it working is significantly less for the web platform.  On the other hand I have a project that I am aiming for with the bb-xm, which is well beyond what a PIC could do.  Requires multiple connections and serious processing power.  So I got the BB-xm which is a lot of fun and very capable.   But for hitching up a pico weather station or other simple device control, and monitoring device with a simple website, the web Platform is a lot easier to do.  Yet a full blown system has to be maintained to safe gaurded because it is open to attack, and has the ability to be easily hacked.   The web platform, is trivial to take down with a DOS attack, but behind my private firewall, it is just fine, and mapped to a random port on the external net it works just fine for me.  Yes anyone can overloaded, but if I do my integration well enough who would ever care to try, and how would they know they are doing it?  (I am not going put an unprotected page out on port 80, nor am I going to response to every port sniffer out there which seems to be about 1/3 of the traffic to my router.)
Web platform / Re: New uIP code features
@coolnicks:  Did you manage to get a port of a reasonable http server up for the web platform? 

I have to decide whether it is time to break down and do one, or figure out how to get the original closed source server to work for my needs?  I have a couple of applications I need to finish up and this is an obvious platform to use as I already have a few.  I just don't really feel enthused about debugging a complete port from scratch.  The time I have available is already over allocated and if someone is actively got one up, or did it in the past that would be a better starting point than an AVR source.   I would prefer to use an open source one, or maybe this is a good excuse to play with the new development system on my mac.  I guess I could try MPLabx on the mac with the old sources.   So I am open to suggestions as to which way to go?
Client software / Re: Jawi's Logic Sniffer client software - support and bug reports
Okay in my fumbling around I wrote a silly little program to test out my config.  My conclusions are that as usual I am confused a bit.  RLE does not work properly and neither does the Uart function.  Any of these issues could be operator error on my part, but I am not sure.  This scetch was loaded into a ardunio mini pro at 16mhz/5 volts and a snapshot taken.  Once with all for banks selected and rle, and many times with only bank 4 and no rle.  The latter method produces repeatable results that the uart tool does not work right on, too my understanding.  The RLE has garbage in it.  Only pins 31, 30, and 29 are connected to tx, rx, and pin 13.  Ground is of course connected.  Outside number is selected as is the auto size option.

void setup() {
   pinMode(13, OUTPUT);
int led=0;
void loop() {
  digitalWrite(13, !led);
  digitalWrite(13, led);
  digitalWrite(13, !led);
  digitalWrite(13, led);
  digitalWrite(13, !led);
  digitalWrite(13, led);
  digitalWrite(13, !led);
  digitalWrite(13, led);
  digitalWrite(13, !led);
  digitalWrite(13, led);
  digitalWrite(13, !led);
  digitalWrite(13, led);
  digitalWrite(13, !led);
  digitalWrite(13, led);
  digitalWrite(13, !led);
  digitalWrite(13, led);
    digitalWrite(13, HIGH);
    digitalWrite(13, LOW);
Client software / Re: Jawi's Logic Sniffer client software - support and bug reports
Very bizzare stuff.  So I went and removed all the old rxtx instances I could find on the system.  (Only left those under an application in the /Application directory.  No joy, but then I downloaded an pair and ran your tool from a dir that had both in . with . on my path and it works.  This makes no sense, but I can run this way.