Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • defragster's Avatar
    Yesterday, 11:13 PM
    What fun! Seeing any noteworthy changes that affect general Teensy Usage? Adding the parallel build yet or other things?
    33 replies | 1121 view(s)
  • defragster's Avatar
    Yesterday, 05:58 PM
    IIRC it was a MAC - no known problems there with Dual - it should work - if not PRJC needs to know to correct it. There are two methods - the new Teensy_sermon and the existing IDE Sermon. If the new improved Teensy...
    33 replies | 1121 view(s)
  • defragster's Avatar
    Yesterday, 05:33 PM
    Pin 31 is bottom side pad for Alt Serial2 Tx - see back of the T_3.2 card.
    6 replies | 103 view(s)
  • defragster's Avatar
    Yesterday, 05:11 PM
    No, it is correct the problem is with 2nd IDE - those words were in my history and head - but not typed in that note. At one point it seemed hitting compile - then starting Tsermon caused trouble but not seeing that...
    33 replies | 1121 view(s)
  • defragster's Avatar
    Yesterday, 03:03 AM
    So far only Windows 10 and multi Teensy has shown trouble AFAIK. Don't hesitate to use it and prove it works well for you.
    33 replies | 1121 view(s)
  • defragster's Avatar
    05-22-2018, 07:53 PM
    Not sure if this is responsive? EEPROM data survives normal Teensy reprogramming - it exists in a fixed way and location based on the device, it does not change in response to user programming or other. Unless the...
    6 replies | 128 view(s)
  • defragster's Avatar
    05-22-2018, 05:32 PM
    Update on multi Win10 Tports. Decided to do a restart … repeated the step below after restart 0nce before restart and I got the same result before restart and after:: <Restarted Win 10 - first thing opened was IDE...
    33 replies | 1121 view(s)
  • defragster's Avatar
    05-22-2018, 07:20 AM
    defragster replied to a thread Hi there in General Discussion
    Welcome - the Teensy is much faster and has more capability and support than the general Atmel or other non-PJRC brands - fun to use and I haven't broken one yet.
    2 replies | 108 view(s)
  • defragster's Avatar
    05-21-2018, 08:46 PM
    Follow this thread a bit for 12V to 5V power converters:
    6 replies | 166 view(s)
  • defragster's Avatar
    05-21-2018, 01:45 AM
    The OSH board in this post may help - more in the rest of that thread as well :: Accessing-bottom-pads-on-T3-6
    5 replies | 135 view(s)
  • defragster's Avatar
    05-21-2018, 12:34 AM
    Not gotten back to this yet - but IIRC - I was regularly seeing one instance of Tports per IDE. I just opened both - properly in turn with T_Sermon - hit Button on both before TLoader was open - Tloader programmed the...
    33 replies | 1121 view(s)
  • defragster's Avatar
    05-20-2018, 08:08 AM
    Hi Richard, Inserted images not showing? Code tags added to post #1. Using the '#' hashtag on the posting bar aids readability to show code spacing - also doing a Ctrl+T format in the IDE helps give uniform formatting...
    2 replies | 85 view(s)
  • defragster's Avatar
    05-20-2018, 07:56 AM
    What is connected where for producing the sound? Audio headphones in the jack? Safe to assume the Audio board is properly soldered to the T_3.6?
    3 replies | 112 view(s)
  • defragster's Avatar
    05-19-2018, 09:53 PM
    Serial3 with 1 byte FIFO hardware buffer might be a challenge at 3 MBaud. The interrupts for data will be continuous ... every 2.67 uS? and if missed will be lost data. The #1 and #2 8 byte FIFO will cut that by at...
    116 replies | 6467 view(s)
  • defragster's Avatar
    05-19-2018, 09:29 PM
    Indeed there is a parallel thread about alternate variations - and it has this note about two potential directions for PJRC - here is a clipped version from Paul
    167 replies | 31884 view(s)
  • defragster's Avatar
    05-19-2018, 04:41 PM
    Busy weekend here too - will read and do as I can with extended info. One answer I'll read for - perhaps you could say - Should there be ideally ONLY be one instance of TeensyPorts among 2 IDE's? Or one per IDE? I...
    33 replies | 1121 view(s)
  • defragster's Avatar
    05-19-2018, 05:06 AM
    Device change has the IDE reset/scan for device appropriate libraries and fresh temp folders etc. - that is indeed a normal pause. When the 'Tools' slows that seems to go along with the loss of the teensyports...
    33 replies | 1121 view(s)
  • defragster's Avatar
    05-19-2018, 02:39 AM
    tonton81 - I had been seeing that behavior all along since SPI_MSTransfer got going - but could never be positive it wasn't from early work - I mentioned it once - when it seemed it was 1::1 for sure drop and restart...
    33 replies | 1121 view(s)
  • defragster's Avatar
    05-19-2018, 12:38 AM
    KurtE - I got my T_3.6 to program my sample code above - which is what I wanted to confirm when I saw your post. Paul: After the prior posts I ended up with (4) orphaned teensy_ports I cannot 'end task' on and one is...
    33 replies | 1121 view(s)
  • defragster's Avatar
    05-18-2018, 10:06 PM
    I just posted my debug_t3 lib - pjrc.com/threads/52315-Teensyduino-1-42-Beta-5 The T_LC does fault and report the error I first created - off boundary READ of RAM - but it somehow fails to fail as note on the one...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-18-2018, 09:54 PM
    Following above post #5: Same T_LC and T_3.6 on USB2 hub. Opened IDE #1 - uploaded - ran the : "...\libraries\debug_t3\examples\DebugTest\DebugTest.ino" Opened IDE #2. SAME picture as above - except the...
    33 replies | 1121 view(s)
  • defragster's Avatar
    05-18-2018, 08:51 PM
    It is Back! Had been running T_LC ... opened 2nd IDE … plugged in T_3.6 - hit TOOLS menu - … 8 seconds PAUSE! Never selected the Teensy and never hit Compile - so did not even open T_sermon. Win 10 not...
    33 replies | 1121 view(s)
  • defragster's Avatar
    05-17-2018, 08:27 AM
    Finally got back to the debug_t3 lib - testing the fail I found in b4 Tsermon … and it failed to fail - but T_LC was online when I was going to push up debug_t3 - the faults are not trapping there like on the T_3.6 … so...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-17-2018, 04:47 AM
    Wow - that is long ago - Oct 2015 post #30 on the WIKI thread … Yes - the github.com/PaulStoffregen/SerialFlash lists tested devices
    5 replies | 185 view(s)
  • defragster's Avatar
    05-17-2018, 04:32 AM
    Posted this on another thread - see the Prop Shield … if 8 MB is enough
    5 replies | 185 view(s)
  • defragster's Avatar
    05-17-2018, 02:43 AM
    Just watched - good honest effort - I followed the steps and the TeensyPorts stayed Single too ??? Like yours second JAVA instance for IDE is not in TaskMan. Hit Performance tab - then back to Processes and it is...
    49 replies | 2424 view(s)
  • defragster's Avatar
    05-16-2018, 09:13 PM
    That is the value in having this printing in setup - TIME changes on each compile to know it uploaded: Serial.println("\n" __FILE__ " " __DATE__ " " __TIME__); Closing the IDE is all that is needed to disassociate...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-16-2018, 09:10 PM
    Missed your reply . . . just posted this That shows one of the more commonly used 16 MB Flash chips. The link there to audio boards shows a 256 KB RAM chip too. (Edit KB) Not sure about read speed - it seems it...
    3 replies | 121 view(s)
  • defragster's Avatar
    05-16-2018, 09:04 PM
    Read down this page to Optional Memory Chip(s): pjrc.com/store/teensy3_audio.html It has a place to put on a supported 128 Mbit - 16 MB flash chip. The one linked is 4 MB? There are threads on used/supported...
    5 replies | 185 view(s)
  • defragster's Avatar
    05-16-2018, 09:00 AM
    I kept seeing the cycle counter started … funny - you can remove that. If used it is part of the timing code setup - that was a test to see if I could detect it already running and not re-start it - though I'm not sure...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-16-2018, 01:12 AM
    How many T_3.2's SPI bus ports are available? My card only shows one - and there is a second - but I thought it had issues and wasn't documented - it came up because the T_LC has two usable and the T_3.2 doesn't for...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-16-2018, 01:04 AM
    Adding the word labels to the pin numbers is good - I was going to mention that … but figured if I bothered to look at the code it would be there so. How many of the T_3.x's work on T_3.2? I thought it had one good...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-16-2018, 12:53 AM
    LTO is just a further HACK at optimization - it removes or duplicates and relocates code at LINK time AFAIK - it generally works. Except like all optimizations when it makes a bad call - or in optimizing alters code...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-15-2018, 09:38 PM
    About: I was saying it is better to send proper sized chunks to USB as you have them than to buffer a larger amount of data - the 128 samples - and sending that in bulk. The USB system is designed to buffer and...
    11 replies | 272 view(s)
  • defragster's Avatar
    05-15-2018, 09:09 PM
    If the 'compatible audio adapter board' in question is the PJRC Audio board - it works on the T_3.2 and newer Teensy T_3.5 and T_3.6 as well. The 'obsolete' T_3.1 is 100% functionally pin equal to the T_3.2 - except...
    9 replies | 227 view(s)
  • defragster's Avatar
    05-15-2018, 09:02 PM
    Just checking - I usually use TyCommander for multi Teensy - but working to test this Beta TeensyPorts - so far it seems to work okay with 2 IDE's directed to a Selected Teensy. <edit> Going to TeensyLoader - "Help...
    49 replies | 2424 view(s)
  • defragster's Avatar
    05-15-2018, 07:02 PM
    The correct 'Tools / Port' has to be selected in each IDE - and both should be one under the 'Teensy' section. That ideally lets the TLoader know where to send the code.
    49 replies | 2424 view(s)
  • defragster's Avatar
    05-15-2018, 06:58 PM
    I should have said 'More Like' because you start the code block with the ++ then test if it went over and set it to 0. I quickly assumed that was the point of the ternary and posted then had to run uint16_t val =...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-15-2018, 06:17 PM
    Looking at post 1632 code the first block is equal to this - not what is in the second block? uint16_t val = stmca.front()++buf_pos > stmca.front() ) ? buf_pos = 0 : buf_pos];
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-15-2018, 06:03 PM
    Glad you found the point of pain - even if it makes no sense. Quite possible in going smallest it reordered the ternary:? evaluation and the ++ is effectively being done before rather than after use? I think a LIB...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-15-2018, 03:41 PM
    Odd. At least having the fault code showed it isn't triggering that. I'll make a library of that so it is more easily included. Can you debug force a .pushfront(0x5555) and see it work - or does it fail on the...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-15-2018, 03:17 PM
    Move that if( _avail...) up to test? It might work - the memmove or something may be trashing? Maybe in _init()? In setup() { pinMode(LED_BUILTIN, OUTPUT);} and use this: #define qBlink()...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-15-2018, 03:03 PM
    yep in void fault_isr(void) - Line ~124 - #endif before while(1) I put it there to be sure it would catch on anything undefined.
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-15-2018, 02:06 PM
    Open this file :: \hardware\teensy\avr\cores\teensy3\mk20dx128.c Look for the while (1 ) and exchange those lines from the #endif to the while open brace? That part is optional - except for calling out to the...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-15-2018, 08:45 AM
    How much space is needed? There is support for SerialFlash using a few chips though not huge in capacity - add a chip to the PJRC Audio card or buy a PropShield that has FLASH, those two items are in PJRC.com store...
    3 replies | 121 view(s)
  • defragster's Avatar
    05-15-2018, 05:09 AM
    Here is a documented copy of yield.cpp to APPEND TO CORE copy. Leave the yield() and add below. Then need to edit the other indicated core file, and then see last comment for usage in Sketch and other. If the...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-15-2018, 04:08 AM
    It could be there was a problem all along and was hidden by spare unused space? That other one was just doing a buffer overwrite of 4 bytes. Does it hang and die? Says it locks_up? I did that sketch the other day...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-15-2018, 03:06 AM
    If you read carefully - according to defragster - going smallest pointed out a buffer overflow issue that showed up when code optimization when changed . . . maybe there is a memory misuse error here too?
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-15-2018, 12:12 AM
    I wonder if a delay added only to the first Transfer 16 would be enough to let the T_LC interrupt code trigger and activate? i.e. make a Transfer16_delay?
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-14-2018, 11:06 PM
    hubbe - there are some published OSH designs for similar boards for Teensy - Frank B made one for T_3.2 that I mounted and used. And a BreakoutBoard that brought the bottom pads out to rows that I used to mirror the...
    108 replies | 11947 view(s)
  • defragster's Avatar
    05-14-2018, 09:35 PM
    Here is the sketch I used: - it was quickly made to see how fast a T_LC could send 40 byte packets - then I saw speed differences between USB connection path and the Sermon used - and compared T_3.5 and T_3.6. ...
    11 replies | 272 view(s)
  • defragster's Avatar
    05-14-2018, 08:52 PM
    TyCommander finds and uses various 'known values' like that parsed from the HEX file to prevent uploading a given HEX to the wrong processor. Those 'known values' have to match the Teensy ID presented for programming...
    49 replies | 2424 view(s)
  • defragster's Avatar
    05-14-2018, 08:19 PM
    KurtE :: Yes, it breaks TyCommander - I updated your ISSUE there. Good work "Frank B" With TeensyLoader this works for me to get valid print. I should have tested with my MemFault sketch trapping _fault_isr's :(
    49 replies | 2424 view(s)
  • defragster's Avatar
    05-14-2018, 06:55 PM
    USB packet data size is 64 bytes - conforming to that may help. AFAIK Teensy holds sending until buffer is full (with a short delay before sending partial buffer) - so sending perpetual blocks of 32 bytes in total will...
    11 replies | 272 view(s)
  • defragster's Avatar
    05-14-2018, 07:13 AM
    Perhaps the 'Audio Amplifier' section on this page will give enough detail? :: https://www.pjrc.com/store/prop_shield.html The Prop or low cost Prop shield provides an amp that feeds from a DAC pin. Scroll down to...
    8 replies | 326 view(s)
  • defragster's Avatar
    05-14-2018, 04:23 AM
    That started back in post #1498 Could the SPI_Slave code be programmed to 'easily' without using the SPI_Master library? - not that it would be useful. I noted back then that it is sort of wedded with the 'protocol'...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-13-2018, 11:55 PM
    Odder still - with IDE 1.85 and TD1.42b4. As noted - works on T_3.6 but I see the same fail on my T_3.5. I made a simple edit looking to find a way to the issue ... it gets odder still moving the locals to global: ...
    49 replies | 2424 view(s)
  • defragster's Avatar
    05-13-2018, 11:39 PM
    Good work indeed. I've been following but not working with it. Hopefully it is worth the extra effort to make it more generic across the Teensy Family and multiple SPI ports - not everyone will need it - though when it...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-13-2018, 05:42 PM
    I don't expect UART4 is used much - if so it might be used to connect to another Teensy in which case this would be an upgrade. Odd you are seeing MOSI and MISO usage not as defined and typically used for T_3.2?
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-13-2018, 07:03 AM
    Not sure why the prior post was deleted? ... based on this note in prior post That suggests there isn't enough info to understand what the desired end solution would be. Members of the forum typically help...
    6 replies | 189 view(s)
  • defragster's Avatar
    05-13-2018, 01:40 AM
    Fun. Lots of 5V - VIN sensors?
    2 replies | 128 view(s)
  • defragster's Avatar
    05-12-2018, 12:41 AM
    One of the things I did in that SLAVE DEBUG HACK (?) - was print the first value - then just a dot ( some filler ) when the next value was as expected - just skipped that fat load of output when the data was indexing...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-11-2018, 10:07 PM
    Looks good Frank! Next question: Once it puts the pinMode( x, OUPUT) does it return to normal use for analogWrite() of values < max?
    10 replies | 274 view(s)
  • defragster's Avatar
    05-11-2018, 10:00 PM
    I did get back to that and saw it working right - I did not try the linked code - but indeed on T_LC it come through :: hard_fault_isr() :)
    19 replies | 895 view(s)
  • defragster's Avatar
    05-11-2018, 08:43 AM
    Serial is an 8 bit protocol - by default. Each 'character' is counted/stored after 8 data bits are received. That would not relate to the issue seen with 8 characters. What happens using : Serial1.write versus...
    24 replies | 499 view(s)
  • defragster's Avatar
    05-11-2018, 05:57 AM
    Yes that should work - but not sure it was causing trouble before - though not useful. And the raspi3 would have dumped that data out. Might be that the binary Serial1.write versus Serial1.print usage
    24 replies | 499 view(s)
  • defragster's Avatar
    05-11-2018, 02:53 AM
    I wondered about that - there is nothing to hold up "Serial1.begin(9600);" like USB Serial - so that test will pass AFAIK and based on testing with this code where there is nothing printed to Serial with this in setup()...
    24 replies | 499 view(s)
  • defragster's Avatar
    05-11-2018, 12:44 AM
    Most users can click the 'Report Post' to have it removed from the normally viewable 'stream' - that is a good thing - keep at it. 'Plus' viewers still see it and use that as a sign for removal/banning the user.
    9 replies | 413 view(s)
  • defragster's Avatar
    05-10-2018, 11:53 PM
    Serial1 from Teensy shouldn't have any splitting behavior. Maybe if the buffer was overflowing or some break - but that will be at 64 bytes. Have you run a common ground between the two? It seems this is on the...
    24 replies | 499 view(s)
  • defragster's Avatar
    05-10-2018, 10:57 PM
    Wozzy - indeed as noted the Senior+ group has added UI to see an IP - and when a post is selected for delete the IP is presented. So just a couple of extra steps to copy that and then paste it for PJRC usage.
    9 replies | 413 view(s)
  • defragster's Avatar
    05-10-2018, 10:55 PM
    Bummer - … but, good you are already doing that Does it affect the Master when the T_LC has the random issue?
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-10-2018, 10:52 PM
    Paul Looking after an AnalogWrite question I saw the code in this post In case of MAX value on Teensy3 analogwrite the value is set digital HIGH … then the pinMode is set to output - it seems that won't work the...
    49 replies | 2424 view(s)
  • defragster's Avatar
    05-10-2018, 10:48 PM
    Nice: I could sooner figure out what that is doing - and way less conditional behavior. The '?' ternary is compact - but more cryptic and results in If/Else code delay and jumping. Are you testing with that...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-10-2018, 09:02 PM
    If you can program another Teensy. I'd program that with simple Blink like in this post making sure Tools / USB Type is Serial Then pull that Teensy and put in the one not working - and press and hold the Program...
    5 replies | 194 view(s)
  • defragster's Avatar
    05-10-2018, 08:57 PM
    Teensy 2 CORE sets the value given it seems, Teensy3_ARM cores special case the Max value and set digital HIGH. ...\hardware\teensy\avr\cores\teensy3\pins_teensy.c else if (val >= max) { digitalWrite(pin,...
    10 replies | 274 view(s)
  • defragster's Avatar
    05-10-2018, 04:10 PM
    Opps - This is Teensy 2 so indeed this note may not apply - so it would be 8 bits write 255 for Max value:
    10 replies | 274 view(s)
  • defragster's Avatar
    05-10-2018, 06:34 AM
    IIRC - Analog usage fails with pinmode use setting it to digital mode. Change the setup to: void setup() { Serial.begin(38400); while (!Serial && millis() < 2000 ); // Add this to allow 2 seconds for USB...
    10 replies | 274 view(s)
  • defragster's Avatar
    05-10-2018, 02:07 AM
    That's four conditioned tests around the same (sSPI_port) . . . pretty and compact - even if it does hide bugs well :) … wondering if doing this might be more clear and faster? IF (sSPI_port) {} ELSE {}
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-10-2018, 12:01 AM
    Windows 10 can run for hours with T_sermon getting 8-9+ MB's in a 10 second interval from BOTH T_LC and T_3.6 with a 5 second pause between those 10 second runs. It seems very fast and robust and no dropped data or...
    49 replies | 2424 view(s)
  • defragster's Avatar
    05-09-2018, 11:51 PM
    note: The T_LC can run faster with FASTER PC USB service … These are counts for 10 second runs. T_3.6 Alone : ABCD ABCD ABCD ABCD LMNO LMNO LMNO_3407B >> TEN second 10 DWORD Cnt=213115 T_3.6 and T_LC on USB2 HUB::...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-09-2018, 07:18 PM
    Stepwise can be best to keep track of the changes and spread the work out - no rush. As noted before the libraries are compiled Independently With No Regard to what the sketch has for #defines. Libs are compiled...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-09-2018, 06:49 PM
    50 uS message time and 30 uS delay? That would be 12,000 messages per second? A stress test - not surprising if the 48 MHz T_LC might be a bit taxed! Just for reference to see how many unused cycles might be in...
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-09-2018, 06:19 PM
    8 MHz is SPI speed? In Slave mode - or T_LC Master and Slave? How many F&F messages per second is the rate I was wondering about.
    1818 replies | 43725 view(s)
  • defragster's Avatar
    05-09-2018, 06:06 PM
    What is the rate of the messages? Typical rates might be 30 Hz to update a display - or 1000 Hz to read an MPU sensor (10 Words) - one being larger messages the other being small. Pushing any faster leaves the T_LC...
    1818 replies | 43725 view(s)
More Activity
About defragster

Basic Information

Statistics


Total Posts
Total Posts
6,234
Posts Per Day
5.22
Last Post
Teensyduino 1.42 Beta #5 Yesterday 11:13 PM
General Information
Last Activity
Yesterday 11:25 PM
Join Date
02-15-2015