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. Replies
    2
    Views
    61

    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
  2. 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...
  3. Replies
    968
    Views
    64,362

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

    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...
  5. 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...
  6. 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...
  7. 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...
  8. Replies
    7
    Views
    190

    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...
  9. 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...
  10. 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.
  11. 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...
  12. Replies
    5
    Views
    89

    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...
  13. 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...
  14. Replies
    24
    Views
    340

    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...
  15. Replies
    5
    Views
    89

    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...
  16. Replies
    968
    Views
    64,362

    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...
  17. Replies
    968
    Views
    64,362

    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 ...
  18. Replies
    932
    Views
    52,203

    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...
  19. 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...
  20. Replies
    4
    Views
    104

    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...
  21. 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


    ...
  22. Replies
    968
    Views
    64,362

    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...
  23. Replies
    162
    Views
    15,059

    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.
  24. 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...
  25. Replies
    932
    Views
    52,203

    :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...
  26. 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...
  27. Replies
    7
    Views
    190

    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...
  28. See here : LittleFS-port-to-Teensy-SPIFlash >>...

    See here : LittleFS-port-to-Teensy-SPIFlash >> LittleFS media data Save or Restore from SD card

    As far as file access : AFAIK anything that works as FILE from SD card will work when passed a FILE...
  29. Replies
    7
    Views
    190

    EEPROM indexes are to single BYTES - as indicated...

    EEPROM indexes are to single BYTES - as indicated in the posted code comment :: appropriate byte of the EEPROM.

    .put() and .get() are sizeof() aware and will write the four BYTES of the float...
  30. Replies
    932
    Views
    52,203

    LittleFS media data Save or Restore from SD card

    Using one of these two commented xferSD() calls:


    #define destLFS 1
    #define destSD 2
    // xferSD( destSD ); // do MediaTransfer LFS TO SD
    // xferSD( destLFS ); // do MediaTransfer SD TO LFS
    ...
  31. Replies
    932
    Views
    52,203

    Figured it out - can't ask LFS mkdir to make a...

    Figured it out - can't ask LFS mkdir to make a dir with a trailing "/" - works on SD but not LFS.

    This change makes it work BOTH to SD and to LFS !!!!

    BAD:


    strcat( szNewDir,...
  32. Replies
    932
    Views
    52,203

    Odd situation - since it isn't working the...

    Odd situation - since it isn't working the obvious way in process - it exists in source media - and likely not in the dest media.

    With recursion the processing may be going funny - but what works...
  33. Replies
    968
    Views
    64,362

    Very cool yours worked too. Just clicked order...

    Very cool yours worked too. Just clicked order to arrive tomorrow.

    @mjs513 - @kdharbert : question above was running the Teensy from LiPo - meaing the Dongle wouldn't have 5V ... does it work:
  34. Replies
    968
    Views
    64,362

    That looks promising! Similar function to the...

    That looks promising! Similar function to the "Rii mini i8"?

    Do you have a way to power that from a LiPo cell? Recent post #952, wondered if the Bt dongle running on less than 5V would function.
  35. Replies
    932
    Views
    52,203

    Interesting - time was short took exist(dir) at...

    Interesting - time was short took exist(dir) at face value - it gave expected results - because they don't exist when done either :(

    Will see if I get back to it before your day gets there ...
  36. Replies
    932
    Views
    52,203

    Back to this > The DIR does not exist when the...

    Back to this > The DIR does not exist when the recursion process passes through the Dir Walk as written.

    Also what works for "Going TO" SD does NOT work coming "BACK TO" LittleFS media - so...
  37. Replies
    932
    Views
    52,203

    {edit NOT} IT WORKS!!!! At least to PSRAM ......

    {edit NOT} IT WORKS!!!! At least to PSRAM ...
    No it doesn't work on copy back - must have a param wrong ...
    >> Looked at the DIR of SD not the DIR of LFS :(

    In main sketch use ONE of these:

    ...
  38. Replies
    932
    Views
    52,203

    Good feedback - thanks for looking. I was between...

    Good feedback - thanks for looking. I was between things and had time to do what I did but not look deeper.

    ... that gives me the clue I needed ... READ my own code :(

    DOH ... OPPS ... I went...
  39. Replies
    8
    Views
    205

    Easy to do using ARM_DWT_CYCCNT which is already...

    Easy to do using ARM_DWT_CYCCNT which is already running on T_4.x.



    uint32_t start;
    uint32_t end;

    start = ARM_DWT_CYCCNT;
    for (unsigned i = 0; i < 100; i++)
    {
  40. Replies
    8
    Views
    205

    Paul has digitalWriteFast( Const pin#, high/low )...

    Paul has digitalWriteFast( Const pin#, high/low ) resolve out to the fastest raw write in inline code on Output pins.

    Setting all desired Input pins with pinMode will assure they are right for...
  41. Replies
    8
    Views
    205

    Each Teensy 4.x port can read all of its pins...

    Each Teensy 4.x port can read all of its pins with a single read of 32 bits - where the pins will be 'distributed'.

    Looking at the PJRC posted schematic or other info will show what pins are on...
  42. Replies
    932
    Views
    52,203

    SD files copy Save/Restore to LittleFS Media

    A quick edit to the "\libraries\LittleFS\examples\Integrity" example of choice should work with this setup mod.
    Add the BOLD lines in place above the RED lines in the Example. This code uncommented...
  43. Replies
    932
    Views
    52,203

    @Paul: : Not made a repro - maybe it was...

    @Paul: <EDIT> : Not made a repro - maybe it was a one off or something else ...

    Will post code shortly - using a T_4.1 a PSRAM disk was made with files including ~4MB "B" bigfile and a 2MB "S"...
  44. Those Media specific versions were split out at...

    Those Media specific versions were split out at the last. The Larger Integrity had an awkward name and even worse user experience with the "#ifdef HELL" nature of usage as it grew to allow use of...
  45. The watchdog was just incidental to that example...

    The watchdog was just incidental to that example showing after restart DMAMEM can hold usable information if there is something that can be pulled from memory if saved.

    It was the intervalTimer...
  46. Replies
    932
    Views
    52,203

    Started a quick write of the p#916 code - it...

    Started a quick write of the p#916 code - it copies root files form PSRAM to SD card root - and makes the root dirs on SD.

    Need to create SD dir for the copy and have the recursive code maintain...
  47. As noted TD 1.54 CrashReport can be handy if the...

    As noted TD 1.54 CrashReport can be handy if the code faults, and on ones it can handle it will pause 8 secs. Some can InstaReboot around it - but that doesn't seem the case here.

    Have seen loop()...
  48. Replies
    932
    Views
    52,203

    From quoted linked post:

    From quoted linked post:
  49. @Sandro /@all - With released TD 1.54 each "Media...

    @Sandro /@all - With released TD 1.54 each "Media Type" is in its own sketch folder:


    T:\arduino-1.8.15\hardware\teensy\avr\libraries\LittleFS\examples\Integrity\MRAMSPI...
  50. Replies
    44
    Views
    841

    @tonton81 made this :...

    @tonton81 made this : github.com/tonton81/Circular_Buffer

    It might offer a robust solution?
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4