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
    2
    Views
    64

    Quick read of the PDF and the readme suggested 4...

    Quick read of the PDF and the readme suggested 4 sets of 256 LEDS are setup and the 4 would be independent controlled by their own pins
  2. Thanks, not seeing easy way to make the EXE non...

    Thanks, not seeing easy way to make the EXE non executable to try to see if the error code comes back the same.

    Web search on the error code gave:
    > one: ref suggesting UAC
    > another: The exit...
  3. Replies
    3
    Views
    137

    Yes, With TD 1.57 installed - if it builds then...

    Yes, With TD 1.57 installed - if it builds then any call to CrashReport.breadcrumb() should be working as long as the passed first parameter is between 1 and 6.

    Can you create/post a minimal ZIP...
  4. Replies
    1
    Views
    35

    Is it related to this existing thread - just...

    Is it related to this existing thread - just updated today: pjrc.com/threads/70553-Teensy-4-0-based-Audio-Guestbook
  5. You are welcome, glad it worked - didn't test...

    You are welcome, glad it worked - didn't test here - but that seemed the right fix.

    Indeed for security, unless a special Encrypt-able Teensy is in use there is no need for that program. It allows...
  6. Sparkfun has this adapter - designed for T_3.2:...

    Sparkfun has this adapter - designed for T_3.2: sparkfun.com/products/15716

    It may work to bring out the needed pins.
  7. Replies
    2
    Views
    96

    RT1052 will not work. First working T_4.0 ran...

    RT1052 will not work.

    First working T_4.0 ran on a 1052, but all support was dropped when the 1062 released in production quantities during development.

    The PJRC bootloader will not support the...
  8. Replies
    6
    Views
    106

    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....
  9. Replies
    4
    Views
    90

    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...
  10. Replies
    4
    Views
    90

    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...
  11. Replies
    9
    Views
    265

    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...
  12. Replies
    4
    Views
    119

    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...
  13. 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...
  14. 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 =...
  15. 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.
  16. 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;
    }...
  17. Replies
    6
    Views
    106

    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?
    ...
  18. 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...
  19. Replies
    6
    Views
    96

    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...
  20. Replies
    6
    Views
    96

    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
  21. Replies
    6
    Views
    96

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

    what is the result on SerMon using standard USB Serial print?
  22. 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...
  23. 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...
  24. 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...
  25. 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.
  26. Replies
    4
    Views
    90

    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...
  27. 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......
  28. 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
  29. 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);
    ...
  30. Replies
    3
    Views
    161

    @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...
  31. 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...
  32. 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...
  33. 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];
    ...
  34. 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...
  35. 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);...
  36. 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?
  37. 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.
  38. 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...
  39. 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...
  40. 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...
  41. 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?
    ...
  42. 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?
  43. 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 =...
  44. 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.
  45. 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)
    ...
  46. 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...
  47. Replies
    2
    Views
    185

    Sparkfun posts their Teensy MicroMod Eagle files...

    Sparkfun posts their Teensy MicroMod Eagle files - not sure if that includes part numbers for the crystals?
  48. 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"...
  49. 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...
  50. 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...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4