Search found 48 matches

by bperrybap
Mon Jun 13, 2016 7:42 pm
Forum: IDE Integration
Topic: cihpkit issues on linux Mint 13
Replies: 33
Views: 1989

Re: cihpkit issues on linux Mint 13

I wonder if this delay they use in the DTWI DTWIscanner example is in there because of this same issue: for(address = 8; address < 127; address++ ) { // The DTWIscanner uses the return value of // the DTWI0.stopMaster() to see if // a device did acknowledge to the address. dtwi0.startMasterWrite(add...
by bperrybap
Mon Jun 13, 2016 7:30 pm
Forum: IDE Integration
Topic: cihpkit issues on linux Mint 13
Replies: 33
Views: 1989

Re: cihpkit issues on linux Mint 13

From the comment it looks like there are some h/w issues that are attempting to be worked around. So here is the state of the flags when it occurs: TwoWire begin abort: curStateFreeze:0, fBusInUse:1, fBusError:0, fI2COn:1, fMyBus:0, curStateFreeze!=I2C_IDLE:0 I don't understand enough about the h/w ...
by bperrybap
Mon Jun 13, 2016 6:25 pm
Forum: IDE Integration
Topic: cihpkit issues on linux Mint 13
Replies: 33
Views: 1989

Re: cihpkit issues on linux Mint 13

In the i2c spec:
http://www.nxp.com/documents/user_manua ... f#G1659003 table 10 page 48
the min bus free time tBUF between stop and start for standard mode (100Khz) is only 4.7us
but you can insert an additional delay of 15us, and the Wire code will still have the issue.

--- bill
by bperrybap
Mon Jun 13, 2016 5:38 pm
Forum: IDE Integration
Topic: cihpkit issues on linux Mint 13
Replies: 33
Views: 1989

Re: cihpkit issues on linux Mint 13

Which board are you using for this? It may be something specific in the silicon of the chip on that board. I have a large range of boards here that I can test it on to see if it's something in the core, or something in the chip. Also, what I2C device(s) do you have connected up? It may be something...
by bperrybap
Mon Jun 13, 2016 6:25 am
Forum: IDE Integration
Topic: cihpkit issues on linux Mint 13
Replies: 33
Views: 1989

Re: cihpkit issues on linux Mint 13

So I tracked down the I2C issue. note: this has nothing to do with Mint13 but since i mentioned it earlier, I thought I do a followup. After many hours with a logic analyzer, here is what happening. MPIDE 0023 works. MPIDE 0150 and the latest chipkit core both have an issue but break slightly differ...
by bperrybap
Mon Jun 13, 2016 1:11 am
Forum: IDE Integration
Topic: cihpkit issues on linux Mint 13
Replies: 33
Views: 1989

Re: cihpkit issues on linux Mint 13

I looked here for the issue: https://github.com/sergev/pic32prog/issues but didn't see a new issue. Is the repo somewhere else? It seems odd that it is a DTR handling issue since I see the board always getting reset. The failure seems to occur when the FTDI chip has been given a bunch of bytes with ...
by bperrybap
Sun Jun 12, 2016 9:14 pm
Forum: IDE Integration
Topic: cihpkit issues on linux Mint 13
Replies: 33
Views: 1989

Re: cihpkit issues on linux Mint 13

Well, you have all the tools you need there to get it working on Mint 13. Incidentally, the same pic32prog binary cannot run on both pic32prog is more than just a serial STK500V2 protocol uploader. It also deals with a number of USB based programmers and other bootloaders, so the USB support is kin...
by bperrybap
Sun Jun 12, 2016 6:00 pm
Forum: IDE Integration
Topic: cihpkit issues on linux Mint 13
Replies: 33
Views: 1989

Re: cihpkit issues on linux Mint 13

So can you post some example code that demonstrates the issue you are seeing? Sure, once I track it down and isolate it down to a small repeatable example. I always like to fully understand the issue and often the fix and/or work arounds before reporting it. The whole mint 13 thing is because I hav...
by bperrybap
Sun Jun 12, 2016 5:25 pm
Forum: IDE Integration
Topic: cihpkit issues on linux Mint 13
Replies: 33
Views: 1989

Re: cihpkit issues on linux Mint 13

I2C: you do have pull-up resistors on your SDA and SCL lines don't you? Of course. I'm the one that exposed using the wire code after re-initalization (calling begin() again) was causing a hard hang and tracked it down due to the h/w getting falsely confused over clock stretching after the h/w was ...
by bperrybap
Sun Jun 12, 2016 1:39 am
Forum: IDE Integration
Topic: cihpkit issues on linux Mint 13
Replies: 33
Views: 1989

Re: cihpkit issues on linux Mint 13

so I decided to put the mint13 rebuild on the back burner for a while and use mint17 by mounting my mint13 sketchbook. That works, however, uploads are not reliable and I'm seeing i2c issues with the chipkit core using an UNO32 on IDE 1.6.9. There seems to be some sort of issue with the chipkit core...