Forum Rule: Always post complete source code & details to reproduce any issue!
Page 73 of 73 FirstFirst ... 23 63 71 72 73
Results 1,801 to 1,823 of 1823

Thread: Project: SPI_MSTransfer

  1. #1801
    Senior Member
    Join Date
    Dec 2016
    Location
    Montreal, Canada
    Posts
    2,712
    Other than when I lose "serial output" the led continued to blink, I reopened serial monitor and after next flash it worked. I don't think this was a code issue as the led continued to blink, and that requires ACK processing to happen whereas F&F's do not, so if the led can blink and the serial monitor was picky, im inclined it was the teensyduino serial monitor issue since reflashing both master and slave show its working with the same files i posted here at 11MHz and 0,10 LCMode (the led is a dead giveaway it works because it's more work to handle doing 2-way handshake to toggle than sending the F&F's

  2. #1802
    Senior Member
    Join Date
    Dec 2016
    Location
    Montreal, Canada
    Posts
    2,712
    Wait, for LC, use Fastest option? I'm not getting output at Smallest... Fastest is scrolling fine..............

    OK, on LC, Fastest is working
    on Smallest compile, it'll work if you comment out events() from master at 11MHz master mode

    I'll have to see through those 4 blocks of events to see whats being broken by the optomizer
    Last edited by tonton81; 05-19-2018 at 04:01 PM.

  3. #1803
    Senior Member
    Join Date
    Dec 2016
    Location
    Montreal, Canada
    Posts
    2,712
    Mike, can you try this?

    Code:
    cpp_test.zip
    if it works, we need to restore the blocks to the same as the previous 4MHz LC release file

  4. #1804
    Senior Member
    Join Date
    Jul 2014
    Location
    New York
    Posts
    1,816
    Using smallest?

  5. #1805
    Senior Member
    Join Date
    Dec 2016
    Location
    Montreal, Canada
    Posts
    2,712
    Yes, smallest

    I edited all stages blocks up till the begin of the SERIAL section, it's working on Smallest.
    Hopefully this is it, we got off track trying to work at a speed that SPI0 didn't support so it took us off course

    EDIT, i recompiled as Fastest and it still works....
    EDIT, recompiled as Smallest still works...

  6. #1806
    Senior Member
    Join Date
    Jul 2014
    Location
    New York
    Posts
    1,816
    Ok. Something strange going on - remember start and stops we had on SPI0 - this is about 100 times worse and the master only sporadically gets the transfers from the slave. The LED blinks away happily.... regardless of anything else going on.
    Code:
    Bad LASTVAL TEST INCREMENT <<<<<<<<<<<<<<<<<<<< DIFF OF> 870.00
    0.00,1.00,2.00,3.00,4.00,5.00,6.00,7.00,8.00,9.00,217,6 [81 ,0
    10.00, #, #, #, #, #, #, #, #, #,218,6 [1 ,0
    20.00, #, #, #, #, #, #, #, #, #,219,6 [1 ,0
    30.00, #, #, #, #, #, #, #, #, #,220,6 [1 ,0
    40.00, #, #, #, #, #, #, #, #, #,221,6 [1 ,0
    50.00, #, #, #, #, #, #, #, #, #,222,6 [1 ,0
    60.00, #, #, #, #, #, #, #, #, #,223,6 [1 ,0
    70.00, #, #, #, #, #, #, #, #, #,224,6 [1 ,0
    80.00, #, #, #, #, #, #, #, #, #,225,6 [1 ,0
    90.00, #, #, #, #, #, #, #, #, #,226,6 [1 ,0
    100.00, #, #, #, #, #, #, #, #, #,227,6 [1 ,0
    110.00, #, #, #, #, #, #, #, #, #,228,6 [1 ,0
    120.00, #, #, #, #, #, #, #, #, #,229,6 [1 ,0
    130.00, #, #, #, #, #, #, #, #, #,230,6 [1 ,0
    140.00, #, #, #, #, #, #, #, #, #,231,6 [1 ,0
    150.00, #, #, #, #, #, #, #, #, #,232,6 [1 ,0
    160.00, #, #, #, #, #, #, #, #, #,233,6 [1 ,0
    170.00, #, #, #, #, #, #, #, #, #,234,6 [1 ,0
    180.00, #, #, #, #, #, #, #, #, #,235,6 [1 ,0
    190.00, #, #, #, #, #, #, #, #, #,236,6 [1 ,0
    200.00, #, #, #, #, #, #, #, #, #,237,6 [1 ,0
    210.00, #, #, #, #, #, #, #, #, #,238,6 [1 ,0
    220.00, #, #, #, #, #, #, #, #, #,239,6 [1 ,0
    230.00, #, #, #, #, #, #, #, #, #,240,6 [1 ,0
    240.00  241.00  242.00  243.00  244.00  245.00  246.00  247.00  248.00  249.00  
    250.00, #, #, #, #, #, #, #, #, #,241,6 [1 ,0
    260.00, #, #, #, #, #, #, #, #, #,242,6 [1 ,0
    270.00, #, #, #, #, #, #, #, #, #,243,6 [1 ,0
    280.00, #, #, #, #, #, #, #, #, #,244,6 [1 ,0
    290.00, #, #, #, #, #, #, #, #, #,245,6 [1 ,0
    300.00, #, #, #, #, #, #, #, #, #,246,6 [1 ,0
    310.00, #, #, #, #, #, #, #, #, #,247,6 [1 ,0
    320.00, #, #, #, #, #, #, #, #, #,248,6 [1 ,0
    330.00, #, #, #, #, #, #, #, #, #,249,6 [1 ,0
    340.00, #, #, #, #, #, #, #, #, #,250,6 [1 ,0
    350.00, #, #, #, #, #, #, #, #, #,251,6 [1 ,0
    360.00, #, #, #, #, #, #, #, #, #,252,6 [1 ,0
    370.00, #, #, #, #, #, #, #, #, #,253,6 [1 ,0
    380.00, #, #, #, #, #, #, #, #, #,254,6 [1 ,0
    390.00, #, #, #, #, #, #, #, #, #,255,6 [1 ,0
    400.00, #, #, #, #, #, #, #, #, #,256,6 [1 ,0
    410.00, #, #, #, #, #, #, #, #, #,257,6 [1 ,0
    420.00, #, #, #, #, #, #, #, #, #,258,6 [1 ,0
    430.00, #, #, #, #, #, #, #, #, #,259,6 [1 ,0
    440.00, #, #, #, #, #, #, #, #, #,260,6 [1 ,0
    450.00, #, #, #, #, #, #, #, #, #,261,6 [1 ,0
    460.00, #, #, #, #, #, #, #, #, #,262,6 [1 ,0
    470.00, #, #, #, #, #, #, #, #, #,263,6 [1 ,0
    480.00, #, #, #, #, #, #, #, #, #,264,6 [1 ,0
    490.00  491.00  492.00  493.00  494.00  495.00  496.00  497.00  498.00  499.00  
    500.00, #, #, #, #, #, #, #, #, #,265,6 [1 ,0
    510.00, #, #, #, #, #, #, #, #, #,266,6 [1 ,0
    520.00, #, #, #, #, #, #, #, #, #,267,6 [1 ,0
    530.00, #, #, #, #, #, #, #, #, #,268,6 [1 ,0
    540.00, #, #, #, #, #, #, #, #, #,269,6 [1 ,0
    550.00, #, #, #, #, #, #, #, #, #,270,6 [1 ,0
    560.00, #, #, #, #, #, #, #, #, #,271,6 [1 ,0
    570.00, #, #, #, #, #, #, #, #, #,272,6 [1 ,0
    580.00, #, #, #, #, #, #, #, #, #,273,6 [1 ,0
    590.00, #, #, #, #, #, #, #, #, #,274,6 [1 ,0
    600.00, #, #, #, #, #, #, #, #, #,275,6 [1 ,0
    610.00, #, #, #, #, #, #, #, #, #,276,6 [1 ,0
    620.00, #, #, #, #, #, #, #, #, #,277,6 [1 ,0
    630.00, #, #, #, #, #, #, #, #, #,278,6 [1 ,0
    640.00, #, #, #, #, #, #, #, #, #,279,6 [1 ,0
    650.00, #, #, #, #, #, #, #, #, #,280,6 [1 ,0
    660.00, #, #, #, #, #, #, #, #, #,281,6 [1 ,0
    670.00, #, #, #, #, #, #, #, #, #,282,6 [1 ,0
    680.00, #, #, #, #, #, #, #, #, #,283,6 [1 ,0
    690.00, #, #, #, #, #, #, #, #, #,284,6 [1 ,0
    700.00, #, #, #, #, #, #, #, #, #,285,6 [1 ,0
    710.00, #, #, #, #, #, #, #, #, #,286,6 [1 ,0
    720.00, #, #, #, #, #, #, #, #, #,287,6 [1 ,0
    730.00, #, #, #, #, #, #, #, #, #,288,6 [1 ,0
    740.00  741.00  742.00  743.00  744.00  745.00  746.00  747.00  748.00  749.00  
    750.00, #, #, #, #, #, #, #, #, #,289,6 [1 ,0
    760.00, #, #, #, #, #, #, #, #, #,290,6 [1 ,0
    770.00, #, #, #, #, #, #, #, #, #,291,6 [1 ,0
    780.00, #, #, #, #, #, #, #, #, #,292,6 [1 ,0
    790.00, #, #, #, #, #, #, #, #, #,293,6 [1 ,0
    800.00, #, #, #, #, #, #, #, #, #,294,6 [1 ,0
    810.00, #, #, #, #, #, #, #, #, #,295,6 [1 ,0
    820.00, #, #, #, #, #, #, #, #, #,296,6 [1 ,0
    830.00, #, #, #, #, #, #, #, #, #,297,6 [1 ,0
    840.00, #, #, #, #, #, #, #, #, #,298,6 [1 ,0
    850.00, #, #, #, #, #, #, #, #, #,299,6 [1 ,0
    860.00, #, #, #, #, #, #, #, #, #,300,6 [1 ,0
    870.00, #, #, #, #, #, #, #, #, #,301,6 [1 ,0
    880.00, #, #, #, #, #, #, #, #, #,302,6 [1 ,0
    890.00, #, #, #, #, #, #, #, #, #,303,6 [1 ,0
    900.00, #, #, #, #, #, #, #, #, #,304,6 [1 ,0
    910.00, #, #, #, #, #, #, #, #, #,305,6 [1 ,0
    920.00, #, #, #, #, #, #, #, #, #,306,6 [1 ,0
    930.00, #, #, #, #, #, #, #, #, #,307,6 [1 ,0
    940.00, #, #, #, #, #, #, #, #, #,308,6 [1 ,0
    950.00, #, #, #, #, #, #, #, #, #,309,6 [1 ,0
    960.00, #, #, #, #, #, #, #, #, #,310,6 [1 ,0
    970.00, #, #, #, #, #, #, #, #, #,311,6 [1 ,0
    980.00, #, #, #, #, #, #, #, #, #,312,6 [1 ,0
    990.00  991.00  992.00  993.00  994.00  995.00  996.00  997.00  998.00  999.00  
    1000.00, #, #, #, #, #, #, #, #, #,313,6 [1 ,0
    1010.00, #, #, #, #, #, #, #, #, #,314,6 [1 ,0
    1020.00, #, #, #, #, #, #, #, #, #,315,6 [1 ,0
    1030.00, #, #, #, #, #, #, #, #, #,316,6 [1 ,0
    1040.00, #, #, #, #, #, #, #, #, #,317,6 [1 ,0
    1050.00, #, #, #, #, #, #, #, #, #,318,6 [1 ,0
    1060.00, #, #, #, #, #, #, #, #, #,319,6 [1 ,0
    1070.00, #, #, #, #, #, #, #, #, #,320,6 [1 ,0
    1080.00, #, #, #, #, #, #, #, #, #,321,6 [1 ,0
    1090.00, #, #, #, #, #, #, #, #, #,322,6 [1 ,0
    1100.00, #, #, #, #, #, #, #, #, #,323,6 [1 ,0
    1110.00, #, #, #, #, #, #, #, #, #,324,6 [1 ,0
    1120.00, #, #, #, #, #, #, #, #, #,325,6 [1 ,0
    1130.00, #, #, #, #, #, #, #, #, #,326,6 [1 ,0
    1140.00, #, #, #, #, #, #, #, #, #,327,6 [1 ,0
    1150.00, #, #, #, #, #, #, #, #, #,328,6 [1 ,0
    1160.00, #, #, #, #, #, #, #, #, #,329,6 [1 ,0
    1170.00, #, #, #, #, #, #, #, #, #,330,6 [1 ,0
    1180.00, #, #, #, #, #, #, #, #, #,331,6 [1 ,0
    1190.00, #, #, #, #, #, #, #, #, #,332,6 [1 ,0
    1200.00, #, #, #, #, #, #, #, #, #,333,6 [1 ,0
    1210.00, #, #, #, #, #, #, #, #, #,334,6 [1 ,0
    1220.00, #, #, #, #, #, #, #, #, #,335,6 [1 ,0
    1230.00, #, #, #, #, #, #, #, #, #,336,6 [1 ,0
    1240.00  1241.00  1242.00  1243.00  1244.00  1245.00  1246.00  1247.00  1248.00  1249.00  
    1250.00, #, #, #, #, #, #, #, #, #,337,6 [1 ,0
    1260.00, #, #, #, #, #, #, #, #, #,338,6 [1 ,0
    1270.00, #, #, #, #, #, #, #, #, #,339,6 [1 ,0
    
    Bad LASTVAL TEST INCREMENT <<<<<<<<<<<<<<<<<<<< DIFF OF> -10.00
    1290.00,1291.00,1292.00,1293.00,1294.00,1295.00,1296.00,1297.00,1298.00,1299.00,340,7 [1 ,0
    1300.00, #, #, #, #, #, #, #, #, #,341,7 [1 ,0
    1310.00, #, #, #, #, #, #, #, #, #,342,7 [1 ,0
    1320.00, #, #, #, #, #, #, #, #, #,343,7 [1 ,0
    1330.00, #, #, #, #, #, #, #, #, #,344,7 [1 ,0
    1340.00, #, #, #, #, #, #, #, #, #,345,7 [1 ,0
    1350.00, #, #, #, #, #, #, #, #, #,346,7 [1 ,0
    1360.00, #, #, #, #, #, #, #, #, #,347,7 [1 ,0
    1370.00, #, #, #, #, #, #, #, #, #,348,7 [1 ,0
    1380.00, #, #, #, #, #, #, #, #, #,349,7 [1 ,0
    1390.00, #, #, #, #, #, #, #, #, #,350,7 [1 ,0
    1400.00, #, #, #, #, #, #, #, #, #,351,7 [1 ,0
    1410.00, #, #, #, #, #, #, #, #, #,352,7 [1 ,0
    1420.00, #, #, #, #, #, #, #, #, #,353,7 [1 ,0
    1430.00, #, #, #, #, #, #, #, #, #,354,7 [1 ,0
    1440.00, #, #, #, #, #, #, #, #, #,355,7 [1 ,0
    1450.00, #, #, #, #, #, #, #, #, #,356,7 [132 ,0
    1460.00, #, #, #, #, #, #, #, #, #,357,7 [132 ,0
    1470.00, #, #, #, #, #, #, #, #, #,358,7 [132 ,0
    1480.00, #, #, #, #, #, #, #, #, #,359,7 [132 ,0
    1490.00  1491.00  1492.00  1493.00  1494.00  1495.00  1496.00  1497.00  1498.00  1499.00  
    1500.00, #, #, #, #, #, #, #, #, #,360,7 [132 ,0
    1510.00, #, #, #, #, #, #, #, #, #,361,7 [132 ,0
    1520.00, #, #, #, #, #, #, #, #, #,362,7 [132 ,0
    1530.00, #, #, #, #, #, #, #, #, #,363,7 [132 ,0
    1540.00, #, #, #, #, #, #, #, #, #,364,7 [132 ,0
    1550.00, #, #, #, #, #, #, #, #, #,365,7 [132 ,0
    1560.00, #, #, #, #, #, #, #, #, #,366,7 [132 ,0
    1570.00, #, #, #, #, #, #, #, #, #,367,7 [132 ,0
    1580.00, #, #, #, #, #, #, #, #, #,368,7 [132 ,0
    1590.00, #, #, #, #, #, #, #, #, #,369,7 [132 ,0
    1600.00, #, #, #, #, #, #, #, #, #,370,7 [132 ,0
    1610.00, #, #, #, #, #, #, #, #, #,371,7 [132 ,0
    1620.00, #, #, #, #, #, #, #, #, #,372,7 [132 ,0
    1630.00, #, #, #, #, #, #, #, #, #,373,7 [132 ,0
    1640.00, #, #, #, #, #, #, #, #, #,374,7 [132 ,0
    1650.00, #, #, #, #, #, #, #, #, #,375,7 [132 ,0
    1660.00, #, #, #, #, #, #, #, #, #,376,7 [132 ,0
    1670.00, #, #, #, #, #, #, #, #, #,377,7 [132 ,0
    1680.00, #, #, #, #, #, #, #, #, #,378,7 [132 ,0
    1690.00, #, #, #, #, #, #, #, #, #,379,7 [132 ,0
    1700.00, #, #, #, #, #, #, #, #, #,380,7 [132 ,0
    1710.00, #, #, #, #, #, #, #, #, #,381,7 [132 ,0
    1720.00, #, #, #, #, #, #, #, #, #,382,7 [132 ,0
    1730.00, #, #, #, #, #, #, #, #, #,383,7 [132 ,0
    1740.00  1741.00  1742.00  1743.00  1744.00  1745.00  1746.00  1747.00  1748.00  1749.00  
    1750.00, #, #, #, #, #, #, #, #, #,384,7 [132 ,0
    1760.00, #, #, #, #, #, #, #, #, #,385,7 [132 ,0
    1770.00, #, #, #, #, #, #, #, #, #,386,7 [132 ,0
    1780.00, #, #, #, #, #, #, #, #, #,387,7 [132 ,0
    1790.00, #, #, #, #, #, #, #, #, #,388,7 [132 ,0
    1800.00, #, #, #, #, #, #, #, #, #,389,7 [132 ,0
    1810.00, #, #, #, #, #, #, #, #, #,390,7 [132 ,0
    1820.00, #, #, #, #, #, #, #, #, #,391,7 [132 ,0
    1830.00, #, #, #, #, #, #, #, #, #,392,7 [132 ,0
    1840.00, #, #, #, #, #, #, #, #, #,393,7 [132 ,0
    1850.00, #, #, #, #, #, #, #, #, #,394,7 [132 ,0
    1860.00, #, #, #, #, #, #, #, #, #,395,7 [132 ,0
    1870.00, #, #, #, #, #, #, #, #, #,396,7 [132 ,0
    1880.00, #, #, #, #, #, #, #, #, #,397,7 [132 ,0
    1890.00, #, #, #, #, #, #, #, #, #,398,7 [132 ,0
    1900.00, #, #, #, #, #, #, #, #, #,399,7 [132 ,0
    1910.00, #, #, #, #, #, #, #, #, #,400,7 [132 ,0
    1920.00, #, #, #, #, #, #, #, #, #,401,7 [132 ,0
    1930.00, #, #, #, #, #, #, #, #, #,402,7 [132 ,0
    1940.00, #, #, #, #, #, #, #, #, #,403,7 [132 ,0
    1950.00, #, #, #, #, #, #, #, #, #,404,7 [132 ,0
    1960.00, #, #, #, #, #, #, #, #, #,405,7 [132 ,0
    1970.00, #, #, #, #, #, #, #, #, #,406,7 [132 ,0
    1980.00, #, #, #, #, #, #, #, #, #,407,7 [132 ,0
    1990.00  1991.00  1992.00  1993.00  1994.00  1995.00  1996.00  1997.00  1998.00  1999.00  
    2000.00, #, #, #, #, #, #, #, #, #,408,7 [132 ,0
    2010.00, #, #, #, #, #, #, #, #, #,409,7 [132 ,0
    2020.00, #, #, #, #, #, #, #, #, #,410,7 [132 ,0
    2030.00, #, #, #, #, #, #, #, #, #,411,7 [132 ,0
    2040.00, #, #, #, #, #, #, #, #, #,412,7 [132 ,0
    2050.00, #, #, #, #, #, #, #, #, #,413,7 [132 ,0
    2060.00, #, #, #, #, #, #, #, #, #,414,7 [132 ,0
    2070.00, #, #, #, #, #, #, #, #, #,415,7 [132 ,0
    2080.00, #, #, #, #, #, #, #, #, #,416,7 [132 ,0
    2090.00, #, #, #, #, #, #, #, #, #,417,7 [132 ,0
    2100.00, #, #, #, #, #, #, #, #, #,418,7 [132 ,0
    2110.00, #, #, #, #, #, #, #, #, #,419,7 [132 ,0
    2120.00, #, #, #, #, #, #, #, #, #,420,7 [132 ,0
    2130.00, #, #, #, #, #, #, #, #, #,421,7 [132 ,0
    2140.00, #, #, #, #, #, #, #, #, #,422,7 [132 ,0
    2150.00, #, #, #, #, #, #, #, #, #,423,7 [132 ,0
    2160.00, #, #, #, #, #, #, #, #, #,424,7 [132 ,0
    2170.00, #, #, #, #, #, #, #, #, #,425,7 [132 ,0
    2180.00, #, #, #, #, #, #, #, #, #,426,7 [132 ,0
    2190.00, #, #, #, #, #, #, #, #, #,427,7 [132 ,0
    2200.00, #, #, #, #, #, #, #, #, #,428,7 [132 ,0
    2210.00, #, #, #, #, #, #, #, #, #,429,7 [132 ,0
    2220.00, #, #, #, #, #, #, #, #, #,430,7 [132 ,0
    2230.00, #, #, #, #, #, #, #, #, #,431,7 [132 ,0
    2240.00  2241.00  2242.00  2243.00  2244.00  2245.00  2246.00  2247.00  2248.00  2249.00  
    2250.00, #, #, #, #, #, #, #, #, #,432,7 [132 ,0
    
    Bad LASTVAL TEST INCREMENT <<<<<<<<<<<<<<<<<<<< DIFF OF> -10.00
    2270.00,2271.00,2272.00,2273.00,2274.00,2275.00,2276.00,2277.00,2278.00,2279.00,433,8 [132 ,0
    2280.00, #, #, #, #, #, #, #, #, #,434,8 [132 ,0
    2290.00, #, #, #, #, #, #, #, #, #,435,8 [132 ,0
    2300.00, #, #, #, #, #, #, #, #, #,436,8 [132 ,0
    2310.00, #, #, #, #, #, #, #, #, #,437,8 [132 ,0
    2320.00, #, #, #, #, #, #, #, #, #,438,8 [132 ,0
    2330.00, #, #, #, #, #, #, #, #, #,439,8 [132 ,0
    2340.00, #, #, #, #, #, #, #, #, #,440,8 [132 ,0
    2350.00, #, #, #, #, #, #, #, #, #,441,8 [132 ,0
    2360.00, #, #, #, #, #, #, #, #, #,442,8 [132 ,0
    2370.00, #, #, #, #, #, #, #, #, #,443,8 [132 ,0
    2380.00, #, #, #, #, #, #, #, #, #,444,8 [132 ,0
    2390.00, #, #, #, #, #, #, #, #, #,445,8 [132 ,0
    2400.00, #, #, #, #, #, #, #, #, #,446,8 [132 ,0
    2410.00, #, #, #, #, #, #, #, #, #,447,8 [132 ,0
    2420.00, #, #, #, #, #, #, #, #, #,448,8 [132 ,0
    2430.00, #, #, #, #, #, #, #, #, #,449,8 [132 ,0
    2440.00, #, #, #, #, #, #, #, #, #,450,8 [132 ,0
    2450.00, #, #, #, #, #, #, #, #, #,451,8 [132 ,0
    2460.00, #, #, #, #, #, #, #, #, #,452,8 [132 ,0
    2470.00, #, #, #, #, #, #, #, #, #,453,8 [132 ,0
    2480.00, #, #, #, #, #, #, #, #, #,454,8 [132 ,0
    2490.00  2491.00  2492.00  2493.00  2494.00  2495.00  2496.00  2497.00  2498.00  2499.00  
    2500.00, #, #, #, #, #, #, #, #, #,455,8 [132 ,0
    2510.00, #, #, #, #, #, #, #, #, #,456,8 [132 ,0
    2520.00, #, #, #, #, #, #, #, #, #,457,8 [132 ,0
    2530.00, #, #, #, #, #, #, #, #, #,458,8 [132 ,0
    2540.00, #, #, #, #, #, #, #, #, #,459,8 [132 ,0
    2550.00, #, #, #, #, #, #, #, #, #,460,8 [132 ,0
    2560.00, #, #, #, #, #, #, #, #, #,461,8 [132 ,0
    2570.00, #, #, #, #, #, #, #, #, #,462,8 [132 ,0
    2580.00, #, #, #, #, #, #, #, #, #,463,8 [132 ,0
    2590.00, #, #, #, #, #, #, #, #, #,464,8 [132 ,0
    2600.00, #, #, #, #, #, #, #, #, #,465,8 [132 ,0
    2610.00, #, #, #, #, #, #, #, #, #,466,8 [132 ,0
    2620.00, #, #, #, #, #, #, #, #, #,467,8 [132 ,0
    2630.00, #, #, #, #, #, #, #, #, #,468,8 [132 ,0
    2640.00, #, #, #, #, #, #, #, #, #,469,8 [132 ,0
    2650.00, #, #, #, #, #, #, #, #, #,470,8 [132 ,0
    2660.00, #, #, #, #, #, #, #, #, #,471,8 [132 ,0
    2670.00, #, #, #, #, #, #, #, #, #,472,8 [132 ,0
    2680.00, #, #, #, #, #, #, #, #, #,473,8 [132 ,0
    2690.00, #, #, #, #, #, #, #, #, #,474,8 [132 ,0
    2700.00, #, #, #, #, #, #, #, #, #,475,8 [132 ,0
    2710.00, #, #, #, #, #, #, #, #, #,476,8 [132 ,0
    2720.00, #, #, #, #, #, #, #, #, #,477,8 [132 ,0
    2730.00, #, #, #, #, #, #, #, #, #,478,8 [132 ,0
    2740.00  2741.00  2742.00  2743.00  2744.00  2745.00  2746.00  2747.00  2748.00  2749.00  
    2750.00, #, #, #, #, #, #, #, #, #,479,8 [132 ,0
    2760.00, #, #, #, #, #, #, #, #, #,480,8 [132 ,0
    2770.00, #, #, #, #, #, #, #, #, #,481,8 [132 ,0
    2780.00, #, #, #, #, #, #, #, #, #,482,8 [132 ,0
    2790.00, #, #, #, #, #, #, #, #, #,483,8 [132 ,0
    2800.00, #, #, #, #, #, #, #, #, #,484,8 [132 ,0
    2810.00, #, #, #, #, #, #, #, #, #,485,8 [132 ,0
    2820.00, #, #, #, #, #, #, #, #, #,486,8 [132 ,0
    2830.00, #, #, #, #, #, #, #, #, #,487,8 [132 ,0
    2840.00, #, #, #, #, #, #, #, #, #,488,8 [132 ,0
    2850.00, #, #, #, #, #, #, #, #, #,489,8 [132 ,0
    2860.00, #, #, #, #, #, #, #, #, #,490,8 [132 ,0
    2870.00, #, #, #, #, #, #, #, #, #,491,8 [132 ,0
    2880.00, #, #, #, #, #, #, #, #, #,492,8 [132 ,0
    2890.00, #, #, #, #, #, #, #, #, #,493,8 [132 ,0
    2900.00, #, #, #, #, #, #, #, #, #,494,8 [132 ,0
    2910.00, #, #, #, #, #, #, #, #, #,495,8 [132 ,0
    2920.00, #, #, #, #, #, #, #, #, #,496,8 [132 ,0
    2930.00, #, #, #, #, #, #, #, #, #,497,8 [132 ,0
    2940.00, #, #, #, #, #, #, #, #, #,498,8 [132 ,0
    2950.00, #, #, #, #, #, #, #, #, #,499,8 [132 ,0
    2960.00, #, #, #, #, #, #, #, #, #,500,8 [132 ,0
    2970.00, #, #, #, #, #, #, #, #, #,501,8 [132 ,0
    2980.00, #, #, #, #, #, #, #, #, #,502,8 [132 ,0
    2990.00  2991.00  2992.00  2993.00  2994.00  2995.00  2996.00  2997.00  2998.00  2999.00  
    3000.00, #, #, #, #, #, #, #, #, #,503,8 [132 ,0
    3010.00, #, #, #, #, #, #, #, #, #,504,8 [132 ,0
    3020.00, #, #, #, #, #, #, #, #, #,505,8 [132 ,0
    3030.00, #, #, #, #, #, #, #, #, #,506,8 [132 ,0
    3040.00, #, #, #, #, #, #, #, #, #,507,8 [132 ,0
    3050.00, #, #, #, #, #, #, #, #, #,508,8 [132 ,0
    3060.00, #, #, #, #, #, #, #, #, #,509,8 [132 ,0
    3070.00, #, #, #, #, #, #, #, #, #,510,8 [132 ,0
    3080.00, #, #, #, #, #, #, #, #, #,511,8 [132 ,0
    3090.00, #, #, #, #, #, #, #, #, #,512,8 [132 ,0
    3100.00, #, #, #, #, #, #, #, #, #,513,8 [132 ,0
    3110.00, #, #, #, #, #, #, #, #, #,514,8 [132 ,0
    3120.00, #, #, #, #, #, #, #, #, #,515,8 [132 ,0
    3130.00, #, #, #, #, #, #, #, #, #,516,8 [132 ,0
    3140.00, #, #, #, #, #, #, #, #, #,517,8 [132 ,0
    3150.00, #, #, #, #, #, #, #, #, #,518,8 [132 ,0
    3160.00, #, #, #, #, #, #, #, #, #,519,8 [132 ,0
    3170.00, #, #, #, #, #, #, #, #, #,520,8 [132 ,0
    3180.00, #, #, #, #, #, #, #, #, #,521,8 [132 ,0
    3190.00, #, #, #, #, #, #, #, #, #,522,8 [132 ,0
    3200.00, #, #, #, #, #, #, #, #, #,523,8 [132 ,0
    3210.00, #, #, #, #, #, #, #, #, #,524,8 [132 ,0
    3220.00, #, #, #, #, #, #, #, #, #,525,8 [132 ,0
    3230.00, #, #, #, #, #, #, #, #, #,526,8 [132 ,0
    3240.00  3241.00  3242.00  3243.00  3244.00  3245.00  3246.00  3247.00  3248.00  3249.00  
    3250.00, #, #, #, #, #, #, #, #, #,527,8 [132 ,0
    3260.00, #, #, #, #, #, #, #, #, #,528,8 [132 ,0
    3270.00, #, #, #, #, #, #, #, #, #,529,8 [132 ,0
    3280.00, #, #, #, #, #, #, #, #, #,530,8 [132 ,0
    3290.00, #, #, #, #, #, #, #, #, #,531,8 [132 ,0
    3300.00, #, #, #, #, #, #, #, #, #,532,8 [132 ,0
    3310.00, #, #, #, #, #, #, #, #, #,533,8 [132 ,0
    3320.00, #, #, #, #, #, #, #, #, #,534,8 [132 ,0
    3330.00, #, #, #, #, #, #, #, #, #,535,8 [132 ,0
    3340.00, #, #, #, #, #, #, #, #, #,536,8 [132 ,0
    3350.00, #, #, #, #, #, #, #, #, #,537,8 [132 ,0
    3360.00, #, #, #, #, #, #, #, #, #,538,8 [132 ,0
    3370.00, #, #, #, #, #, #, #, #, #,539,8 [132 ,0
    3380.00, #, #, #, #, #, #, #, #, #,540,8 [132 ,0
    3390.00, #, #, #, #, #, #, #, #, #,541,8 [132 ,0
    3400.00, #, #, #, #, #, #, #, #, #,542,8 [132 ,0
    3410.00, #, #, #, #, #, #, #, #, #,543,8 [132 ,0
    3420.00, #, #, #, #, #, #, #, #, #,544,8 [132 ,0
    3430.00, #, #, #, #, #, #, #, #, #,545,8 [132 ,0
    3440.00, #, #, #, #, #, #, #, #, #,546,8 [132 ,0
    3450.00, #, #, #, #, #, #, #, #, #,547,8 [132 ,0
    3460.00, #, #, #, #, #, #, #, #, #,548,8 [132 ,0
    3470.00, #, #, #, #, #, #, #, #, #,549,8 [132 ,0
    3480.00, #, #, #, #, #, #, #, #, #,550,8 [132 ,0
    3490.00  3491.00  3492.00  3493.00  3494.00  3495.00  3496.00  3497.00  3498.00  3499.00  
    3500.00, #, #, #, #, #, #, #, #, #,551,8 [132 ,0
    3510.00, #, #, #, #, #, #, #, #, #,552,8 [132 ,0
    3520.00, #, #, #, #, #, #, #, #, #,553,8 [132 ,0
    3530.00, #, #, #, #, #, #, #, #, #,554,8 [132 ,0
    3540.00, #, #, #, #, #, #, #, #, #,555,8 [132 ,0
    3550.00, #, #, #, #, #, #, #, #, #,556,8 [132 ,0
    3560.00, #, #, #, #, #, #, #, #, #,557,8 [132 ,0
    3570.00, #, #, #, #, #, #, #, #, #,558,8 [132 ,0
    3580.00, #, #, #, #, #, #, #, #, #,559,8 [132 ,0
    3590.00, #, #, #, #, #, #, #, #, #,560,8 [132 ,0
    3600.00, #, #, #, #, #, #, #, #, #,561,8 [132 ,0
    3610.00, #, #, #, #, #, #, #, #, #,562,8 [132 ,0
    3620.00, #, #, #, #, #, #, #, #, #,563,8 [132 ,0
    3630.00, #, #, #, #, #, #, #, #, #,564,8 [132 ,0
    3640.00, #, #, #, #, #, #, #, #, #,565,8 [132 ,0
    3650.00, #, #, #, #, #, #, #, #, #,566,8 [132 ,0
    3660.00, #, #, #, #, #, #, #, #, #,567,8 [132 ,0
    3670.00, #, #, #, #, #, #, #, #, #,568,8 [132 ,0
    3680.00, #, #, #, #, #, #, #, #, #,569,8 [132 ,0
    3690.00, #, #, #, #, #, #, #, #, #,570,8 [132 ,0
    3700.00, #, #, #, #, #, #, #, #, #,571,8 [132 ,0
    3710.00, #, #, #, #, #, #, #, #, #,572,8 [132 ,0
    3720.00, #, #, #, #, #, #, #, #, #,573,8 [132 ,0
    3730.00, #, #, #, #, #, #, #, #, #,574,8 [132 ,0
    3740.00  3741.00  3742.00  3743.00  3744.00  3745.00  3746.00  3747.00  3748.00  3749.00  
    3750.00, #, #, #, #, #, #, #, #, #,575,8 [132 ,0
    3760.00, #, #, #, #, #, #, #, #, #,576,8 [132 ,0
    3770.00, #, #, #, #, #, #, #, #, #,577,8 [132 ,0
    3780.00, #, #, #, #, #, #, #, #, #,578,8 [132 ,0
    3790.00, #, #, #, #, #, #, #, #, #,579,8 [132 ,0
    3800.00, #, #, #, #, #, #, #, #, #,580,8 [132 ,0
    3810.00, #, #, #, #, #, #, #, #, #,581,8 [132 ,0
    3820.00, #, #, #, #, #, #, #, #, #,582,8 [132 ,0
    3830.00, #, #, #, #, #, #, #, #, #,583,8 [132 ,0
    3840.00, #, #, #, #, #, #, #, #, #,584,8 [132 ,0
    3850.00, #, #, #, #, #, #, #, #, #,585,8 [132 ,0
    3860.00, #, #, #, #, #, #, #, #, #,586,8 [132 ,0
    3870.00, #, #, #, #, #, #, #, #, #,587,8 [132 ,0
    3880.00, #, #, #, #, #, #, #, #, #,588,8 [132 ,0
    3890.00, #, #, #, #, #, #, #, #, #,589,8 [132 ,0
    3900.00, #, #, #, #, #, #, #, #, #,590,8 [132 ,0
    3910.00, #, #, #, #, #, #, #, #, #,591,8 [132 ,0
    3920.00, #, #, #, #, #, #, #, #, #,592,8 [132 ,0
    3930.00, #, #, #, #, #, #, #, #, #,593,8 [132 ,0
    3940.00, #, #, #, #, #, #, #, #, #,594,8 [132 ,0
    3950.00, #, #, #, #, #, #, #, #, #,595,8 [132 ,0
    3960.00, #, #, #, #, #, #, #, #, #,596,8 [132 ,0
    3970.00, #, #, #, #, #, #, #, #, #,597,8 [132 ,0
    3980.00, #, #, #, #, #, #, #, #, #,598,8 [132 ,0
    3990.00  3991.00  3992.00  3993.00  3994.00  3995.00  3996.00  3997.00  3998.00  3999.00  
    4000.00, #, #, #, #, #, #, #, #, #,599,8 [132 ,0
    4010.00, #, #, #, #, #, #, #, #, #,600,8 [132 ,0
    4020.00, #, #, #, #, #, #, #, #, #,601,8 [132 ,0
    4030.00, #, #, #, #, #, #, #, #, #,602,8 [132 ,0
    4040.00, #, #, #, #, #, #, #, #, #,603,8 [132 ,0
    4050.00, #, #, #, #, #, #, #, #, #,604,8 [132 ,0
    4060.00, #, #, #, #, #, #, #, #, #,605,8 [132 ,0
    4070.00, #, #, #, #, #, #, #, #, #,606,8 [132 ,0
    4080.00, #, #, #, #, #, #, #, #, #,607,8 [132 ,0
    4090.00, #, #, #, #, #, #, #, #, #,608,8 [132 ,0
    4100.00, #, #, #, #, #, #, #, #, #,609,8 [132 ,0
    4110.00, #, #, #, #, #, #, #, #, #,610,8 [132 ,0
    4120.00, #, #, #, #, #, #, #, #, #,611,8 [132 ,0
    4130.00, #, #, #, #, #, #, #, #, #,612,8 [132 ,0
    4140.00, #, #, #, #, #, #, #, #, #,613,8 [132 ,0
    4150.00, #, #, #, #, #, #, #, #, #,614,8 [132 ,0
    4160.00, #, #, #, #, #, #, #, #, #,615,8 [132 ,0
    4170.00, #, #, #, #, #, #, #, #, #,616,8 [132 ,0
    4180.00, #, #, #, #, #, #, #, #, #,617,8 [132 ,0
    4190.00, #, #, #, #, #, #, #, #, #,618,8 [132 ,0
    4200.00, #, #, #, #, #, #, #, #, #,619,8 [132 ,0
    4210.00, #, #, #, #, #, #, #, #, #,620,8 [132 ,0
    4220.00, #, #, #, #, #, #, #, #, #,621,8 [132 ,0
    4230.00, #, #, #, #, #, #, #, #, #,622,8 [132 ,0
    4240.00  4241.00  4242.00  4243.00  4244.00  4245.00  4246.00  4247.00  4248.00  4249.00  
    4250.00, #, #, #, #, #, #, #, #, #,623,8 [132 ,0
    4260.00, #, #, #, #, #, #, #, #, #,624,8 [132 ,0
    4270.00, #, #, #, #, #, #, #, #, #,625,8 [132 ,0
    4280.00, #, #, #, #, #, #, #, #, #,626,8 [132 ,0
    4290.00, #, #, #, #, #, #, #, #, #,627,8 [132 ,0
    4300.00, #, #, #, #, #, #, #, #, #,628,8 [132 ,0
    4310.00, #, #, #, #, #, #, #, #, #,629,8 [132 ,0
    4320.00, #, #, #, #, #, #, #, #, #,630,8 [132 ,0
    4330.00, #, #, #, #, #, #, #, #, #,631,8 [132 ,0
    4340.00, #, #, #, #, #, #, #, #, #,632,8 [132 ,0
    4350.00, #, #, #, #, #, #, #, #, #,633,8 [132 ,0
    4360.00, #, #, #, #, #, #, #, #, #,634,8 [132 ,0
    4370.00, #, #, #, #, #, #, #, #, #,635,8 [132 ,0
    4380.00, #, #, #, #, #, #, #, #, #,636,8 [132 ,0
    4390.00, #, #, #, #, #, #, #, #, #,637,8 [132 ,0
    4400.00, #, #, #, #, #, #, #, #, #,638,8 [132 ,0
    4410.00, #, #, #, #, #, #, #, #, #,639,8 [132 ,0
    4420.00, #, #, #, #, #, #, #, #, #,640,8 [132 ,0
    4430.00, #, #, #, #, #, #, #, #, #,641,8 [132 ,0
    4440.00, #, #, #, #, #, #, #, #, #,642,8 [132 ,0
    4450.00, #, #, #, #, #, #, #, #, #,643,8 [132 ,0
    4460.00, #, #, #, #, #, #, #, #, #,644,8 [132 ,0
    4470.00, #, #, #, #, #, #, #, #, #,645,8 [132 ,0
    4480.00, #, #, #, #, #, #, #, #, #,646,8 [132 ,0
    4490.00  4491.00  4492.00  4493.00  4494.00  4495.00  4496.00  4497.00  4498.00  4499.00  
    4500.00, #, #, #, #, #, #, #, #, #,647,8 [132 ,0
    4510.00, #, #, #, #, #, #, #, #, #,648,8 [132 ,0
    4520.00, #, #, #, #, #, #, #, #, #,649,8 [132 ,0
    4530.00, #, #, #, #, #, #, #, #, #,650,8 [132 ,0
    4540.00, #, #, #, #, #, #, #, #, #,651,8 [132 ,0
    4550.00, #, #, #, #, #, #, #, #, #,652,8 [132 ,0
    4560.00, #, #, #, #, #, #, #, #, #,653,8 [132 ,0
    4570.00, #, #, #, #, #, #, #, #, #,654,8 [132 ,0
    4580.00, #, #, #, #, #, #, #, #, #,655,8 [132 ,0
    4590.00, #, #, #, #, #, #, #, #, #,656,8 [132 ,0
    4600.00, #, #, #, #, #, #, #, #, #,657,8 [132 ,0
    4610.00, #, #, #, #, #, #, #, #, #,658,8 [132 ,0
    4620.00, #, #, #, #, #, #, #, #, #,659,8 [132 ,0
    
    4630.00, #, #, #, #, #, #, #, #, #,660,8 [132 ,0
    4640.00, #, #, #, #, #, #, #, #, #,661,8 [132 ,0
    4650.00, #, #, #, #, #, #, #, #, #,662,8 [132 ,0
    4660.00, #, #, #, #, #, #, #, #, #,663,8 [132 ,0
    4670.00, #, #, #, #, #, #, #, #, #,664,8 [132 ,0
    4680.00, #, #, #, #, #, #, #, #, #,665,8 [132 ,0
    4690.00, #, #, #, #, #, #, #, #, #,666,8 [132 ,0
    4700.00, #, #, #, #, #, #, #, #, #,667,8 [132 ,0
    4710.00, #, #, #, #, #, #, #, #, #,668,8 [132 ,0
    4720.00, #, #, #, #, #, #, #, #, #,669,8 [132 ,0
    4730.00, #, #, #, #, #, #, #, #, #,670,8 [132 ,0
    4740.00  4741.00  4742.00  4743.00  4744.00  4745.00  4746.00  4747.00  4748.00  4749.00  
    4750.00, #, #, #, #, #, #, #, #, #,671,8 [132 ,0
    4760.00, #, #, #, #, #, #, #, #, #,672,8 [132 ,0
    4770.00, #, #, #, #, #, #, #, #, #,673,8 [132 ,0
    4780.00, #, #, #, #, #, #, #, #, #,674,8 [132 ,0
    4790.00, #, #, #, #, #, #, #, #, #,675,8 [132 ,0
    4800.00, #, #, #, #, #, #, #, #, #,676,8 [132 ,0
    4810.00, #, #, #, #, #, #, #, #, #,677,8 [132 ,0
    4820.00, #, #, #, #, #, #, #, #, #,678,8 [132 ,0
    4830.00, #, #, #, #, #, #, #, #, #,679,8 [132 ,0
    4840.00, #, #, #, #, #, #, #, #, #,680,8 [132 ,0
    4850.00, #, #, #, #, #, #, #, #, #,681,8 [132 ,0
    4860.00, #, #, #, #, #, #, #, #, #,682,8 [132 ,0
    4870.00, #, #, #, #, #, #, #, #, #,683,8 [132 ,0
    4880.00, #, #, #, #, #, #, #, #, #,684,8 [132 ,0
    4890.00, #, #, #, #, #, #, #, #, #,685,8 [132 ,0
    4900.00, #, #, #, #, #, #, #, #, #,686,8 [132 ,0
    4910.00, #, #, #, #, #, #, #, #, #,687,8 [132 ,0
    4920.00, #, #, #, #, #, #, #, #, #,688,8 [132 ,0
    4930.00, #, #, #, #, #, #, #, #, #,689,8 [132 ,0
    4940.00, #, #, #, #, #, #, #, #, #,690,8 [132 ,0
    4950.00, #, #, #, #, #, #, #, #, #,691,8 [132 ,0
    4960.00, #, #, #, #, #, #, #, #, #,692,8 [132 ,0
    4970.00, #, #, #, #, #, #, #, #, #,693,8 [132 ,0
    4980.00, #, #, #, #, #, #, #, #, #,694,8 [132 ,0
    4990.00  4991.00  4992.00  4993.00  4994.00  4995.00  4996.00  4997.00  4998.00  4999.00  
    
    Bad LASTVAL TEST INCREMENT <<<<<<<<<<<<<<<<<<<< DIFF OF> -10.00
    5010.00,5011.00,5012.00,5013.00,5014.00,5015.00,5016.00,5017.00,5018.00,5019.00,695,9 [132 ,0
    5020.00, #, #, #, #, #, #, #, #, #,696,9 [132 ,0
    5030.00, #, #, #, #, #, #, #, #, #,697,9 [132 ,0
    5040.00, #, #, #, #, #, #, #, #, #,698,9 [132 ,0
    5050.00, #, #, #, #, #, #, #, #, #,699,9 [132 ,0
    5060.00, #, #, #, #, #, #, #, #, #,700,9 [132 ,0
    5070.00, #, #, #, #, #, #, #, #, #,701,9 [132 ,0
    5080.00, #, #, #, #, #, #, #, #, #,702,9 [132 ,0
    5090.00, #, #, #, #, #, #, #, #, #,703,9 [132 ,0
    5100.00, #, #, #, #, #, #, #, #, #,704,9 [348 ,0
    5110.00, #, #, #, #, #, #, #, #, #,705,9 [348 ,0
    5120.00, #, #, #, #, #, #, #, #, #,706,9 [348 ,0
    5130.00, #, #, #, #, #, #, #, #, #,707,9 [348 ,0
    5140.00, #, #, #, #, #, #, #, #, #,708,9 [348 ,0
    5150.00, #, #, #, #, #, #, #, #, #,709,9 [348 ,0
    5160.00, #, #, #, #, #, #, #, #, #,710,9 [348 ,0
    5170.00, #, #, #, #, #, #, #, #, #,711,9 [348 ,0
    5180.00, #, #, #, #, #, #, #, #, #,712,9 [348 ,0
    5190.00, #, #, #, #, #, #, #, #, #,713,9 [348 ,0
    5200.00, #, #, #, #, #, #, #, #, #,714,9 [348 ,0
    5210.00, #, #, #, #, #, #, #, #, #,715,9 [348 ,0
    5220.00, #, #, #, #, #, #, #, #, #,716,9 [348 ,0
    5230.00, #, #, #, #, #, #, #, #, #,717,9 [348 ,0
    5240.00  5241.00  5242.00  5243.00  5244.00  5245.00  5246.00  5247.00  5248.00  5249.00  
    5250.00, #, #, #, #, #, #, #, #, #,718,9 [348 ,0
    5260.00, #, #, #, #, #, #, #, #, #,719,9 [348 ,0
    5270.00, #, #, #, #, #, #, #, #, #,720,9 [348 ,0
    5280.00, #, #, #, #, #, #, #, #, #,721,9 [348 ,0
    5290.00, #, #, #, #, #, #, #, #, #,722,9 [348 ,0
    5300.00, #, #, #, #, #, #, #, #, #,723,9 [348 ,0
    5310.00, #, #, #, #, #, #, #, #, #,724,9 [348 ,0
    5320.00, #, #, #, #, #, #, #, #, #,725,9 [348 ,0
    5330.00, #, #, #, #, #, #, #, #, #,726,9 [348 ,0
    5340.00, #, #, #, #, #, #, #, #, #,727,9 [348 ,0
    5350.00, #, #, #, #, #, #, #, #, #,728,9 [348 ,0
    5360.00, #, #, #, #, #, #, #, #, #,729,9 [348 ,0
    5370.00, #, #, #, #, #, #, #, #, #,730,9 [348 ,0
    5380.00, #, #, #, #, #, #, #, #, #,731,9 [348 ,0
    5390.00, #, #, #, #, #, #, #, #, #,732,9 [348 ,0
    5400.00, #, #, #, #, #, #, #, #, #,733,9 [348 ,0
    5410.00, #, #, #, #, #, #, #, #, #,734,9 [348 ,0
    5420.00, #, #, #, #, #, #, #, #, #,735,9 [348 ,0
    5430.00, #, #, #, #, #, #, #, #, #,736,9 [348 ,0
    5440.00, #, #, #, #, #, #, #, #, #,737,9 [348 ,0
    5450.00, #, #, #, #, #, #, #, #, #,738,9 [348 ,0
    5460.00, #, #, #, #, #, #, #, #, #,739,9 [348 ,0
    5470.00, #, #, #, #, #, #, #, #, #,740,9 [348 ,0
    5480.00, #, #, #, #, #, #, #, #, #,741,9 [348 ,0
    5490.00  5491.00  5492.00  5493.00  5494.00  5495.00  5496.00  5497.00  5498.00  5499.00  
    5500.00, #, #, #, #, #, #, #, #, #,742,9 [348 ,0
    5510.00, #, #, #, #, #, #, #, #, #,743,9 [348 ,0
    5520.00, #, #, #, #, #, #, #, #, #,744,9 [348 ,0
    5530.00, #, #, #, #, #, #, #, #, #,745,9 [348 ,0
    5540.00, #, #, #, #, #, #, #, #, #,746,9 [348 ,0
    5550.00, #, #, #, #, #, #, #, #, #,747,9 [348 ,0
    5560.00, #, #, #, #, #, #, #, #, #,748,9 [348 ,0
    5570.00, #, #, #, #, #, #, #, #, #,749,9 [348 ,0
    5580.00, #, #, #, #, #, #, #, #, #,750,9 [348 ,0
    5590.00, #, #, #, #, #, #, #, #, #,751,9 [348 ,0
    5600.00, #, #, #, #, #, #, #, #, #,752,9 [348 ,0
    5610.00, #, #, #, #, #, #, #, #, #,753,9 [348 ,0
    5620.00, #, #, #, #, #, #, #, #, #,754,9 [348 ,0
    5630.00, #, #, #, #, #, #, #, #, #,755,9 [348 ,0
    5640.00, #, #, #, #, #, #, #, #, #,756,9 [348 ,0
    5650.00, #, #, #, #, #, #, #, #, #,757,9 [348 ,0
    5660.00, #, #, #, #, #, #, #, #, #,758,9 [348 ,0
    5670.00, #, #, #, #, #, #, #, #, #,759,9 [348 ,0
    5680.00, #, #, #, #, #, #, #, #, #,760,9 [348 ,0
    5690.00, #, #, #, #, #, #, #, #, #,761,9 [348 ,0
    5700.00, #, #, #, #, #, #, #, #, #,762,9 [348 ,0
    5710.00, #, #, #, #, #, #, #, #, #,763,9 [348 ,0
    5720.00, #, #, #, #, #, #, #, #, #,764,9 [348 ,0
    5730.00, #, #, #, #, #, #, #, #, #,765,9 [348 ,0
    5740.00  5741.00  5742.00  5743.00  5744.00  5745.00  5746.00  5747.00  5748.00  5749.00  
    5750.00, #, #, #, #, #, #, #, #, #,766,9 [348 ,0
    5760.00, #, #, #, #, #, #, #, #, #,767,9 [348 ,0
    5770.00, #, #, #, #, #, #, #, #, #,768,9 [348 ,0
    5780.00, #, #, #, #, #, #, #, #, #,769,9 [348 ,0
    5790.00, #, #, #, #, #, #, #, #, #,770,9 [348 ,0
    5800.00, #, #, #, #, #, #, #, #, #,771,9 [348 ,0
    5810.00, #, #, #, #, #, #, #, #, #,772,9 [348 ,0
    5820.00, #, #, #, #, #, #, #, #, #,773,9 [348 ,0
    5830.00, #, #, #, #, #, #, #, #, #,774,9 [348 ,0
    5840.00, #, #, #, #, #, #, #, #, #,775,9 [348 ,0
    5850.00, #, #, #, #, #, #, #, #, #,776,9 [348 ,0
    5860.00, #, #, #, #, #, #, #, #, #,777,9 [348 ,0
    5870.00, #, #, #, #, #, #, #, #, #,778,9 [348 ,0
    5880.00, #, #, #, #, #, #, #, #, #,779,9 [348 ,0
    5890.00, #, #, #, #, #, #, #, #, #,780,9 [348 ,0
    5900.00, #, #, #, #, #, #, #, #, #,781,9 [348 ,0
    5910.00, #, #, #, #, #, #, #, #, #,782,9 [348 ,0
    5920.00, #, #, #, #, #, #, #, #, #,783,9 [348 ,0
    5930.00, #, #, #, #, #, #, #, #, #,784,9 [348 ,0
    5940.00, #, #, #, #, #, #, #, #, #,785,9 [348 ,0
    5950.00, #, #, #, #, #, #, #, #, #,786,9 [348 ,0
    5960.00, #, #, #, #, #, #, #, #, #,787,9 [348 ,0
    5970.00, #, #, #, #, #, #, #, #, #,788,9 [348 ,0
    5980.00, #, #, #, #, #, #, #, #, #,789,9 [348 ,0
    5990.00  5991.00  5992.00  5993.00  5994.00  5995.00  5996.00  5997.00  5998.00  5999.00  
    6000.00, #, #, #, #, #, #, #, #, #,790,9 [348 ,0
    6010.00, #, #, #, #, #, #, #, #, #,791,9 [348 ,0
    6020.00, #, #, #, #, #, #, #, #, #,792,9 [348 ,0
    6030.00, #, #, #, #, #, #, #, #, #,793,9 [348 ,0
    6040.00, #, #, #, #, #, #, #, #, #,794,9 [348 ,0
    6050.00, #, #, #, #, #, #, #, #, #,795,9 [348 ,0
    6060.00, #, #, #, #, #, #, #, #, #,796,9 [348 ,0
    6070.00, #, #, #, #, #, #, #, #, #,797,9 [348 ,0
    6080.00, #, #, #, #, #, #, #, #, #,798,9 [348 ,0
    6090.00, #, #, #, #, #, #, #, #, #,799,9 [348 ,0
    6100.00, #, #, #, #, #, #, #, #, #,800,9 [348 ,0
    6110.00, #, #, #, #, #, #, #, #, #,801,9 [348 ,0
    6120.00, #, #, #, #, #, #, #, #, #,802,9 [348 ,0
    6130.00, #, #, #, #, #, #, #, #, #,803,9 [348 ,0
    6140.00, #, #, #, #, #, #, #, #, #,804,9 [348 ,0
    6150.00, #, #, #, #, #, #, #, #, #,805,9 [348 ,0
    6160.00, #, #, #, #, #, #, #, #, #,806,9 [348 ,0
    6170.00, #, #, #, #, #, #, #, #, #,807,9 [348 ,0
    6180.00, #, #, #, #, #, #, #, #, #,808,9 [348 ,0
    6190.00, #, #, #, #, #, #, #, #, #,809,9 [348 ,0
    6200.00, #, #, #, #, #, #, #, #, #,810,9 [348 ,0
    6210.00, #, #, #, #, #, #, #, #, #,811,9 [348 ,0
    6220.00, #, #, #, #, #, #, #, #, #,812,9 [348 ,0
    6230.00, #, #, #, #, #, #, #, #, #,813,9 [348 ,0
    6240.00  6241.00  6242.00  6243.00  6244.00  6245.00  6246.00  6247.00  6248.00  6249.00  
    6250.00, #, #, #, #, #, #, #, #, #,814,9 [348 ,0
    6260.00, #, #, #, #, #, #, #, #, #,815,9 [348 ,0
    6270.00, #, #, #, #, #, #, #, #, #,816,9 [348 ,0
    6280.00, #, #, #, #, #, #, #, #, #,817,9 [348 ,0
    6290.00, #, #, #, #, #, #, #, #, #,818,9 [348 ,0
    6300.00, #, #, #, #, #, #, #, #, #,819,9 [348 ,0
    6310.00, #, #, #, #, #, #, #, #, #,820,9 [348 ,0
    6320.00, #, #, #, #, #, #, #, #, #,821,9 [348 ,0
    6330.00, #, #, #, #, #, #, #, #, #,822,9 [348 ,0
    6340.00, #, #, #, #, #, #, #, #, #,823,9 [348 ,0
    6350.00, #, #, #, #, #, #, #, #, #,824,9 [348 ,0
    6360.00, #, #, #, #, #, #, #, #, #,825,9 [348 ,0
    6370.00, #, #, #, #, #, #, #, #, #,826,9 [348 ,0
    6380.00, #, #, #, #, #, #, #, #, #,827,9 [348 ,0
    6390.00, #, #, #, #, #, #, #, #, #,828,9 [348 ,0
    6400.00, #, #, #, #, #, #, #, #, #,829,9 [348 ,0
    6410.00, #, #, #, #, #, #, #, #, #,830,9 [348 ,0
    6420.00, #, #, #, #, #, #, #, #, #,831,9 [348 ,0
    6430.00, #, #, #, #, #, #, #, #, #,832,9 [348 ,0
    6440.00, #, #, #, #, #, #, #, #, #,833,9 [348 ,0
    6450.00, #, #, #, #, #, #, #, #, #,834,9 [348 ,0
    6460.00, #, #, #, #, #, #, #, #, #,835,9 [348 ,0
    6470.00, #, #, #, #, #, #, #, #, #,836,9 [348 ,0
    6480.00, #, #, #, #, #, #, #, #, #,837,9 [348 ,0
    6490.00  6491.00  6492.00  6493.00  6494.00  6495.00  6496.00  6497.00  6498.00  6499.00  
    6500.00, #, #, #, #, #, #, #, #, #,838,9 [348 ,0
    6510.00, #, #, #, #, #, #, #, #, #,839,9 [348 ,0
    6520.00, #, #, #, #, #, #, #, #, #,840,9 [348 ,0
    6530.00, #, #, #, #, #, #, #, #, #,841,9 [348 ,0
    6540.00, #, #, #, #, #, #, #, #, #,842,9 [348 ,0
    6550.00, #, #, #, #, #, #, #, #, #,843,9 [348 ,0
    6560.00, #, #, #, #, #, #, #, #, #,844,9 [348 ,0
    6570.00, #, #, #, #, #, #, #, #, #,845,9 [348 ,0
    6580.00, #, #, #, #, #, #, #, #, #,846,9 [348 ,0
    6590.00, #, #, #, #, #, #, #, #, #,847,9 [348 ,0
    6600.00, #, #, #, #, #, #, #, #, #,848,9 [348 ,0
    6610.00, #, #, #, #, #, #, #, #, #,849,9 [348 ,0
    6620.00, #, #, #, #, #, #, #, #, #,850,9 [348 ,0
    6630.00, #, #, #, #, #, #, #, #, #,851,9 [348 ,0
    6640.00, #, #, #, #, #, #, #, #, #,852,9 [348 ,0
    6650.00, #, #, #, #, #, #, #, #, #,853,9 [348 ,0
    6660.00, #, #, #, #, #, #, #, #, #,854,9 [348 ,0
    6670.00, #, #, #, #, #, #, #, #, #,855,9 [348 ,0
    6680.00, #, #, #, #, #, #, #, #, #,856,9 [348 ,0
    6690.00, #, #, #, #, #, #, #, #, #,857,9 [348 ,0
    6700.00, #, #, #, #, #, #, #, #, #,858,9 [348 ,0
    6710.00, #, #, #, #, #, #, #, #, #,859,9 [348 ,0
    6720.00, #, #, #, #, #, #, #, #, #,860,9 [348 ,0
    6730.00, #, #, #, #, #, #, #, #, #,861,9 [348 ,0
    6740.00  6741.00  6742.00  6743.00  6744.00  6745.00  6746.00  6747.00  6748.00  6749.00  
    6750.00, #, #, #, #, #, #, #, #, #,862,9 [348 ,0
    6760.00, #, #, #, #, #, #, #, #, #,863,9 [348 ,0
    6770.00, #, #, #, #, #, #, #, #, #,864,9 [348 ,0
    6780.00, #, #, #, #, #, #, #, #, #,865,9 [348 ,0
    6790.00, #, #, #, #, #, #, #, #, #,866,9 [348 ,0
    6800.00, #, #, #, #, #, #, #, #, #,867,9 [348 ,0
    6810.00, #, #, #, #, #, #, #, #, #,868,9 [348 ,0
    6820.00, #, #, #, #, #, #, #, #, #,869,9 [348 ,0
    6830.00, #, #, #, #, #, #, #, #, #,870,9 [348 ,0
    6840.00, #, #, #, #, #, #, #, #, #,871,9 [348 ,0
    6850.00, #, #, #, #, #, #, #, #, #,872,9 [348 ,0
    6860.00, #, #, #, #, #, #, #, #, #,873,9 [348 ,0
    6870.00, #, #, #, #, #, #, #, #, #,874,9 [348 ,0
    6880.00, #, #, #, #, #, #, #, #, #,875,9 [348 ,0
    6890.00, #, #, #, #, #, #, #, #, #,876,9 [348 ,0
    6900.00, #, #, #, #, #, #, #, #, #,877,9 [348 ,0
    6910.00, #, #, #, #, #, #, #, #, #,878,9 [348 ,0
    6920.00, #, #, #, #, #, #, #, #, #,879,9 [348 ,0
    6930.00, #, #, #, #, #, #, #, #, #,880,9 [348 ,0
    6940.00, #, #, #, #, #, #, #, #, #,881,9 [348 ,0
    6950.00, #, #, #, #, #, #, #, #, #,882,9 [348 ,0
    6960.00, #, #, #, #, #, #, #, #, #,883,9 [348 ,0
    6970.00, #, #, #, #, #, #, #, #, #,884,9 [348 ,0
    6980.00, #, #, #, #, #, #, #, #, #,885,9 [348 ,0
    6990.00  6991.00  6992.00  6993.00  6994.00  6995.00  6996.00  6997.00  6998.00  6999.00  
    7000.00, #, #, #, #, #, #, #, #, #,886,9 [348 ,0
    7010.00, #, #, #, #, #, #, #, #, #,887,9 [348 ,0
    7020.00, #, #, #, #, #, #, #, #, #,888,9 [348 ,0
    7030.00, #, #, #, #, #, #, #, #, #,889,9 [348 ,0
    7040.00, #, #, #, #, #, #, #, #, #,890,9 [348 ,0
    7050.00, #, #, #, #, #, #, #, #, #,891,9 [348 ,0

  7. #1807
    Senior Member
    Join Date
    Jul 2014
    Location
    New York
    Posts
    1,816
    Here is my master:
    Code:
    #include <SPI.h>
    #include <SPI_MSTransfer.h>
    #include "A_ConfigDefines.h"
    
    //comment out for T3.x slave devices
    #define TLC 1
    #define moo_lc 10
    #define moo_lc_l 5
    
    #if defined(TLC)
    #define SPI_SPEED 11000000
    #define GPIO2_SPI_SPD 11000000
    #else
    #define SPI_SPEED 30000000  //27MHz max for a T3.2
    #endif
    #define OT_CALC   100*(30000000/SPI_SPEED)
    
    SPI_MSTransfer teensy_gpio = SPI_MSTransfer("Serial", SPI_MST_CS, &SPI_MST_BUS, SPI_SPEED ); // bad with default timeouts
    
    #if defined(TLC)
      SPI_MSTransfer teensy_gpio2 = SPI_MSTransfer("Serial", SPI_MST_CS, &SPI_MST_BUS, GPIO2_SPI_SPD);
      //SPI_MSTransfer teensy_gpio3 = SPI_MSTransfer("Serial", SPI_MST_CS, &SPI_MST_BUS, GPIO2_SPI_SPD);
    #else
      SPI_MSTransfer teensy_gpio3 = SPI_MSTransfer("Serial", SPI_MST_CS, &SPI_MST_BUS, SPI_SPEED ); // bad with default timeouts
    #endif
    
    void yield() {}
    
    void setup() {
      
      Serial.begin(115200);
      while (!Serial && millis() < 2000 ) {}
      Serial.println("\n" __FILE__ " " __DATE__ " " __TIME__);
      Serial.print( "F_CPU =");   Serial.print( F_CPU );
      Serial.print("\t SPI Speed = "); Serial.println( SPI_SPEED );
    #if defined(TLC)
      Serial.print("\t GPIO2 SPI Speed = "); Serial.println( GPIO2_SPI_SPD );
    #endif
      Serial.println();
      teensy_gpio.debug(Serial);
    
    #if defined(TLC)
      if(SPI_SPEED > 4000000){
        teensy_gpio.LCmode(0, moo_lc);  //use 10,10 for spi0
        teensy_gpio2.LCmode(0, moo_lc);
        //teensy_gpio3.LCmode(0, moo_lc);  
      } else {
        teensy_gpio.LCmode(0,moo_lc_l);
        teensy_gpio2.LCmode(0,moo_lc_l);
        //teensy_gpio3.LCmode(0,moo_lc_l);
      }
      teensy_gpio2.onTransfer(myCallback);
    #else
      //teensy_gpio.LCmode(0,0);  Don't need this, LCmode defaults to 0,0
      teensy_gpio.onTransfer(myCallback);
    #endif
    
    #ifdef SPI_MST_SCK
      SPI_MST_BUS.setSCK( SPI_MST_SCK );
    #endif
      SPI_MST_BUS.begin();
      //delay(5000);
    }
    
    uint32_t OverTime = 0;
    void loop() {
      static uint32_t _timer = millis();
      static uint32_t _timer1 = millis();
      if ( millis() - _timer1 > 100 ) {
        _timer1 = millis();
    #if defined(TLC)
        teensy_gpio2.pinToggle(LED_BUILTIN);
    #else      
        teensy_gpio.pinToggle(LED_BUILTIN);
    #endif 
        Serial.print("^LT");
        delay(1);
        //teensy_gpio3.println("Hello World!");
        }
      if ( millis() - _timer >= 2) {
        _timer = millis();
        //_timer1 = micros();
        uint32_t _time = micros();
        
        uint16_t *buf;
        double MST_PrintVals[10];
        buf = (uint16_t *)MST_PrintVals;
        int ii = 0;
        static uint16_t __count = 0;
        static uint16_t __countB = 0;
        for ( uint32_t i = 0; i < sizeof(MST_PrintVals) / sizeof( MST_PrintVals[0]  ); i++ ) MST_PrintVals[i] = __count++;
    
        Serial.print("F&F (OT=");
        Serial.print( OverTime );
        Serial.print(")");
    
        Serial.print(" OT_CALC==");
        Serial.print(OT_CALC);
        Serial.print("  micros() _time==");
        _time = micros() - _time;
        if ( _time > OT_CALC ) OverTime++;
        
        __countB++;
        if ( __countB % 25 )
          teensy_gpio.transfer16((uint16_t *)MST_PrintVals, sizeof(MST_PrintVals) / 2, 60, 1); // DEBUGHACK output
        else
          teensy_gpio.transfer16((uint16_t *)MST_PrintVals, sizeof(MST_PrintVals) / 2, 55, 1);
        Serial.println(_time);
      }
    
    #if defined(TLC)
      teensy_gpio2.events();
    #else
      teensy_gpio.events();
    #endif
    }
    
    void myCallback(uint16_t *buffer, uint16_t length, AsyncMST info) {
      Serial.print("PacketID: "); Serial.println(info.packetID);
      Serial.print("Length: "); Serial.println(length);
      for ( uint16_t i = 0; i < length; i++ ) {
        Serial.print(buffer[i], HEX); Serial.print(" ");
      }
      Serial.println();
    }
    and the slave:
    Code:
    #include <SPI_MSTransfer_Slave.h>
    
    void setup() {
      Serial.begin(115200);
      while (!Serial && millis() < 5000 )
      { Serial.print( "Teensy NOT Online @ millis=" );
        Serial.println( millis() );
        delay(30);
      }
      Serial.print( "Teensy Online @ millis=" );
      Serial.println( millis() );
      Serial.println("\n" __FILE__ " " __DATE__ " " __TIME__);
      Serial.print( "F_CPU =");   Serial.println( F_CPU );
    
      Serial.println();
      
      if ( ARM_DWT_CYCCNT == ARM_DWT_CYCCNT ) {
        Serial.print( "Cycle Counter Not Enabled :" );
        Serial.println( ARM_DWT_CYCCNT );
      }
      if ( ARM_DWT_CYCCNT == ARM_DWT_CYCCNT ) {
        // Enable CPU Cycle Count
        ARM_DEMCR |= ARM_DEMCR_TRCENA;
        ARM_DWT_CTRL |= ARM_DWT_CTRL_CYCCNTENA;
      }
      if ( ARM_DWT_CYCCNT != ARM_DWT_CYCCNT ) {
        Serial.print( "Cycle Counter Enabled! :" );
        Serial.println( ARM_DWT_CYCCNT );
      } 
    
      slave.begin(SPI1);
      slave.onTransfer(myCallback);
    }
    
    void loop() {
      slave.events();
    
      static uint32_t _timer2 = millis();
      if ( millis() - _timer2 > 500 ) {
        _timer2 = millis();
        uint16_t buf[20];
        for ( uint16_t i = 0; i < 20; i++ ) buf[i] = random(0x10,0xFF);
        slave.transfer16(buf, 20, random(1,65534));
      }
    }
    
    static uint16_t last_packetID = 0;
    elapsedMillis TogClk;
    uint32_t TogCnt = 0;
    uint32_t FaFCnt = 0;
    void myCallback(uint16_t *buffer, uint16_t length, AsyncMST info) {
      if ( 55 == info.packetID ) {
        if ( 40 != length ) {
          Serial.print("Bad Length: "); Serial.println(length); // If this shows then the SPI Passed array size is nor wrong
        }
        else if ( 0 != info.error ) {
          Serial.println("\nBad CRC: ");
        }
        else {
          double* MST_PrintVals;
          MST_PrintVals = (double *)buffer;
          
          for(int i = 0; i<10; i++){
            Serial.print(MST_PrintVals[i]); Serial.print("  ");
          }
          Serial.println();
        }
      }
    
      else if ( 60 == info.packetID ) {
        if ( 40 != length ) {
          Serial.print("Bad Length: "); Serial.println(length); // If this shows then the SPI Passed array size is nor wrong
        }
        else if ( 0 != info.error ) {
          Serial.println("\nBad CRC: ");
        }
        else {
          double* MST_PrintVals;
          MST_PrintVals = (double *)buffer;
        
    // This provides a terse output with error checked based on MASTER output to the 12 DOUBLE value Array
          {
            static uint16_t TogLast = 0;
            static uint16_t TogHz =0;
            static uint16_t FaFHz =0;
            static double LastVal = 100000;
            static uint32_t ChkErr = 0;
            static uint32_t CBcount = 0;
            //if ( digitalReadFast( LED_BUILTIN) != TogLast ) { 
            //  TogLast = !TogLast; 
            //  TogCnt++; 
            //}
            if ( TogClk >=1000 ) {
              TogClk -= 1000;
              TogHz = TogCnt;
              TogCnt = 0;
              FaFHz = FaFCnt;
              FaFCnt = 0;
            }
            if ( last_packetID != info.packetID ) {
              LastVal += 10;
              if ( LastVal > 65536 && LastVal < 100000 ) LastVal -= 65536;
            }
            elapsedMillis LastCB;
            double DiffMiss = 0;
            uint32_t ErrSeen = 0;
            CBcount++;
            FaFCnt++;
            for ( uint32_t ii = 0; ii < 10; ii++ ) {
              LastVal++;
              if ( 65536 == LastVal ) LastVal = 0;
              if ( LastCB > 10 || 100001 == LastVal || 100013 == LastVal ) LastVal = MST_PrintVals[ii];
              if ( LastVal != MST_PrintVals[ii] ) {
                DiffMiss = LastVal - MST_PrintVals[ii];
                ChkErr++;
                Serial.print("\nBad LASTVAL TEST INCREMENT <<<<<<<<<<<<<<<<<<<< DIFF OF> ");
                Serial.println( DiffMiss );
                LastVal = MST_PrintVals[ii];
                ErrSeen++;
              }
              if ( 0 != ErrSeen || 1 > ii ) {
                Serial.print( MST_PrintVals[ii] );
                Serial.print(",");
              }
              else {
                Serial.print(" #,");
              }
            }
            Serial.print( CBcount );
            Serial.print(",");
            Serial.print( ChkErr );
            Serial.print(" [");
            Serial.print( FaFHz );
            Serial.print(" ,");
            Serial.print( TogHz );
            Serial.println();
            LastCB = 0;
          }
          
        }
      }
      else {
        Serial.print("PacketID: ");
        Serial.println(info.packetID);
      }
      last_packetID = info.packetID;
    }

  8. #1808
    Senior Member
    Join Date
    Dec 2016
    Location
    Montreal, Canada
    Posts
    2,712
    Try this file, it includes the patches that work on Smallest and Fastest all the way down to eeprom section, so it will work with the current sketches i posted earlier

    The ABOVE test file was only F&F patched. Try this one


    EDIT, I flashed your slave sketch, it's working perfect
    EDIT2, flashed your master using the 11MHz zip file and it's working perfect as well

    Like I said the test_cpp only had F&F Patched, so try using "11MHz--EEPROM.zip"

  9. #1809
    Senior Member
    Join Date
    Jul 2014
    Location
    New York
    Posts
    1,816
    Heres a good news update - just recompiled the slave at Fastest and its working fine... Going to do smallest again just as a double check - stay tuned.

    Update: Ok, strange, reloaded at smallest and seems to be working now. For some reason it didn't work the first time.... I am really beginning to dislike the LC

  10. #1810
    Senior Member
    Join Date
    Dec 2016
    Location
    Montreal, Canada
    Posts
    2,712
    Could have been a cache issue like I experienced the other day....

  11. #1811
    Senior Member
    Join Date
    Jul 2014
    Location
    New York
    Posts
    1,816
    Yeah probably - but something still weird going on - the lc is now periodically resetting itself - am currently at smallest. Will retry at fastest with the new lib.

  12. #1812
    Senior Member
    Join Date
    Dec 2016
    Location
    Montreal, Canada
    Posts
    2,712
    Heres the finished version, using your sketches as-is with it, all working well, no mods, I also tested Fastest and Smallest compile options as working with your sketches
    Code:
    Teensy NOT Online @ millis=540
    Teensy Online @ millis=570
    
    C:\examples\slave\slave.ino May 19 2018 12:46:30
    F_CPU =48000000
    
    Cycle Counter Not Enabled :0
    
    	Teensy LC Detected.
    
    		Circular buffer capacity: 8
    		Circular buffer length:   50
    
    	Note: For LC, SPI0 max is (BUS/4) = 6MHz, SPI1 max is (SYS/4) = 12MHz
    	      Although these are the max speeds, it runs more stable at 4 and 11MHz respectively.
    
    	Available remote controlled resources:
    	USBSerial, gpio, 
    
    	Using SPI1 as slave, pin configuration:
    
    		  Slave:		   Master:
    
    		  CS    6 -------------->  CS
    		  MOSI  0 -------------->  MISO
    		  MISO  5 -------------->  MOSI
    		  SCK  20 -------------->  SCK
    
    Bad LASTVAL TEST INCREMENT <<<<<<<<<<<<<<<<<<<< DIFF OF> 95173.00
    4838.00,4839.00,4840.00,4841.00,4842.00,4843.00,4844.00,4845.00,4846.00,4847.00,1,1 [0 ,0
    4848.00, #, #, #, #, #, #, #, #, #,2,1 [0 ,0
    4858.00, #, #, #, #, #, #, #, #, #,3,1 [0 ,0
    4868.00, #, #, #, #, #, #, #, #, #,4,1 [0 ,0
    4878.00, #, #, #, #, #, #, #, #, #,5,1 [0 ,0
    4888.00, #, #, #, #, #, #, #, #, #,6,1 [0 ,0
    4898.00, #, #, #, #, #, #, #, #, #,7,1 [0 ,0
    4908.00, #, #, #, #, #, #, #, #, #,8,1 [0 ,0
    4918.00  4919.00  4920.00  4921.00  4922.00  4923.00  4924.00  4925.00  4926.00  4927.00  
    4928.00, #, #, #, #, #, #, #, #, #,9,1 [0 ,0
    4938.00, #, #, #, #, #, #, #, #, #,10,1 [0 ,0
    4948.00, #, #, #, #, #, #, #, #, #,11,1 [0 ,0
    4958.00, #, #, #, #, #, #, #, #, #,12,1 [0 ,0
    4968.00, #, #, #, #, #, #, #, #, #,13,1 [0 ,0
    4978.00, #, #, #, #, #, #, #, #, #,14,1 [0 ,0
    4988.00, #, #, #, #, #, #, #, #, #,15,1 [0 ,0
    4998.00, #, #, #, #, #, #, #, #, #,16,1 [0 ,0
    5008.00, #, #, #, #, #, #, #, #, #,17,1 [0 ,0



    LC will only reset if your MISO pin (5) is loose, other pins are hot swappable
    check your wire

  13. #1813
    Senior Member
    Join Date
    Jul 2014
    Location
    New York
    Posts
    1,816
    Testing fastest and absolutely no issues - working great now. You see you forgot to tell me to compile at Fastest so I compiled at smallest and we found an issue Yes I know - my fault again

  14. #1814
    Senior Member
    Join Date
    Dec 2016
    Location
    Montreal, Canada
    Posts
    2,712
    Teensyduino 1.42Beta5 here with Smallest compile, just saying it works here with your sketch we have exact code now so check wiring :P, else dont_know; :P

  15. #1815
    Senior Member
    Join Date
    Jul 2014
    Location
    New York
    Posts
    1,816
    I know I have a loose usb cable so that is probably why the resets.

    Anyway, smallest and fastest work here now as well ----- so I think we killed the LC issues at least for now

    LC will only reset if your MISO pin (5) is loose
    ok will do. Pretty sure now any problems are on my side with wiring.....


    ps - so much for a vacation

  16. #1816
    Senior Member
    Join Date
    Dec 2016
    Location
    Montreal, Canada
    Posts
    2,712
    Monday is still off

  17. #1817
    Senior Member
    Join Date
    Jul 2014
    Location
    New York
    Posts
    1,816
    You deserve a break from this before you go back to work. I'll go play with your other library for awhile and see what I can break over there.

  18. #1818
    Senior Member
    Join Date
    Dec 2016
    Location
    Montreal, Canada
    Posts
    2,712
    Your MST working now on LC with Smallest?

    My guess was the compiler (using Smallest) turned the 2 if conditionals (which looked similar) and optimized it to an elseif, that would have definately caused the issue with the LC registers

  19. #1819
    Senior Member
    Join Date
    Jul 2014
    Location
    New York
    Posts
    1,816
    our MST working now on LC with Smallest?
    Yep is now....

  20. #1820
    Junior Member
    Join Date
    Jun 2018
    Posts
    2
    Hi, sorry to bother, but could someone sum up all latest library files needed for this to work.

    I have a simple sketch running on Arduino nano switched to SPI slave reading data from atmega128 - master.
    It works just fine - the atmega gets some sort of input, it sends one byte to SPI that the arduino receives and does its thing.

    No I am trying to make something similar with Teensy (I have 3.2 and LC available) but I can not even compile the example slave.ino... For now I would like to just receive one byte to test whether it works at all. With possible expansion to more bytes and then including the fastled library to control rgb pixels.

    I downloaded all the latest MSTransfer and MSTransfer_slave libraries that i found in the thread, i am using aurduino IDE 1.8.5 and latest Teensyduino.

  21. #1821
    Senior Member
    Join Date
    Dec 2016
    Location
    Montreal, Canada
    Posts
    2,712
    Sorry buddy but the slave is hardcoded to work only on the 3.x series

  22. #1822
    Junior Member
    Join Date
    Jun 2018
    Posts
    2
    Ah, I was starting to think it might be... Thanks for the confirmation.
    Have to find another solution then.

    Any idea if something like SPCR |= bit (SPE); - set slave mode, and then reading the SPDR register on arduino would work with Teensy?

  23. #1823
    Senior Member
    Join Date
    Dec 2016
    Location
    Montreal, Canada
    Posts
    2,712
    no idea, i only worked on teensy registers so im not fluent in avr registers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •