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.

  1. This external ref device isn't providing...

    This external ref device isn't providing appropriate signal it seems.

    If the Teensy hasn't been damaged then the Post #2 Self Reference code from PWM would be a safe input - or run that from a...
  2. Replies
    18
    Views
    3,640

    @jcw - made sketch below and it hits CrashReport...

    @jcw - made sketch below and it hits CrashReport - and the ELF search worked to show line #47 - in RED. And printing stop short of that line?
    Running on a T_4.1 with twin PSRAM's.

    @Paul: Good...
  3. Replies
    18
    Views
    3,640

    Seems as a macro the data will be a STATIC...

    Seems as a macro the data will be a STATIC allocation, and then code to pass the resulting data pointer to the Audio system?

    It does indeed do the alloc from DMAMEM/RAM2: {local...
  4. Replies
    13
    Views
    92

    That would probably catch one common conflict -...

    That would probably catch one common conflict - does NoAudioInterrupts() go NULL when Audio isn't included in a sketch? Or would that pull in the Audio lib to get that?

    I started an Integrity...
  5. There are nice quality Low Profile headers...

    There are nice quality Low Profile headers @somebody linked and ProtoSupplies did a bulk order and has them :

    25401

    protosupplies.com/product/header-set-low-profile-1x14-breakaway-gold-4-pack/...
  6. Replies
    13
    Views
    92

    That seems likely :(

    That seems likely :(
  7. Replies
    25
    Views
    390

    Indeed @jcw that is the case. Also note post...

    Indeed @jcw that is the case.

    Also note post #17 code adds CrashReport - that didn't catch anything.

    But when one of those loops was first copied with changes [ and not resetting buffer_ptr :(...
  8. Replies
    25
    Views
    390

    Changing the p#17 RED code as follows gives...

    Changing the p#17 RED code as follows gives similar clocks value as while()



    T:\tCode\FORUM\GPIOreadPort\GPIOreadPort.ino Jul 29 2021 00:55:33
    9232 >> while
    9252 >>for
    9251 >>for ii * ...
  9. Replies
    25
    Views
    390

    Was wondering how 1024 port reads could complete...

    Was wondering how 1024 port reads could complete in 87 cycles??? Didn't catch the dual print on one line. So was playing with the code.

    That and the OP ref to 50 clocks per read is NOT at Teensy...
  10. Replies
    25
    Views
    390

    @KurtE has summarized pin info here :...

    @KurtE has summarized pin info here : github.com/KurtE/TeensyDocuments

    And PJRC schematic here gives it visually: pjrc.com/store/teensy41.html#tech
  11. Thread: c++17

    by defragster
    Replies
    9
    Views
    1,282

    Have seen other notes about swapping in alternate...

    Have seen other notes about swapping in alternate newer toolchain - maybe one on the linked thread - differs with platformIO .vs. Arduino building. And yes last one read said some files need to be...
  12. Replies
    13
    Views
    92

    Didn't see this asked before :( - not sure of an...

    Didn't see this asked before :( - not sure of an answer ... seems something complex needing tested ???

    Most of the testing done was on non SPI devices - ( though QSPI may have same concern? ) and...
  13. For an external trigger the interrupt pin should...

    For an external trigger the interrupt pin should be INPUT

    Well that got rid of the multiple hits per rising pin for sure :(

    To slow things down try : analogWriteFrequency(3,1000);

    Check the...
  14. Replies
    13
    Views
    92

    Yes. delete this from your system : Used:...

    Yes.
    delete this from your system : Used: C:\Users\jim\Documents\Arduino\libraries\SdFat

    Using TeensyDuino 1.54 includes the recent and fitting copy of SdFat
  15. Replies
    25
    Views
    390

    If the pins to be used fit in a port then reading...

    If the pins to be used fit in a port then reading that returns a 32 bit value of ALL pins on that port.

    The useful pins could be extracted and saved in a byte at the time- which you may not have -...
  16. Thread: c++17

    by defragster
    Replies
    9
    Views
    1,282

    latest comment on toolchain update was here :...

    latest comment on toolchain update was here : pjrc.com/threads/66738-to_string()-doesn-t-work

    Then commentary on the value/risks 3 posts later ...
  17. Seems the "dsb" help reduce the follow on repeat...

    Seems the "dsb" help reduce the follow on repeat calls?

    Try replacing the external input pin with code by @manitou


    analogWriteFrequency(3,100000);
    analogWrite(3,128);
    ...
  18. This should be an input: pinMode(InterruptPin,...

    This should be an input: pinMode(InterruptPin, OUTPUT);

    Not sure how that would affect the pin setup and response.
  19. Posting a complete sketch that will repro to...

    Posting a complete sketch that will repro to would show more - what pins and other code ... and allow others to confirm/test/modify.

    It isn't uncommon for an _isr() to double in cases - but a...
  20. USB Serial buffer size on T_4.0 is not likely the...

    USB Serial buffer size on T_4.0 is not likely the issue. It has some (8?) KB available that is sufficient to handle multiple 512B messages.
  21. Replies
    9
    Views
    98

    Is TeensyDuino 1.54 in use? If so post a link...

    Is TeensyDuino 1.54 in use?

    If so post a link to actual code in use - maybe use some of the standard TEST sound files and confirm.

    Starting with the Tutorial examples to learn the ropes and see...
  22. Replies
    14
    Views
    256

    Great you got to a solution! Reply a bit short...

    Great you got to a solution!
    Reply a bit short as was time to go offline here when posted - you found the Nice example of ... SdFat_Usage.ino

    PJRC hasn't committed to Arduino V2 AFAIK ... but...
  23. Replies
    14
    Views
    256

    From deleted post: Multiple libraries were...

    From deleted post:


    Multiple libraries were found for "SdFat.h"
    Used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SdFat



    TD 1.54 also integrated SdFat into use wrapped by...
  24. Replies
    14
    Views
    256

    Not indicated what Teensy model #.# ?? The...

    Not indicated what Teensy model #.# ??

    The only model with real cache is T_4.x and all RAM1 code and Data are full speed not cached - only RAM2/DMAMEM goes through cache
  25. Just opened the code to see the macros ... I...

    Just opened the code to see the macros ...

    I build with IDE rules ... usually with command line from Sublimetext ... so not sure I'd try to build ... not sure of the code requirements of purpose...
  26. Replies
    968
    Views
    64,640

    Cool - the Kinivo like the PANBT400 AMZN links...

    Cool - the Kinivo like the PANBT400 AMZN links are still valid and both working is good.

    AMZN doesn't indicate one of the Kinivo was delivered here though.

    As far as @kdharbert question on...
  27. Replies
    7
    Views
    204

    Nice work showing usage of :...

    Nice work showing usage of : cppreference.com/w/cpp/types/offsetof

    Not used that before - but seemed ordering in a struct could lead to ability of the compiler to resolve offsets without 'messy...
  28. Just pulled a copy of the code - not scanned...

    Just pulled a copy of the code - not scanned before - indeed the LOG_... macros look quite extensive in HAPLogging.*! And useful when(while) the requested info actually results in usable DEBUG...
  29. Looking at the code this: // Handle input...

    Looking at the code this:


    // Handle input from serial monitor
    while(Serial.available() > 0) {

    Will take Terminal or Serial Monitor input from the USB Serial port and act on it to change...
  30. Interesting - some bad stuff happened to stop USB...

    Interesting - some bad stuff happened to stop USB and loop() it seems - seeing the interval timer _isr() LED explains it not faulting.
    > most common cause of USB stoppage is writing beyond end of an...
  31. Replies
    7
    Views
    204

    Like float, an 'int' is 32 bit? To be sure user...

    Like float, an 'int' is 32 bit? To be sure user int32_t. If everything is 4 bytes it will stack okay.

    Offhand ... without seeing the whole of the usage needs ... not sure of a neat way that...
  32. Okay, good luck. p#3 suggested " intervalTimer...

    Okay, good luck.

    p#3 suggested " intervalTimer to Toggle " LED = if it was in loop() then that was still running - suggest something is trashing USB Stack if that stops.

    Using the intervaltimer...
  33. That is a new feature AFAIK brought in with the...

    That is a new feature AFAIK brought in with the change to SdFat inclusion and indeed @PaulStoffregen did well to exemplify its usage.

    Hope it helps.
  34. Comforting ... but disturbing to have the blink...

    Comforting ... but disturbing to have the blink ...

    Not sure what _isr() looks like for the blink. Sounds like it is working as intended.

    Again, the watchdog code was not suggesting you needed...
  35. Replies
    5
    Views
    104

    The pjrc.com site for the REV D Audio board the...

    The pjrc.com site for the REV D Audio board the T_4.1 needs shows the required pins for given functions.

    It will use the i2c pins to start the audio chip. But the SPI pins for SD card and memory...
  36. Check out included example :...

    Check out included example : ...\hardware\teensy\avr\libraries\SD\examples\SdFat_Usage\SdFat_Usage.ino

    Maybe the the right size of : if (myfile.preAllocate(40*1024*1024)) {

    Would work in...
  37. Replies
    24
    Views
    366

    NXP publishes a doc on temp effect on expected...

    NXP publishes a doc on temp effect on expected lifetime - there was a post some months back with discussion on it.

    Is the T_4.1 the primary heat source in the box or are there other heat makers in...
  38. Replies
    5
    Views
    104

    This ? : axoloti.com/product/axoloti-core/...

    This ? : axoloti.com/product/axoloti-core/

    T_3.6 is similar and faster processor to that board - has USB host and the most pins and two onboard DAC's and has faster SD onboard with SDIO.

    As...
  39. Replies
    968
    Views
    64,640

    can't find Dongle item #1 listed : CSR 4.0 But...

    can't find Dongle item #1 listed : CSR 4.0

    But I did find the second : PANBT400 Plugable Bt 4.0 Low Energy { LINK STILL ACTIVE }

    It worked USB POWERED. Type Pad doesn't seem to always sends...
  40. Replies
    968
    Views
    64,640

    Thanks, unit unboxed and charged yesterday - but...

    Thanks, unit unboxed and charged yesterday - but not gotten time for more than that.

    Will have to locate the Bt dongle part ...
  41. Replies
    932
    Views
    52,924

    No, Thanks, p#929 is after I got it sorted and...

    No, Thanks, p#929 is after I got it sorted and that posted code was tested to work - just took a bit of extra time ... undoing all the 'cleanup' only then to see the misplaced "/" ... and redo all...
  42. Part xxxxA has been replaced by xxxxB So "A"...

    Part xxxxA has been replaced by xxxxB

    So "A" is EOL

    Newer T_4.x's will use the "B" part and Paul noted they have been tested to work ...

    See : pjrc.com/store/ic_mkl02_t4.html


    Supported...
  43. Replies
    4
    Views
    119

    Adjust the : adc->adc0->setAveraging(0); ...

    Adjust the : adc->adc0->setAveraging(0); // set number of averages

    It will sit longer taking multiple readings to average if that is higher - not sure of the...
  44. Wasn't sure what was happening as far as timing...

    Wasn't sure what was happening as far as timing and T_4.1 was at hand.

    Just for fun with :: unsigned int blockLength = 8*4096; // 2048; // Number of characters to log in a block


    ...
  45. Replies
    968
    Views
    64,640

    Type Pad arrived ... annoying wings to blend into...

    Type Pad arrived ... annoying wings to blend into the controller ... and that audio jack it seemed might fold away.

    What code is WIP to work with? Want to see what happens when LiPo powered to Bt...
  46. Replies
    162
    Views
    15,121

    This page: pjrc.com/teensy/td_pulse.html...

    This page: pjrc.com/teensy/td_pulse.html

    Has this text that doesn't include T_4.x (T_MM):


    Teensy LC & 3.x support the analogWriteFrequency(pin, frequency) function to easily configure the PWM.
  47. Nice TD 1.54 in use. Might help to bump T_3.5...

    Nice TD 1.54 in use. Might help to bump T_3.5 F_CPU ...

    It might also be the SD card in use where the AData one here is happy to cooperate at good speed.

    Never worked much with T_3.5 ... at...
  48. Replies
    932
    Views
    52,924

    :cool: Awesome- thx for testing/confirming! ...

    :cool: Awesome- thx for testing/confirming!

    ... on returning to cleanup/test/upload I must have hit UNDO ... the "/" line went back ... unseen ... and I pulled out all the extra print()'s and...
  49. RUN data may only be semi responsive, given it is...

    RUN data may only be semi responsive, given it is using the T_4.1 with SD card already plugged in.

    This is IDE 1.8.15 and TD 1.54 with the newer faster SdFat code supporting the SD code. Is TD...
  50. Replies
    7
    Views
    204

    Cool - glad issue popped out when I looked. That...

    Cool - glad issue popped out when I looked. That was just a HACK Test ...

    Indeed as noted GET and PUT index and work the same - but the code only showed .put()'s.

    Note:: that 'solution' only...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4