Re: [Flashforth-devel] FF5.0 on PIC24FV32KA302 -- a couple of issues
Brought to you by:
oh2aun
From: Peter J. <pe...@me...> - 2014-04-17 22:23:27
|
Mike, Yes Yes Don't know, but I don't think that the flash write is the problem. Here is a transcript of some interaction. I should have included it with the last note. BPE Fahot I24 5.0 BPE Fahot I24 5.0 BPE Fahot I24 5.0 BPE Fahot I24 5.0 BPE Fahot ICt I24 5.0 ok<#rm>#rm ok<#rm>#rm 2 3 * . 6 ok<,am<,a> Characters are missing whenever a string is sent by the MCU. On the last start-up message, you can also see out-of-order characters. I've put a logic analyser on the pins and it looks consistent with the picture of missing characters shown above (and there were no Xoff characters in between). I'm going to try a PIC24FV16KM202 (which fits the same minimal pin layout) today and see if that behaves better. Peter J. On 18/04/14 00:23, Mikael Nordman wrote: > I don't really understand why the UART silicon bug would cause a problem > with > the current FF5.0 code. > > The TX interrupt routine only writes one character to the TX FIFO > if the TXFIFO and TX shift register are empty. > > In addition XOFF chars are written without checking if the TX FIFO has > any space. > If the PC that sends to the PIC > reacts slowly on the XOFF, FF will send XOFF for every character > received from the PC. > But this should not fill the TX FIFO since it has 4 empty places and the > RX interrupts > which may send XOFF occur at the same pace that characters are sent out. > > Did you experience any real problem? > Does the UART TX loose any characters ? > Are characters lost during flash write ? > > BR Mike > > On 04/17/2014 03:10 PM, Peter Jacobs wrote: >> (b) The more troublesome issue is the UART silicon bug in my revision 4 >> chips. There is a work-around of not completely filling the buffer but >> I think that requires fiddling with the interrupt or queue code, which >> is a bit beyond my capability at the moment. I added a little bit of >> code to the main program, as shown below. >> >> > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Flashforth-devel mailing list > Fla...@li... > https://lists.sourceforge.net/lists/listinfo/flashforth-devel |