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. Replies
    18
    Views
    6,289

    With (float) cast on the input var it does the...

    With (float) cast on the input var it does the math with float - low overhead add for FPU Teensy's:


    Serial.println("map((float)0, 0, 127, 60, 30) = 60;");
    Serial.println(map((float)0, 0,...
  2. Seemed Odd - that "if (rx_some_)...

    Seemed Odd - that "if (rx_some_) (*hardware->_serialEvent)();" had the same overhead as "if ( available() )".

    When all SerEvents are gone it was showing 'approx' just over 14M loops/sec instead of...
  3. Tried the post #20 idea - somehow it runs at the...

    Tried the post #20 idea - somehow it runs at the same speed? Skipping if ( available() ) for with setting of rx_some_ it works ... but same reduced loop()/sec :


    inline void doYieldCode() {...
  4. Got pulled away before posting ... How long...

    Got pulled away before posting ...

    How long is the RFIS data string? If Serial2 is missing bytes, that is the buffer to increase as a stopgap/test/quick fix - but it should be large enough for...
  5. Replies
    31
    Views
    283

    If designed for 12V direct connect would expect...

    If designed for 12V direct connect would expect they will have resistors to work at that voltage. Measure current against 12V if one handy not connected to Teensy.
  6. Is there a simple repro case with the _isr()...

    Is there a simple repro case with the _isr() timing and data coming into Serial2? For the test sending from Serial1 crossed to Serial2 would be easy. Also details on what is sent out Serial7 for...
  7. Replies
    783
    Views
    25,788

    Not sure where it will be in the end with regard...

    Not sure where it will be in the end with regard to PJRC - but there is this thread: T4-1-Ethernet-Library that has current details.
  8. Replies
    783
    Views
    25,788

    Is that the sketch from : Teensy-4-1-Beta-Test...

    Is that the sketch from : Teensy-4-1-Beta-Test that post Paul posted 5/13?
    >> github.com/PaulStoffregen/teensy41_psram_memtest/blob/master/teensy41_psram_memtest.ino

    If so it would start like:
    ...
  9. Replies
    783
    Views
    25,788

    Thanks @jwatte,@KurtE Cache is disabled on...

    Thanks @jwatte,@KurtE

    Cache is disabled on the RAM1==ITCM/DTCM regions because it runs at CPU speed - no coherency problems there
    Currently the ITCM is left writable - that area can be...
  10. Replies
    4
    Views
    126

    is latest TeensyDuino 1.52 installed?

    is latest TeensyDuino 1.52 installed?
  11. Upload timing was just a query to get a picture. ...

    Upload timing was just a query to get a picture. Not seeing general setup details - is this Windows or other?

    On windows when TeensyLoader isn't running it has been taking 15 secs to start on...
  12. is it link or has upload started? Large sketches...

    is it link or has upload started? Large sketches need to erase a lot of FLASH.

    wHAT IS THE BOTTOM LINE ON THE COMPILE FOR USAGE?
  13. Not yet seen Harm from 15s Restore. It reloads a...

    Not yet seen Harm from 15s Restore. It reloads a no USB Blink factory sketch.

    Then like new - the first upload takes a Button press to get to bootloader and facilitate upload as it comes as noted...
  14. That encoder sounds like a different problem to...

    That encoder sounds like a different problem to solve - good luck.

    If the loop() were changed to remove the delay(4) and instead use an elapsedMillis Foo to: if ( Foo>4000) {Foo=0; { rest of the...
  15. Replies
    7
    Views
    196

    Cool update here included T_4.x's !!! - but...

    Cool update here included T_4.x's !!! - but change to T_3.6 looks like copy paste error?? : pjrc.com/store/


    Teensy 4.1 – Teensy 4.1 with Pins – Extreme 600 MHz Speed, with USB Host, SD Card,...
  16. What are the interrupt priority levels of the...

    What are the interrupt priority levels of the encoder versus the IntervalTimer? If the encoder is the same or lesser - the encoder will also have interrupts queued {like p#4} and not be able to act...
  17. Replies
    23
    Views
    1,200

    Sticky: @immortalSpirit - one thought ... given no idea...

    @immortalSpirit - one thought ... given no idea of sketch behavior WRT to the following ...
    How does setup() start before printing - is there a 'no print' before connect like below? On Windows this...
  18. @wwatson did a USBHost lib for USB using a dongle...

    @wwatson did a USBHost lib for USB using a dongle to wired ethernet that worked well. Not sure if that experience relates?

    That example used the TeensyThreads to periodically call some check...
  19. Replies
    783
    Views
    25,788

    Indeed very cool - great that the dimensions were...

    Indeed very cool - great that the dimensions were right and the board was made(routed) to spec and it worked! With GND and 3V3 on that board and vBat or On/Off that extra half inch could to a lot -...
  20. Replies
    783
    Views
    25,788

    That would be way easier to document and...

    That would be way easier to document and implement.

    What would it look like if it could be inverted? A user wanting PSRAM would just declare: uint8_t external_psram_size;
  21. Would it be too much to have each SerialX Rx code...

    Would it be too much to have each SerialX Rx code set a flag?

    And a way to put the same in the weak code - obviously always false.

    When real code gets loaded on use - on Rx event the flag goes...
  22. Replies
    783
    Views
    25,788

    Too late here to unzip and see current code for...

    Too late here to unzip and see current code for pointer. But - as noted above p#751 - there are just three functions to access [read, write, format] Flash - once it is enabled. These are...
  23. The T_4.0 with a free running [not blocked]...

    The T_4.0 with a free running [not blocked] loop() cycles very fast - it starts at ~11 million cycles per second before adding code - but can drop to just a couple million quickly. There is a...
  24. Replies
    783
    Views
    25,788

    I should look at the current setup to say for...

    I should look at the current setup to say for sure - but as developed the PSRAM wasn't configured before setup until done as TD 1.52 released.

    There is a SPIFF files system element and a separate...
  25. Replies
    3
    Views
    81

    In order to work with Audio Board...

    In order to work with Audio Board it would share the #7 common pin.
  26. Works as well on T_3.6! Moved 5 jumpers to the...

    Works as well on T_3.6!
    Moved 5 jumpers to the T_3.6 topside pins with minor edits for array declare and #define of number of ports to loop.

    Results below when using Events - look to be worse.
    ...
  27. Interesting - Serial1-6 shouldn't be a factor...

    Interesting - Serial1-6 shouldn't be a factor conflicting with any other - if i2c is on pins 18&19? - though the Serial buffers may overflow during long SD writes?

    Using the T_3.6 native SD card...
  28. Code behaving and working as expected!!! It is...

    Code behaving and working as expected!!!

    It is best not to use serialEvent() processing! But this improves the situation.

    Code below for this and prior post. Adding a single :: void...
  29. Starting a sketch with JUMPER plugs on all T_4.1...

    Starting a sketch with JUMPER plugs on all T_4.1 Serial#'s. So far all 8 ports work without Event checking.

    Every second it prints 'ii' from loop to each Serial#[1-8]
    Every 2+ seconds if reads...
  30. I just swapped one T_4.1 for another and had a...

    I just swapped one T_4.1 for another and had a moment of confusion finding the new one - said it wasn't there ... it worked after a button push or two or something ...

    <edit>: Turns out I'm...
  31. @Kurt - did you make a #ifdef''d sketch that...

    @Kurt - did you make a #ifdef''d sketch that iterates the valid : if (serial_event_handler_default) Serial.print( "port USER Event" ); else Serial.print( "port NULL" );

    oppps - found that is...
  32. Replies
    783
    Views
    25,788

    @mjs513 - opps forgot the branch link ....

    @mjs513 - opps forgot the branch link ....
  33. Replies
    783
    Views
    25,788

    @MartyMacGyver ... Paul noted in TD 1.52 release...

    @MartyMacGyver ... Paul noted in TD 1.52 release the PSRAM clocking was set to 88 Mhz to assure all would be well for new hardware going out with such chips installed - since it was done in startup.c...
  34. Pulled the few hours old CORES to 2nd IDE 1.8.12...

    Pulled the few hours old CORES to 2nd IDE 1.8.12 folder.

    LOOKS AWESOME KURT!!!! That set of QUICK EXIT changes to yield processing looks to MATCH user added private 'void yield()' !!! :)
    ...
  35. Replies
    47
    Views
    647

    Looking at this off and on - it seems the trouble...

    Looking at this off and on - it seems the trouble here is from the __STREXW code :(

    Have filled SD cards a couple times on two T_4.1's using the nointerrupt() prior code:


    noInterrupts();...
  36. Wondered how many cycles in and out of loop() -...

    Wondered how many cycles in and out of loop() - runs, but CYCCNT won't work on T_LC:


    const char szTeensy[] = "Teensy 4.1";
    #if 1
    void yield() {}
    const char szTest[] = "TD 1.52 :: PRIVATE ...
  37. That makes more sense of the numbers and where...

    That makes more sense of the numbers and where the state of progress was for 4.x and 3.x.

    Testing below on stock TD 1.52 - will wait for github update for 3.x and make sure 4.x is settled.
    ...
  38. Replies
    16
    Views
    268

    Great news!

    Great news!
  39. Replies
    16
    Views
    268

    Rev D audio board uses pin 13 for SCK with Teensy...

    Rev D audio board uses pin 13 for SCK with Teensy 4.x?
  40. Not sure I'm making sense of the test numbers? ...

    Not sure I'm making sense of the test numbers?

    One simple real test would be monitor of count of loop() per second:
    >> Yield as it was
    >> User sketch :: void yield() {}
    >> Yield as it is...
  41. Replies
    16
    Views
    268

    Solder braid ... ds-solder wick - is a cool thing...

    Solder braid ... ds-solder wick - is a cool thing ... but gets really hot using it.

    Touchscreen: Did it get its own CS pin unique and not used by anything else - one for display and one for...
  42. That looks cool KurtE - reading the PR comment...

    That looks cool KurtE - reading the PR comment provides good info
  43. Replies
    783
    Views
    25,788

    usb_desc.c has this code for T_4.x serial number...

    usb_desc.c has this code for T_4.x serial number presented:


    void usb_init_serialnumber(void)
    {
    char buf[11];
    uint32_t i, num;

    num = HW_OCOTP_MAC0 & 0xFFFFFF;
    // add extra zero to work...
  44. If that lets yield() processing more quickly do...

    If that lets yield() processing more quickly do less or nothing when those things are not in user code that is very cool.

    What dies the resultant yield() processing look like?
  45. Moving? A new residence - or getting out for...

    Moving? A new residence - or getting out for exercise moving?

    Stay well, looking forward to your next posts.
  46. Referring to this work Frank? - just posted on...

    Referring to this work Frank? - just posted on similar thread :: T4-0-Memory-trying-to-make-sense-of-the-different-regions
  47. Frank B posted an alternate linker script that...

    Frank B posted an alternate linker script that leaves all code in the 1900+KB of T_4.0 Flash (may have been demo'd for T_4.1?) - unless marked FASTRUN. That can hurt perf unless the right active...
  48. Any program that runs on the T_3.6 should/can be...

    Any program that runs on the T_3.6 should/can be able to be made to run on a T_4.

    The Instruction and Data portions are 512 MB in size. The default configuration ( see the...
  49. The T_3.6 uses no external crystal - RTC support...

    The T_3.6 uses no external crystal - RTC support is built in when the Teensy is powered - when powered the RTC gets proper power as needed.

    The vBat pin specifies 3V coin cell - not sure putting...
  50. too picky Frank :) ... full context: Teensy 4.0...

    too picky Frank :) ... full context:
    Teensy 4.0 is the latest Teensy ... in the Teensy 1.4 by 0.7 inch form factor

    And to update for the T_4.1::
    Teensy 4.1 is the latest Teensy ... in the Teensy...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4