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.09 seconds.

  1. Replies
    4
    Views
    73

    The screen clearing is an artifact of the SerMon...

    The screen clearing is an artifact of the SerMon tool in use.

    TyCommander does not do that (except on upload if chosen) - though it does drop the Teensy after some 10 seconds of it going offline....
  2. Replies
    4
    Views
    87

    Does the device or the TFT_eSPI have Touch...

    Does the device or the TFT_eSPI have Touch interface enabled? If the library is reading for TOUCH the reads may be continuous - they were when monitoring for the Teensy ILI9341 touch - until the...
  3. Replies
    4
    Views
    87

    If Pin 13 is used as SCK - AFAIK it will light...

    If Pin 13 is used as SCK - AFAIK it will light during transfers and cannot be turned off if active. Either using an alternate pin or transfers are too fast/few between to see in bright light - if it...
  4. Replies
    9
    Views
    225

    Had the same question on phrasing: Suppose it is...

    Had the same question on phrasing: Suppose it is wanted stored as a series of bits in an array of some sort?

    Of course sprintf doesn't do binary - forgot itoa while deciding to play

    Here's the...
  5. Replies
    4
    Views
    117

    Good find on that post @PaulS. Very few T_4.1's...

    Good find on that post @PaulS.
    Very few T_4.1's ever indicated here with any such problem as this post.

    They catch my eye since I had two quit working in short order for no known reason. I...
  6. The sample code shows "config.callback =...

    The sample code shows "config.callback = myCallback;" - so the feedTheDog() isn't used as the callback. Seems that was misstated ...

    The example feedTheDog() says if called sooner that 5.5...
  7. Two numbers control the function. That third...

    Two numbers control the function.

    That third 5500 is just to limit the repeat calls to wdt.feed() to no more often than 5.5 seconds

    Source comments show:


    config.timeout =...
  8. Yes, it just allows indexing each byte of the 2...

    Yes, it just allows indexing each byte of the 2 byte number. So code should just suppl it with the desired 16 bit value and it deals with the transfer.
  9. Looks like 'private' is blocking that structure...

    Looks like 'private' is blocking that structure declaration internal item _DAC_buffer:

    ...
    private:
    int _pin;
    static union {
    uint8_t ui8[2];
    uint16_t ui16;
    }...
  10. Replies
    4
    Views
    73

    What is sending the Data to the Rx Serial1 Pin?...

    What is sending the Data to the Rx Serial1 Pin? Assuming That Rx pin and GND are connected to the device?

    Are the characters received and printed as expected up until the loss of Communication?
    ...
  11. Not sure what product if any has been selected. ...

    Not sure what product if any has been selected. Also what is meant by 'low level transmission data'?

    Looking at this as an example: adafruit.com/radio-featherwing

    It notes it uses SPI to...
  12. Replies
    6
    Views
    89

    For p#2 referred to this:...

    For p#2 referred to this: arduino.cc/reference/en/language/functions/communication/serial/print/

    Didn't look into sources for either. The FORMAT param is noted for 'Arduino' - but not given...
  13. Replies
    6
    Views
    89

    That doesn't seem to be designed to work like the...

    That doesn't seem to be designed to work like the Arduino print 2nd param modification.

    But working as designed
  14. Replies
    6
    Views
    89

    what is the result on SerMon using standard USB...

    what is the result on SerMon using standard USB Serial print?
  15. Sorry, didn't try when you noted it worked, I got...

    Sorry, didn't try when you noted it worked, I got moved to other tasks here ...

    Wondering if there is anything telling or unique about the 'new found' malloc code that might point to a solution or...
  16. Last doe posted with .yield() ending the alloc...

    Last doe posted with .yield() ending the alloc was not safe with mutex, but assume it finished that to yield before time slice ended preventing multiple callers - and then counter var only allowed...
  17. If KEY.PEM was not created using the tools -...

    If KEY.PEM was not created using the tools - there will not be one on the system. This is only used when an encrypted T_4.x is in use.

    Also seems the local copy of teensy_secure.exe exists, but is...
  18. Note: when it was deleted for 'my safety' there...

    Note: when it was deleted for 'my safety' there was then a build error indicating: the EXE not found.

    This meant the eHex was not present when needed.
  19. Replies
    4
    Views
    87

    The Teensy LED PIN 13 is on the SPI SCK - clock...

    The Teensy LED PIN 13 is on the SPI SCK - clock pin.

    So, during transmission over SPI using pin 13 the LED will blink - very fast appearing ON.

    Depending on the driver and the use the SPI...
  20. Works on Windows 11 with IDE 1.8.19 and...

    Works on Windows 11 with IDE 1.8.19 and TeensyDuino 1.57

    Used that code and the linking here shows:


    Linking everything together......
  21. It might resolve to this a couple of levels down...

    It might resolve to this a couple of levels down form Arduino.h included includes:

    ...\hardware\tools\avr\lib\gcc\avr\7.3.0\include\stdint-gcc.h
  22. None, except a sketch typically includes...

    None, except a sketch typically includes Arduino.h by default in the IDE

    This works to build and upload:

    void setup() {
    // put your setup code here, to run once:
    Serial.begin(115200);
    ...
  23. Replies
    3
    Views
    160

    @Paul: just created...

    @Paul: just created Teensy-4-x-Hooks-before-setup()
    > note the time added for PSRAM:

    #ifdef ARDUINO_TEENSY41
    configure_external_ram();
    #endif


    @CollinK: also there are notes on startup...
  24. Replies
    0
    Views
    75

    Teensy 4.x Hooks before setup()

    Below is a sample sketch that shows creation of local hook() functions called before entry to setup as the Reset process proceeds.

    It makes some notes on what can be expected to work in each of...
  25. Did a quick edit to setup for Alloc/Free and no...

    Did a quick edit to setup for Alloc/Free and no diff now in current code - except the indication of TThreads data issues.

    Works with 80 and fails with 100 stack DWord edits.


    ...
    Thread 0...
  26. Based on this note code was added when threads...

    Based on this note code was added when threads start:


    void thread_loop( int threadID )
    {
    //bool fail = false;
    uint32_t fCnt = 0;
    #define STK_CHK_SIZE 80
    int stkSig[STK_CHK_SIZE];
    ...
  27. Did a quick edit to store strings for thread 0 to...

    Did a quick edit to store strings for thread 0 to print - and had each thread yield after one try and only try in turn if their number was up - then pass turn to next thread ... in the process it...
  28. Okay that is the last code I started with - but...

    Okay that is the last code I started with - but minor edit to remove 'warning' and (void*)i+1


    for (int i=1; i<=threadCount; i++)
    threads.addThread(thread_func, (void*)i, threadStackSize);...
  29. Cool, haven't looked in visits ... and gotta run...

    Cool, haven't looked in visits ... and gotta run now ... what diff made it change behavior?
  30. That makes sense. I saw note for passing address,...

    That makes sense. I saw note for passing address, but didn't look into the prototype for expected ordering of the values.
  31. Not looked deeper but: Problem seems malloc...

    Not looked deeper but: Problem seems malloc expects to own the RAM space as it understands it based on that first call setting the base pointer - and the main and threads have unique views with...
  32. Something odd for sure. Seemed all 4 threads were...

    Something odd for sure. Seemed all 4 threads were doing Alloc with post #29 - then some change and only thread 0 and 4 made repeat calls. Then the change indicated in p#30 and then only thread 0 and...
  33. Just added: ftrias/TeensyThreads/issues/38...

    Just added: ftrias/TeensyThreads/issues/38
    It was not giving threadsInfo on LAST thread.

    Something isn't working as expected? I added int* me in code below - output changed drastically and makes...
  34. If all instances of Wire have been changed to...

    If all instances of Wire have been changed to Wire2 this could be removed: #define Wire Wire2

    Has this been tested to work on Wire with the appropriate changes?
    > proper pullups and wiring?
    ...
  35. Good luck. Just make sure they don't overlap on...

    Good luck. Just make sure they don't overlap on ending timeslice with re-entry. What is the best way to enforce that? Semaphore/mutex/interrupts off?
  36. As noted p#11 the first caller to malloc() sets...

    As noted p#11 the first caller to malloc() sets baseline ptr* brkval - that is the 'logic' behind the main thread alloc 'hack':


    if (__brkval == 0)
    __brkval = __malloc_heap_start;
    cp =...
  37. Please provide a complete/short example showing...

    Please provide a complete/short example showing incorrect function.

    If usage was in error forum may help clarify, if the code really is in Error then it needs to be corrected.
  38. Setting this seems essential: InChar = 0; ...

    Setting this seems essential: InChar = 0; // Added to fix crash after updating to IDE 1.8.19

    When called without any Serial.available() if the prior exit was with:: if (InChar == 10)
    ...
  39. Opps - I hesitated asking the obvious ... are...

    Opps - I hesitated asking the obvious ... are there any interrupt functions involved that should not be in FLASHMEM.

    The Teensy's 1062 has 32KB code cache - so maybe it can get away with it for...
  40. Replies
    2
    Views
    183

    Sparkfun posts their Teensy MicroMod Eagle files...

    Sparkfun posts their Teensy MicroMod Eagle files - not sure if that includes part numbers for the crystals?
  41. WORKING - back on Windows 11! Now Com18...

    WORKING - back on Windows 11!

    Now Com18 instead of COM6.

    Found a BLUETOOTH ??? device also on COM6

    Device Mgr remove of the Com6 devices didn't do it.

    Used RegEdit to search "COM6"...
  42. Looking at TeensyThreads.cpp, no malloc - just :...

    Looking at TeensyThreads.cpp, no malloc - just :
    threadp[i] = new ThreadInfo();
    stack = new uint8_t[stack_size];

    Added threads get default 1K or specified Stack and Thread0 main...
  43. Malloc seems to have the idea there is one HEAP -...

    Malloc seems to have the idea there is one HEAP - but each Thread seems to have some reserved space from RAM - how that is allocated would be shown in TeensyThreads? Does it do malloc() for the...
  44. Opps - too long since then. Thanks for detail...

    Opps - too long since then. Thanks for detail reminder

    Suppose 15s Wipe was working - but prior times Loader was open with code to reinstall

    Still have to go back to Win 11 and see if it can...
  45. Fun Update - On the porch with Win 10 Laptop that...

    Fun Update - On the porch with Win 10 Laptop that probably hasn't seen the old T_3.5

    OLD_T_3.5 seems to work NORMALLY here

    Tried three 15s Restores - finally wiped the code - but not running...
  46. I saw similar funny # for Remains This...

    I saw similar funny # for Remains



    This MIGHT be a work around - but it might just give way to another issue later on.

    The malloc code uses those fixed points for REF and it isn't clear they...
  47. BTW: In testing I made a LARGE Flash code test...

    BTW: In testing I made a LARGE Flash code test and that worked. So, it has to be some specific problem code that runs from Flash when it conflicts

    That code...
  48. Also - OLD_T_3.5 is ignoring the 15 second...

    Also - OLD_T_3.5 is ignoring the 15 second Restore as that was timed and tried about 6 times. with timer at 14,15,16 seconds.

    It seems 'something failed' on OLD_T_3.5 - except it worked when I...
  49. Teensy 3.5 - Button Program only and NO Serial out until DUAL then SerialUSB1 OK

    Pulled out a T_3.5 - used quite a bit in past for past testing - not used in Months++
    - Once cut VIN<>VUSB - now soldered again
    - Top side Female headers in place
    - No problems when last used
    ...
  50. Thought that might be the case - and if it isn't...

    Thought that might be the case - and if it isn't auto restarting then CrashReport code may not get called in this case.
    And if the Button won't go into Program mode it seems the MCU is 'offline'?...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4