ali-as has joined #glasgow
ali_as has quit [Ping timeout: 240 seconds]
<whitequark> sure, i have a bunch
XgF has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
XgF has joined #glasgow
<mrec> seems like I'm hitting some silicon bugs and I'm still searching for workarounds :-(
<mrec> that chip turns out to be a nightmare for the easiest things
<mrec> the fifo addressing is messing up the fixed programmable flags and returning wrong values
<mrec> there's a errata but that only targets out transfers but I need in transfers
<mrec> ok device trashed problem solved temporary at least .. shit cypress
<Stormwind_mobile> Is this the chip that's inside the saleae(clones)?
<mrec> yes
<mrec> it depends what you want to do with it a single fifo is fairly easy to implement
<mrec> and that one works but I'm running into issues with multiple fifos
<sorear> (it's also the chip glasgow uses for USB interface, which is why I suggested here)
<Stormwind_mobile> ktemkin: I used KiCad for the first time this summer to just look at schematics and layout of a project and was already raising a few eyebrows about uninititive UI. I really wonder if they regularly present the program to students or someone who knows another EDA, and check for intuitivity.
<mrec> interestingly I have one device which works but I don't see any electrical difference
<mrec> this chip is fairly unreliable when it comes to multi fifos
<Stormwind_mobile> Different board?
<mrec> well I cut a trace with the knife and soldered it back in theory there should not be a difference
<mrec> first I thought it was a firmware issue but now I'm sure it's a silicon bug
<mrec> the programmable flags are not reset once buffer is available again
<mrec> if I pump data into the first channel, the data will be transfered properly
<mrec> if I pump data into the second channel, the data will be transferred properly on the second channel but I cannot enable datachannel 1 independently anymore
<mrec> now I always need to enable channel 2 in order to get data from channel 1
<Stormwind_mobile> So identical boards, and one of them works as intended?
<mrec> if I stop pumping data into the second fifo, and clear the buffers I can get data from channel 1 again
<mrec> yes but not sure why.. I would have some clarification how the situation can turn out like that why the first fifo has a dependency on the second fifo suddenly
<mrec> the only difference would be that I have cut a trace and soldered it back.. I had the same issue with the working board before
<Stormwind_mobile> Different package marking? I geuss the chip gives some kind of id and revision bytes somewhere?
<mrec> no it's the same
<mrec> I opened a ticket at cypress they should check that I can't believe that I even have that issue after studying the datasheet in detail
<Stormwind_mobile> Well, you could subject a non-working board to the same procedure and see if it works afterwards...
<mrec> there's not even a data corruption on any channel
<mrec> even if I do that I would not know why, I have cut the ground connection to FIFO_ADR[0] and soldered it back to ground
<mrec> and the ground connection is solid
<mrec> I'll assemble one more unit and see that cypress can get on that they should explain what the relation between the fifos is
<mrec> but I doubt that they know anything since the designers are all gone I guess
<mrec> muxing things to a single channel and demuxing via software is probably a better way to go with this unreliable part
<Stormwind_mobile> Some crazy parasitic capacitance impedance mismatch signal integrity shenanigans?
<mrec> the whole pcb is very small to be honest I'm sick of cypress they're unreliable to me.
<Stormwind_mobile> Try anyway, if you feel like it.
<Stormwind_mobile> Reproducibility is really helpful, even if you don't have a clue *what* you are reproducing.
<mrec> I'll order some ftdi parts
<Stormwind_mobile> Maybe the board layout brings the chip into some sketchy corner-case state...?
<mrec> I would not know what I should change on a ground pin that got cut and resoldered on the original PCB
<mrec> I would not even have an idea why the programmable flags pin is doing so weird
<mrec> I have tried FLAGA/FLAGB/FLAGD always the same result with the first fifo (after pumping data into the second fifo)
<mrec> ftdi also has 4 channels
<mrec> there's an errata as mentioned, https://www.cypress.com/file/114011/download
<mrec> but it's about OUT Endpoints
pie_ has joined #glasgow
<mrec> will take some time until the ftdi part arrives, guess I'm really better off by using that part
<mrec> you can read the fx2 datasheet over and over it just doesn't give any hint
Stormwind_mobile has quit [Ping timeout: 240 seconds]
<whitequark> mrec: what you're saying doesn't remotely match my experience. in fact, it is the FTDI parts that have well-known silicon bugs they refuse to fix, Cypress rather doesn't (other than the one they describe)
<whitequark> but more importantly, what you've described so far is just vague complaints. no code, no schematics, no detailed description of data corruption... how am I supposed to do anything with just that?
<whitequark> it's certainly not true that "the simplest things don't work on fx2". the only time I've hit any strange issues related to fx2 fifo interface in Glasgow were my error, for not honoring the setup/hold constraints on the fpga; zero issues otherwise. you should stop whining and make a minimal reproducible example, then we can talk
Stormwind_mobile has joined #glasgow
Stormwind_mobile has quit [Ping timeout: 246 seconds]
Stormwind_mobile has joined #glasgow
Stormwind_mobile has quit [Read error: Connection reset by peer]
Stormwind_mobile has joined #glasgow
Stormwind_mobile has quit [Ping timeout: 276 seconds]
Stormwind_mobile has joined #glasgow
Stormwind_mobile has quit [Ping timeout: 268 seconds]
Stormwind_mobile has joined #glasgow
<Stormwind_mobile> But i thought Glasgow uses fx2?
<whitequark> yes
<mrec> whitequark: well the simplest things using FIFOADR..
<whitequark> sure. those have always worked for me.
<mrec> the programmable flag status is messed up
<mrec> the second fifo needs to be cleared completely in order to independently access fifo 1 and that absolutely does not make any sense
<whitequark> again. you should make a minimal reproducible example. then and only then this discussion would be productive
<mrec> I crashed the device already, the FX2 story is over for me after debugging a week on this nonsense :-(
<mrec> fx2 is okay for single fifos, but definitely not ok for multi fifos there are some conditions which are for sure a silicon bug and not specified
<mrec> PINFLAGSAB=0x64 should be more than enough to report the correct pin status on the corresponding ctl pins
<mrec> but it doesn't matter if flags of the two quad buffered fifos are moved to other control pins it was the same garbage
<mrec> certainly it's another issue somewhere but it shouldn't be there at all in the first instance.
<whitequark> well, it's a bug somewhere in your design, yeah
<mrec> certainly and it's not documented as I went over and over the documentation and pinouts. But if it's clearly reproducible that fifo one works independently if fifo 2 is cleared shows up that there's something wrong going on inside the FX2
<whitequark> you have not actually demonstrated a minimal reproducible example. so it's not "clearly reproducible", not to me
<mrec> well my device is in the trash now because I'm done with the FX2 you're a bit too late now :-(
<ZirconiumX> So...you joined a channel just to rant about your FX2 code not working, and now you're actively refusing to provide an example so that people can help you.
<mwk> productive, good use of everyone's time
<mwk> also helpful to anyone dealing with whatever problem it is that you hit
<mrec> earlier the unit was still alive
<ZirconiumX> You mentioned you "crashed" it.
<mrec> or cracked
<ZirconiumX> Please don't tell me you are creating e-waste because your code crashed.
<mrec> well I'm not spending another week on figuring out why the first fifo depends so heavily on the second one
<mrec> and the device is cracked now.
<whitequark> mrec: look. fx2 is on-topic. your personal incapability to debug your design isn't. either ask actionable questions or go rant somewhere else, I don't care for listening to any more of that
<mrec> I agree with that, as I still have no idea why the first fifo fully depends on the second one, and the programmable flags report the wrong status.
<mrec> and changing decis, or the ctl pins does not change anything.
<ZirconiumX> ...Did you actually read what she wrote?
<mrec> well my thing is wrong and I don't have the slightest idea where the problem is and the fifo thing is a standard thing according to the documentation it shouldn't not even be possible to have those issues.
<ZirconiumX> WQ wrote libfx2 as a chip support package for the FX2, so I'd imagine she's relatively familiar with the hardware
<mrec> anyway story over the unit is cracked I cannot do further tests anymore
<ZirconiumX> Here comes the hammer, I think.
<mrec> the firmware is super small I wonder what someone could do wrong there (of course I have tried any possible setting there)
<ZirconiumX> mrec: I strongly recommend you shut up.
mrec was kicked from #glasgow by whitequark [I am not willing to help someone who is unable to read.]
* whitequark shrugs
<whitequark> what a bizarre interaction
* mwk shrugs
<mwk> happens
<ZirconiumX> wq: mind if I borrow that one-liner for any future "users" who join my channels?
<whitequark> sure? it's not like i invented it
<daveshah> Pretty sure I had an identical interaction with them over a supposed bug with iCE40 BRAM
<daveshah> Again, no code or actionable things just claiming everything was broken
<ZirconiumX> Honestly, from a purely pragmatic PoV, if the firmware was really so small
<ZirconiumX> Why not post the firmware?
<whitequark> probably because they wanted to take out their frustration on someone, not to have their design fixed
<mwk> there's no helping someone who doesn't want to be helped
carl0s has joined #glasgow
<emily> did that person really physically break their hardware because their code was wrong
<emily> humans are so strange
bgamari has quit [Ping timeout: 246 seconds]
<_whitenotifier> [libfx2] jedrzejboczar opened issue #2: cdc-acm example: port disabled by hub - https://git.io/JeEvx
<_whitenotifier> [libfx2] whitequark commented on issue #2: cdc-acm example: port disabled by hub - https://git.io/JeEfJ
<Stormwind_mobile> You could call that #ragequit
<Stormwind_mobile> Well, people have broken things for lesser reasons. O would have suggested they let their anger die down and then take some minutes to write about their thought process and what they did for what reason.
<Stormwind_mobile> It happens often enough that one can't tell the forest for the trees, especially after banging their head into a particular tree for many hours.
pakesson has joined #glasgow
diverger has quit [Read error: Connection reset by peer]
diverger has joined #glasgow
craigo has quit [Ping timeout: 264 seconds]
<_whitenotifier> [libfx2] mithro commented on issue #2: cdc-acm example: port disabled by hub - https://git.io/JeETE
<_whitenotifier> [libfx2] whitequark commented on issue #2: cdc-acm example: port disabled by hub - https://git.io/JeETg
Stormwind_mobile has quit [Ping timeout: 265 seconds]
Stormwind_mobile has joined #glasgow
<_whitenotifier> [libfx2] jedrzejboczar commented on issue #2: cdc-acm example: port disabled by hub - https://git.io/JeEkx
Stormwind_mobile has quit [Read error: Connection reset by peer]
Stormwind_mobile has joined #glasgow
Stormwind_mobile has quit [Ping timeout: 265 seconds]
bgamari has joined #glasgow
Stormwind_mobile has joined #glasgow
pie_ has quit [Ping timeout: 250 seconds]
kerel[m] has joined #glasgow
Stormwind_mobile has quit [Read error: Connection reset by peer]
Stormwind_mobile has joined #glasgow
Stormwind_mobile has quit [Ping timeout: 240 seconds]
Stormwind_mobile has joined #glasgow
Stormwind_mobile has quit [Ping timeout: 268 seconds]
Stormwind_mobile has joined #glasgow
Stormwind_mobile has quit [Read error: Connection reset by peer]
Stormwind_mobile has joined #glasgow
Stormwind_mobile has quit [Ping timeout: 240 seconds]
Stormwind_mobile has joined #glasgow
Stormwind_mobile has quit [Ping timeout: 265 seconds]
carl0s has quit [Remote host closed the connection]