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.08 seconds; generated 45 minute(s) ago.

  1. Wrote a sample as suggested - using the pin _isr...

    Wrote a sample as suggested - using the pin _isr - A T_4.0 can trigger and do minimal _isr() code up to about 5.3 Mhz
  2. It is closer to 100 cycles - had...

    <EDIT BELOW> It is closer to 100 cycles - had something under test months back - but not yet found it ...

    The _isr() will have some 10 cycles delay on trigger and jitter from other 'stuff'.
    ...
  3. Bummer redoing the code still not giving desired...

    Bummer redoing the code still not giving desired results.

    The loop() code was not Ctrl+T formatted before posting - the closing parens and indentation don't match so scanning by eye takes extra...
  4. If it was Windows and not linux this works to run...

    If it was Windows and not linux this works to run installed IDE/TeensyDuino from Commnad line :: github.com/Defragster/Tset

    As KurtE notes it also uses TyCommander for multiple uploads.

    It uses...
  5. Paul and Kurt put in more effort useful info -...

    Paul and Kurt put in more effort useful info - though must say I didn't read it all ...

    When you see C or cpp samples - as far as the core language [ control structures, variable allocation and...
  6. It needs to be properly initialized - that could...

    It needs to be properly initialized - that could be done in setup as it only needs to be done once.

    Or the array as global could be used directly, as noted in p#3.
  7. The compiler warning is actually pointing out a...

    The compiler warning is actually pointing out a functional ERROR and need to be corrected.

    The two IF()'s are independent - maybe the first on always enters first - but if not then the second if...
  8. With the code in the IDE do a code format ::...

    With the code in the IDE do a code format :: Ctrl+T
    > the formatting typically will go wrong where the syntax error or missing brace is.
    > Also the editor will show matching braces and parenthesis...
  9. Any array name not indexed is pointer and should...

    Any array name not indexed is pointer and should be treated that way. And should be a pointer with the type when known as that determines how offsets to the array values are determined.

    This would...
  10. Paul deals with platform & boards files behind...

    Paul deals with platform & boards files behind the scenes AFAIK
  11. you are welcome. See also this post :...

    you are welcome.

    See also this post : pjrc.com/threads/63244-Teensy-4-1-multiple-devices

    For a PDF with alternate view info of the T_4.1 pins
  12. Not positive this addresses the question? ...

    Not positive this addresses the question?

    With:


    void *passArray() {
    static double ArrTemp[] = { 22.33, 22.74, 22.30, 24.00 };

    ArrTemp is known only to the function passArray.
  13. Replies
    1
    Views
    169

    @Kurte posted a doc with some detailed pin info :...

    @Kurte posted a doc with some detailed pin info : github.com/KurtE/TeensyDocuments/blob/master/Teensy4.1 Pins.pdf

    It might help confirming pin function to understand with what PJRC.com publishes...
  14. Knowing the specific pins and usage will tell ......

    Knowing the specific pins and usage will tell ...

    Generally all pin function is preserved - but pin locations/numbers for some minimal number of functions shifted. For the major functions and...
  15. Yes the cycle counter is easy and available for...

    Yes the cycle counter is easy and available for use - already running on T_4.x - at default 600 Mhz - with a couple of ticks to read it. Reads like a register - so same as what you did before but 6...
  16. Makes sense - True - it does leave with...

    Makes sense - True - it does leave with interrupts enabled- I alluded to that issue in post #5 :: does not disable interrupts ( or enable them )
    > T_3.x micros() checks the systick tick count...
  17. When interrupts are off and a systick is missed -...

    When interrupts are off and a systick is missed - both are then wrong.

    When I wrote that code it was expected it would round up and add into the next ms - of course then when millis ticked it...
  18. The micros() code on T_4.x runs in under 40...

    The micros() code on T_4.x runs in under 40 cycles, and makes no external calls - and should be fine in an _isr(). It uses the last known millis value and adds the amount of time since that arrived...
  19. Replies
    11
    Views
    340

    That EEPROM structure monitor program is linked...

    That EEPROM structure monitor program is linked in this post : forum.pjrc.com/threads/57377-TEENSY-4-0-EEPROM-amp-RAM-Questions - also some other notes there re; eeprom code
  20. Replies
    20
    Views
    1,012

    'Key Features' table on this page :...

    'Key Features' table on this page : pjrc.com/teensy/

    Doesn't include T_4.x details summary - like effective EEPROM space etc.
  21. Replies
    11
    Views
    340

    Does the T_4.0 have an RTC battery installed? ...

    Does the T_4.0 have an RTC battery installed? There are a couple of RTC storage bytes that maintain value across shutdown and reset as long as power it maintained.

    Those would allow continuous...
  22. Replies
    233
    Views
    24,813

    Indeed - seems one big benefit is having a data...

    Indeed - seems one big benefit is having a data collector/displayer busily doing those tasks fitfully as needed, and allowing the other processor keep heads down processing ready data and generating...
  23. Replies
    2
    Views
    1,393

    vimeo.com/455856456 (https://vimeo.com/455856456)...

    vimeo.com/455856456

    interesting
  24. Flagged other duplicate post back to here ... ...

    Flagged other duplicate post back to here ...

    DC should work as any digital pin not otherwise used.

    More info would be needed about display and connections overall - and some code perhaps - to...
  25. Maybe flash uses block size over 1024 and...

    Maybe flash uses block size over 1024 and programming fails?

    Indeed - already copied post #3 above about website to the web edit needed thread.
  26. Replies
    20
    Views
    1,012

    From post about teensy_loader_cli ... web and...

    From post about teensy_loader_cli ... web and github missing T_4.1 support
  27. That's what I saw that showed it 'missing' - but...

    ...[/QUOTE]

    That's what I saw that showed it 'missing' - but the HTML page is lacking too.

    Also haven't seen the 'Pass PC time to Teensy during upload for RTC' exposed for T_4.x so koromix can...
  28. not seeing a posted Windows binary - or as part...

    not seeing a posted Windows binary - or as part of TD install.

    This doesn't have T_4.1 support :: pjrc.com/teensy/loader_cli.html

    And it isn't here either:...
  29. Replies
    7
    Views
    300

    T_3.5 and later went to through hole micro USB -...

    T_3.5 and later went to through hole micro USB - and looking the holes are not solder 'filled'. So connectors 'falling' off from use or abuse was easier on T_3.2 and before.

    Somebody posted of...
  30. Replies
    233
    Views
    24,813

    Not much is known about the chip - except to Paul...

    Not much is known about the chip - except to Paul under NDA. Not even if the two cores can run the same compiled code with one an M4 and the other an M7 ? Or if they take two sets of...
  31. Replies
    7
    Views
    300

    Sorry - missed the initial post - but Paul posted...

    Sorry - missed the initial post - but Paul posted recently noting the USB Host connection is just that so far - even for general usage.

    Even if it someday can get configured for USB Device usage -...
  32. Replies
    27
    Views
    520

    All the sources are installed - using an editor...

    All the sources are installed - using an editor with folder search makes finding things easy:


    T:\arduino-1.8.13\hardware\teensy\avr\cores\teensy4\core_pins.h:
    1588 }
    1589
    1590: void...
  33. Replies
    27
    Views
    520

    More of Paul's good work at hand.

    More of Paul's good work at hand.
  34. Replies
    27
    Views
    520

    What about digitalToggleFast(0);? Does that...

    What about digitalToggleFast(0);? Does that compile differently?
  35. Replies
    10
    Views
    371

    Realized any big failure would render the rest of...

    Realized any big failure would render the rest of EXTMEM LOST after a single large failure, so when nullptr is returned on large alloc, undo the ptr* change that alloc would have used.

    Added some...
  36. Replies
    10
    Views
    371

    Seems to work adding to...

    Seems to work adding to ...\hardware\teensy\avr\cores\teensy4\imxrt1062_t41.ld:



    _seram = ADDR(.bss.extram);
    _eeram = ADDR(.bss.extram) + SIZEOF(.bss.extram);



    And edited code p#7...
  37. Replies
    36
    Views
    468

    not KurtE - but, no :: "Attachment 21728"

    not KurtE - but, no :: "Attachment 21728"
  38. Replies
    10
    Views
    371

    Yes, Controlled heap alloc from DTCM and ERAM...

    Yes, Controlled heap alloc from DTCM and ERAM would both be cool.

    For :: // TODO: set up for malloc_extmem()

    With edit to imxrt1062_t42.ld could the compile allocated size of EXTMEM be...
  39. Glad it is up and running!

    Glad it is up and running!
  40. So the issue then is the p#8 : with the...

    So the issue then is the p#8 :
    with the addition of the SD card, it started causing alot of problems. I re soldered my circuit board so that both of the HSC sensors are on SPI1 and the SD still on...
  41. Does the SD alone work when the pressure sensors...

    Does the SD alone work when the pressure sensors are removed?

    They should be independent - as long as they are wired right and the software only uses the proper pins and settings. Which is on...
  42. Just seeing this unanswered - was a solution...

    Just seeing this unanswered - was a solution found? ... don't have the answer offhand ...
  43. Replies
    10
    Views
    371

    For CODE run from FLASH best to use :: FLASHMEM ...

    For CODE run from FLASH best to use :: FLASHMEM


    myReturnType FLASHMEM MyFunction( MyParameters ) {

    Code for Function....

    }

    That is new and not yet shown on the T_4.0 memory page...
  44. Replies
    15
    Views
    267

    That was linked/noted in post #4 above ...

    That was linked/noted in post #4 above ...
  45. Replies
    10
    Views
    371

    Moving that image data from RAM to FLASH would be...

    Moving that image data from RAM to FLASH would be using:

    PROGMEM Variables - Variables defined with "PROGMEM" are placed only in the flash memory. They can be accessed normally.
  46. Replies
    15
    Views
    267

    That is not the hysteresis point which is at...

    That is not the hysteresis point which is at midrange - was just guessing not reading the plotted data values correctly.

    If the same code is done without Audio Library in use in a simple sample...
  47. Replies
    7
    Views
    287

    AFAIK - Others have done custom waveforms and...

    AFAIK - Others have done custom waveforms and other things during the code like:


    case WAVEFORM_SAWTOOTH:
    for (i=0; i < AUDIO_BLOCK_SAMPLES; i++) {
    *bp++ =...
  48. Replies
    12
    Views
    261

    I started to suggest that - but was already two...

    I started to suggest that - but was already two hours late for signing off. In fact when I did the pin change _isr() - USB printing worked .... that time.

    But only having "I have code that locks...
  49. Replies
    12
    Views
    261

    I see 15 names that clicked the link - lots of...

    I see 15 names that clicked the link - lots of repeat viewers ... just seeing the ping post here ...

    Indeed the T_4.x does not have a functional 'Reset' pin. Not sure about the On/Off comment? ...
  50. Replies
    10
    Views
    371

    NINE - if you count the RAM in PSRAM. There is...

    NINE - if you count the RAM in PSRAM.

    There is no provision to initialize or extend 'onboard RAM' directly onto the PSRAM chip. It is off chip and in non-contiguous address space - and runs not...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4