Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: WMXZ

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. which seems to indicate, that opening files...

    which seems to indicate, that opening files fails.
    I'm on travel for a week and have no Teensy with me, so I cannot check the program.
  2. Replies
    30
    Views
    447

    generated separated files I tested with T4.0 and...

    generated separated files
    I tested with T4.0 and T3.6

    hibernate.h


    #ifndef _HIBERNATE_H_
    #define _HIBERNATE_H_
    void rtc_clearAlarm();
    void setWakeupCallandSleep(uint32_t nsec);
  3. lets try again: actually post #14 says #if...

    lets try again:
    actually post #14 says

    #if SDFAT_BETA == 0
    SdFatSdio sd;
    File file;
    #else
    SdFs sd;
    FsFile file;
    #endif
  4. Replies
    30
    Views
    447

    What I not understand is the following: I tell...

    What I not understand is the following:
    I tell SNVS to wake-up the processor, say in 1 minute.
    I expect that alarm ISR is called after 1 minute, but MCU is not running, therefore alarm ISR can not...
  5. Replies
    30
    Views
    447

    Anyhow, here is a stripped down version ...

    Anyhow,
    here is a stripped down version

    #include "core_pins.h"
    #include "TimeLib.h"

    /******************* Seting Alarm ***************/
    #define SNVS_LPCR_LPTA_EN_MASK (0x2U)

    void...
  6. You should at least solder the T3.1 to header....

    You should at least solder the T3.1 to header. Otherwise, there are no good contacts and lot of electric noise.
  7. Sorry, that is my fault. I'm using the latest...

    Sorry, that is my fault.
    I'm using the latest (beta) version of SdFat.

    You could change code to become

    #if SDFAT_BETA == 0
    SdFatSdio sd;
    File file;
    #else
    SdFs sd;
  8. Replies
    30
    Views
    447

    @defragster, Sure you can minimize code. The...

    @defragster,
    Sure you can minimize code.
    The original version was done during T4-beta. There was work by someone else before, but I only used T4 RefMan.
  9. how did you connect sdcard to T3.1? can you...

    how did you connect sdcard to T3.1?
    can you provide picture of wiring?
    what code did you use?
    schematics of ADC buffer?
  10. what is your expected data rate? The following...

    what is your expected data rate?

    The following code may be a start

    //
    #define SDFAT_BETA 0
    #if SDFAT_BETA == 0
    #include <SdFat.h>
    #else
    #include <SdFat-beta.h> // latest SdFat needed...
  11. if(!count) { //open file ...

    if(!count)
    {
    //open file
    sprintf(filename,"Data%03d.csv",ifl); ifl++;
    if (!file.open(filename, O_RDWR | O_CREAT)) sd.errorHalt("open failed");

    // write header to file
    ...
  12. Simply use if(!count) { //open...

    Simply use


    if(!count)
    {
    //open file
    sprintf(filename,"Data%03d.csv",ifl); ifl++;
    if (!file.open(filename, O_RDWR | O_CREAT)) sd.errorHalt("open failed");
    count=1;
    ...
  13. I completely missed that. For me that is the...

    I completely missed that.
    For me that is the reason, why I never liked '{' at the end of the line. I prefer that in line with '}'.
  14. Replies
    13
    Views
    337

    So, if the ADC gives SNR of 96 dB, it is...

    So, if the ADC gives SNR of 96 dB, it is integrated over the whole bandwidth (A-weighted) and 15, 16th bit are very likely noisy.
    BUT if you go into spectral analysis (say >1024 point FFT) then you...
  15. next thing I would try is to move the print to...

    next thing I would try is to move the print to serial adjacent to prints to file move from loop into doLogging

    for(int ii=0; ii<nb; ii++)
    { file.print(',');
    file.print(data1[ii]);
    ...
  16. It is not a question of Teensy, but the library...

    It is not a question of Teensy, but the library you are using
    Suggest to use Bill-Greimans SdFat-beta https://github.com/greiman/SdFat-beta which supports all Teensies and also exFAT

    For normal...
  17. Replies
    29
    Views
    1,345

    I ask as I run T4 +AudioCard-uSD (spi) +...

    I ask as I run T4 +AudioCard-uSD (spi) + sdfat-beta at 24 MHz CPU clock without problems (I think)
    so issue may be with SDIO clock generation
  18. I would first apply the following change ...

    I would first apply the following change

    //open file
    sprintf(filename,"Data%03d.csv",ifl); ifl++;

    than can you tell us what the serial monitor is printing
  19. Replies
    29
    Views
    1,345

    do you mean CPU clock at 150MHz?

    do you mean CPU clock at 150MHz?
  20. Replies
    30
    Views
    447

    Not sure anymore. Put T4 on powered USB hub, and...

    Not sure anymore.
    Put T4 on powered USB hub, and new confusing issue.
    Also used progmem to keep rtc_reset, rtc_stopAlarm, rtc_isr, so their code does not disappear when shutting down (I hope)
    ...
  21. Replies
    30
    Views
    447

    inserting as first call into setup() void...

    inserting as first call into setup()

    void rtc_resetAlarm()
    {
    SNVS_LPCR &= ~SNVS_LPCR_LPTA_EN_MASK;
    while (SNVS_LPCR & SNVS_LPCR_LPTA_EN_MASK);
    }
  22. this means very soon (within a week)?

    this means very soon (within a week)?
  23. Replies
    30
    Views
    447

    Not sure (I did not had time to assemble the...

    Not sure (I did not had time to assemble the latest Breakout board). I will check this evening.

    I did my tests with a recent T4 purchase (from PJRC).
    For my latest test, I physically connected...
  24. Replies
    30
    Views
    447

    So, I changed running phase to 20 blinks, and...

    So, I changed running phase to 20 blinks, and after start I connected permanently on/off to GND
    after first 5 seconds program power cycled, but then grounded power on/off had NO effect anymore...
  25. Replies
    30
    Views
    447

    This is what one would could easily implement...

    This is what one would could easily implement also in an embedded system, bring out both lines (program and power on/off lines)

    Now, I found another "feature":

    RTC coin cell connected, program...
  26. Replies
    30
    Views
    447

    here is a test Code #include "core_pins.h"...

    here is a test Code

    #include "core_pins.h"
    #include "TimeLib.h"

    /******************* Seting Alarm ***************/
    #define SNVS_LPSR_PGD_MASK (0x8U)
    #define...
  27. Replies
    30
    Views
    447

    This was a recorder program, but will try is I...

    This was a recorder program, but will try is I could generate a minimal program and post, using my hibernate program during T4beta test
  28. Replies
    30
    Views
    447

    yes, on/off (reset) line works (nearly) as...

    yes, on/off (reset) line works (nearly) as expected

    T4 running: long (>5s) on/off line to GND switches T4 off , BUT T4 comes on again immediately (I was still grounding on-off line)
    T4 off: short...
  29. Replies
    30
    Views
    447

    issue to reporogram T4.0

    I have the following scenario
    T4 with coin cell for RTC connected to PC-USB. (T4 is soldered to revD audioboard, no external power)

    SW shuts down Teensy (turns off power). (SNVS_LPCR |=(1<<6) ; )...
  30. Replies
    14
    Views
    420

    Let us be realistic. T3.6 had all pins available...

    Let us be realistic.
    T3.6 had all pins available for SWD, and it needed only a "simple" modification in the bootloader chip to allow easy use of SWD. (lets ignore the HW solution discussed in the...
  31. Replies
    4
    Views
    108

    All Teensies generate 0 to 3.3V digital data. If...

    All Teensies generate 0 to 3.3V digital data.
    If you are measuring 13.1 Vpp then your measurements are not correct.
  32. Replies
    102
    Views
    5,822

    Should express form not be backward compatible,...

    Should express form not be backward compatible, and therefore standard form would suffice, as long as MCU does not support express?
  33. AFAIK, there should be NO DMA that directly...

    AFAIK, there should be NO DMA that directly accesses audio-block data. If there are few objects that do that, maybe they should be rewritten. Could you give some examples, where audioblocks are used...
  34. Replies
    9
    Views
    254

    to change AUDIO_BLOCK_SAMPLES you have to change...

    to change AUDIO_BLOCK_SAMPLES you have to change it in the cores/Teensy3/AudioStreams.h file and recompile the whole system (changing some entry in Tools of Arduino IDE)
  35. Replies
    80
    Views
    29,153

    Chip, The original version of he MTP has serial...

    Chip,
    The original version of he MTP has serial and not seremu
    https://github.com/yoonghm/MTP/blob/master/usb_desc.h
    Not clear why Paul has chosen to use seremu.
    Also not clear (forgot) if and...
  36. Replies
    5
    Views
    200

    I'm using regularly 4 D cells for a Teensy 3.6....

    I'm using regularly 4 D cells for a Teensy 3.6. Should be similar for T3.2.
  37. Replies
    7
    Views
    164

    On T4, I would suggest to add a 3V coin cell and...

    On T4, I would suggest to add a 3V coin cell and not to rely on Vin for keeping RTC.
    E.g. T4 can switch off internal 3.3V and then you lost RTC.
    Coin cell will last sufficiently long to avoid...
  38. Replies
    4
    Views
    319

    There are multiple threads that use Teensy4 as is...

    There are multiple threads that use Teensy4 as is and make the carrier PCB with castellated connection to teensy. Through-holes are also easy connected.
    I plan t do similar for my boards.
    Note, you...
  39. Thanks for doing it. especially of interest to...

    Thanks for doing it.
    especially of interest to me, what is the procedure for continues DMA (say in case of I2S input DMA)? Does ISR needs to address caching (as done in Output_I2S) or not (as done...
  40. I have not looked into playing back on CS42448,...

    I have not looked into playing back on CS42448, but will do soon.
  41. Replies
    102
    Views
    5,822

    Correction: Jetson Nano is a 4core ARM and 128GPU...

    Correction: Jetson Nano is a 4core ARM and 128GPU system.
    but you are right, AI is (again) very trendy.
    I would like to see some effort to use the GPU on the T4 for processing, if it can be...
  42. @jpaudio I updated /modified the...

    @jpaudio
    I updated /modified the https://github.com/WMXZ-EU/microSoundRecorder/tree/microSoundRecorder_dev branch of the microSoundRecorder to use and initialize CS42448
    (no playback yet)

    I...
  43. Replies
    4
    Views
    319

    As you are concerned with time-wasting and have...

    As you are concerned with time-wasting and have all equipment for production in house, maybe you could consider designing your own Teensy PCB (getting the bootloader chip from PJRC).
    Schematics and...
  44. where in the top did you declare waveform1? you...

    where in the top did you declare waveform1? you only declare wavetable1
  45. disconnect all devices open device manager...

    disconnect all devices
    open device manager
    activate show hidden devices
    uninstall COM6
    connect 3D printer
    connect Teensy
  46. Replies
    4
    Views
    267

    It cannot be easier than with Teensy.exe. only...

    It cannot be easier than with Teensy.exe. only two buttons to click, and one file to select.
    (are you really saying, that you let someone update a MCU with a new firmware, who is not capable of...
  47. @jpaudio, As I do not have a CS42448 Audio...

    @jpaudio,
    As I do not have a CS42448 Audio board, I will try to look into the code only, and you have to do the testing for me.
    From your description, it means that there is some initialization...
  48. There is a misunderstanding, the...

    There is a misunderstanding, the "microSoundRecorder" does not allow playback. it only records to uSD.
  49. Replies
    4
    Views
    267

    You only need to distribute teensy.exe to upload...

    You only need to distribute teensy.exe to upload hex file.
    No Arduino or Teensyduino required
  50. Thread: Teensy 3.6 noise

    by WMXZ
    Replies
    29
    Views
    743

    Typically a FET is used to transform impedance...

    Typically a FET is used to transform impedance from high to low.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4