Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: defragster

Page 1 of 10 1 2 3 4

Search: Search took 0.07 seconds.

  1. Putting that on a currently active Teensy LC...

    Putting that on a currently active Teensy LC works fine. The T_4.1 at 480 Mbps is way faster than that at 12 Mbps.

    The change below - waits for Serial before printing. Without that the T_4.1...
  2. If using a T_3.2 or better ... this whole...

    If using a T_3.2 or better ... this whole experiment could use TeensyThreads (p#7 ) - for RTC RAM - seems the desire was to use T_LC and make something work there with this prior scheme.

    So yes...
  3. @FrankB > post#2 noted battery backed RAM in...

    @FrankB > post#2 noted battery backed RAM in other Teensy - but this project seems T_LC specific.

    It looks like T_LC flushes ALL RAM in all the restarts I tried:



    int bar = 0;

    void...
  4. Replies
    51
    Views
    2,259

    Sticky: Teensy LC :: error: 'CNT_HARDWARE_SERIAL' was not declared in this scope

    Just did fresh (re)install of T_1.52 and seeing this?
    > I did have github bits - so I re0-installed - maybe a holdover file from a change???

    INDEED: Wiped AVR\CORES folder and installed again...
  5. Haven't tried the direct address - but the .ld...

    Haven't tried the direct address - but the .ld shows this :: RAM (rwx) : ORIGIN = 0x1FFFF800, LENGTH = 8K

    Assume that is helpful? Make a static int and a stack int and print their addresses -...
  6. Not building with IDE? Are you on Windows? ...

    Not building with IDE? Are you on Windows?

    Accessing the timer unit if not enabled it will fault.

    Was the persistence of 'unused' RAM tested?
  7. @analog&RFmodels - would be interesting to see a...

    @analog&RFmodels - would be interesting to see a skeleton of it working. Wondering what these tasks are doing in turn.

    Seems an _isr_timer could set a flag to casually check and bail without much...
  8. Never looked much at .ld files until the 1062 ......

    Never looked much at .ld files until the 1062 ... the one for T_LC very simple.

    Maybe an edit to bump the stack down in : _estack = ORIGIN(RAM) + LENGTH(RAM);
    Reserve 64 or 256 Bytes there may...
  9. That part was in response to the initial...

    That part was in response to the initial 'non-restart' efforts with ... ' back to main c gets lost.'

    For restart - I'd see if the 'void' area above code data and below stack survives restart. If...
  10. Interesting ... not sure how that can work: > On...

    Interesting ... not sure how that can work:
    > On restart there is no state to return to.

    Any compiler controlled or stack objects will be initialized or random.

    Maybe a direct addressed part...
  11. Replies
    7
    Views
    130

    Indeed usb.c watches for some incoming variation...

    Indeed usb.c watches for some incoming variation of this:: if (baud == 134UL) reboot_timer = 15; ... on T_4.x :: if (usb_cdc_line_coding[0] == 134) {
    Then when the timer is ripe on T_4.x it does ::...
  12. @Frank B - as noted p#8 the only posted @ossi...

    @Frank B - as noted p#8 the only posted @ossi code in p#3 shows 'tight while(1)' in loop so it never exits loop to hit that yield().
    > Turns out code (as in p#2) here has "void yield() {}" defined...
  13. Clearly explained what is observed and...

    Clearly explained what is observed and demonstrated in the scope image - except for repro code to see what may be behind it.

    systick and usb prints noted post #8 - prior to p#10 Frank B.
    As far...
  14. quick guess - check compiler flags used - if the...

    quick guess - check compiler flags used - if the same being presented - the toolchain may be using them differently?
  15. Same thread can work since it is same issue -...

    Same thread can work since it is same issue - will show the evolution if desired. Cool either way if you get it updated and working.KurtE might even play along as he loves robots and maybe even the...
  16. I remember that thread - seems it was where @luni...

    I remember that thread - seems it was where @luni ended up making his Timer library from?

    When I saw that it was "Somebody Else's Problem" - I just stopped and looked at it without seeing the...
  17. For another thread I revisted the post #2 code. ...

    For another thread I revisted the post #2 code.

    Separate Issue but it was for the 500KHZ interrupt thread - the T_3.6 is WAY FASTER than the T_4.0.

    The T_3.6 can do two of these and have loop()...
  18. Just used this the other day to work - compiling...

    Just used this the other day to work - compiling for T_4.0 on Win 10 w/IDE 1.8.12 and TS 1.52:


    __disable_irq();
    mtCountL = mtCount;
    mtCount = 0;
    mtCountLB = mtCountB;
    ...
  19. I mentioned getting a set of those ( overly long...

    I mentioned getting a set of those ( overly long cables - but premade - and seemed to work ). Indeed the plastic cable holder and restraint overlap the edge pins in the same way as shown on the PJRC...
  20. Replies
    5
    Views
    116

    As Frank B noted ... and I located and tested in...

    As Frank B noted ... and I located and tested in beta ...

    Adding code in the sketch ::


    int pList[] = { 0, 1, 6, 7, 2, 3, 4, 5 };
    uint32_t timeSEH = 0;
    extern "C" void...
  21. Awesome - seemed like it should ... which is...

    Awesome - seemed like it should ... which is always a scary trap when just reading the context and not any manual. If that is wholly right ... That should assure the Heap starts over static DTCM...
  22. seems the linker picks the addresses - hopefully...

    seems the linker picks the addresses - hopefully reading the manual not needed.

    Seems a rewrite/reorder of this:


    _heap_start = ADDR(.bss.dma) + SIZEOF(.bss.dma);
    _heap_end = ORIGIN(RAM) +...
  23. Replies
    16
    Views
    195

    Cool, my understanding similar - but as noted...

    Cool, my understanding similar - but as noted involves external rails of that would imply connection - versus the untouched pins.

    Any signs it was damaged in transit? Photos?

    Opps - time...
  24. Replies
    16
    Views
    195

    Out of ESD pack it will not by design present any...

    Out of ESD pack it will not by design present any USB connect, only blink given 5V/GND.

    But when it gets GND and 5V to VIN from USB ( data or power only ) even from a battery pack - it should...
  25. Replies
    16
    Views
    195

    New out of package with no pins soldered? Never...

    New out of package with no pins soldered? Never programmed? Just the bare board plugged into USB with no button press and no orange LED flash?

    Not sure what the 'rail' in ref to "other pins and...
  26. ... that was generic advise as I've not looked at...

    ... that was generic advise as I've not looked at the details.

    But putting HEAP at RAM( DTCM ) will have HEAP and RAM starting in the same place:
    DTCM (rwx): ORIGIN = 0x20000000, LENGTH = 512K
    ...
  27. Currently malloc and new allocate from the heap...

    Currently malloc and new allocate from the heap which is defined to be RAM2. With the T_4.1 easily having an added 8MB of RAM on the PSRAM having a way to get RAM from that area became apparent. ...
  28. MichaelM it seems mentioned that heated desolder...

    MichaelM it seems mentioned that heated desolder pump some time back and I got one - very handy when needed and it fits the job at hand:

    velleman-vtdesol3u-desoldering-vacuum-pump-with-heated-tip...
  29. That is very odd. Can you post sample code to...

    That is very odd. Can you post sample code to show that?
  30. That 24 Mhz to use RAM1 - and no DMA was a last...

    That 24 Mhz to use RAM1 - and no DMA was a last minute change Paul noted as TD 1.52 shipped. I was offline today ... but you found the right place it seems.

    When T_4.0 started it wasn't using...
  31. No new code shown. And no output from sketch...

    No new code shown. And no output from sketch provided.

    This inner loop() code will bypass the yield() overhead noted above. That inner while() will cycles about 10 to 20+M times per second - so...
  32. @wwatson - not sure I ever did that - my PC's Hub...

    @wwatson - not sure I ever did that - my PC's Hub always keeps Teensy's powered on/off/restart ... when on powered hub as I have it. So they never do anything if PC comes or goes.
  33. That is odd - have used thumb drives - and SD...

    That is odd - have used thumb drives - and SD cards in USB adapters on and off hub in T_4.0 beta with PJRC breakout. Thumb drives were the goto thing that worked without a hub IIRC - though the...
  34. With T_3.5 and chipSelect = BUILTIN_SDCARD; it...

    With T_3.5 and chipSelect = BUILTIN_SDCARD; it is using an SDIO bus for the SD card with no SPI conflict or common pin connections/hardware.
  35. The T_4.1 has the startup power control part -...

    The T_4.1 has the startup power control part - but if using a powered HUB (?) it seemed the hub would take care of that - if not using a powered hub and the startup power chip not there that might...
  36. Indeed - counting code above p#2 was giving the...

    Indeed - counting code above p#2 was giving the right results but the vars at hand should have been volatile ... left a note to myself to fix that. Just did and the counts are still holding.
    ...
  37. No code provided to see what the issue at hand...

    No code provided to see what the issue at hand may be? IDE version? TeensyDuino version? Too much time in the _isr() code? What else is going on that might be triggering other interrupts?

    This...
  38. Replies
    10
    Views
    138

    T_4.1 does have the trace to cut VINVUSB. ...

    T_4.1 does have the trace to cut VIN<>VUSB.

    re:


    What the T_3.6 had room for on the underside that the T_4.1 does not is the Pads to select USB :: Host versus Device power cut/solder pads....
  39. Indeed there are mapped usable pins there #48 to...

    Indeed there are mapped usable pins there #48 to 54. The two pads share the duplicate 4 Data and SCK pins of QSPI and each has a unique CS pin.

    Forum notes have details and also links to this XLS...
  40. Replies
    208
    Views
    4,282

    Great to see it working - and room for some...

    Great to see it working - and room for some transfer improvement.
  41. Replies
    11
    Views
    214

    Yeah - 5V bad news for a T_4's 1062 ... just like...

    Yeah - 5V bad news for a T_4's 1062 ... just like the T_3.6 ... High speed and great features mean the silicon underpinnings are cramped and design limited to 3.3V.

    Glad you have a spare on hand...
  42. Replies
    11
    Views
    214

    5V i2c device possibly/likely pulling those pins...

    5V i2c device possibly/likely pulling those pins up to 5V - at least when doing output if not hosting pullups to 5V - not acceptable to the T_4.0.
  43. Replies
    11
    Views
    214

    If everything is disconnected and rested some...

    If everything is disconnected and rested some time and then USB powering doesn't show 3.3V that's a bad sign.

    No idea what pins and what was connected - any chance 5V was involved or touched? ...
  44. Replies
    18
    Views
    873

    Opps - yeah 8 MB on Flash a different question -...

    Opps - yeah 8 MB on Flash a different question - not assumed 8MB PSRAM ... "teensy 4.0 with the 8MB".

    Problem is the Flash chip size. The 2MB T_4.0 Flash IIRC was noted as the highest capacity in...
  45. Replies
    18
    Views
    873

    Audio board interface is SPI. The 8MB PSRAM may...

    Audio board interface is SPI. The 8MB PSRAM may work as SPI on those pads? Not seen it tried.

    But the T_4.1 pads are specific QSPI ( QUAD SPI 4 data .vs. 1 ) hardware pins not available to the...
  46. Replies
    51
    Views
    2,259

    Sticky: Is this trouble recompiling for same T_3.6? ...

    Is this trouble recompiling for same T_3.6?

    ADC is included from outside github - there were changes made to support T_4.x ... Check that for - issues - this link ? github.com/pedvide/ADC
    ...
  47. Replies
    10
    Views
    219

    Board pin info ref:...

    Board pin info ref: pjrc.com/store/teensy3_audio.html

    Prior note was to say - it is expected to work - but not in a place to try it here just now.

    If a CS pin is not set HIGH a device on the...
  48. Replies
    10
    Views
    219

    Great that worked - glad you didn't break...

    Great that worked - glad you didn't break anything pulling the other chip off - and didn't give up.

    Not able to confirm SD and FLASH function just now though ...

    SPI is a common wire bus for...
  49. Good work @luni - that i-- looks to be a problem....

    Good work @luni - that i-- looks to be a problem. In reading it seemed it was dying as early as setup() - but the prints showed that is not the case.
  50. Are the three Rev D audio boards soldered or...

    Are the three Rev D audio boards soldered or socketed to the T_4.0's? If socketed would allow swapping to test.

    If soldered are all the joints good and clean? If T_4 soldered below - are all the...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4