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.01 seconds.

  1. Replies
    87
    Views
    30,150

    updated GitHub. Note: code is only tested with...

    updated GitHub.
    Note: code is only tested with Teensy4.0 and Windows 10.
    Code for T3.x is included but not tested (code has worked in the past with Bill Greiman`s SdFs, which he is not supporting...
  2. I use this arrangement all the time.

    I use this arrangement all the time.
  3. Replies
    87
    Views
    30,150

    This is a consequence of using SdFat-Beta...

    This is a consequence of using SdFat-Beta together with SdFat.
    Please open SdFat-Beta and rename SdFat.h into SdFat-Beta.h

    You can use also SdFat (as you do) but then there is no ExFat support...
  4. Replies
    8
    Views
    85

    you can also use the RTC to restart after so many...

    you can also use the RTC to restart after so many seconds (i.e. fixed duty cycle)
    if interested search forum for microSoundRecorder
  5. Replies
    87
    Views
    30,150

    Until then, you can uncomment the relative lines...

    Until then, you can uncomment the relative lines in boards.txt
  6. Replies
    17
    Views
    107

    yes, Rev B works with all T3.x Rev D ONLY works...

    yes, Rev B works with all T3.x
    Rev D ONLY works with T4.0
  7. Replies
    17
    Views
    107

    Led (pin13) does not work when using Audioboard....

    Led (pin13) does not work when using Audioboard.
    Audioboard does not work when using pinMode(13,OUTPUT) in setup.
  8. Replies
    5
    Views
    137

    AFAIK, this is nor really a fuse but a polyfused....

    AFAIK, this is nor really a fuse but a polyfused.
    But you should be able to test the different test-pads.
  9. Thread: SDIO Power drain

    by WMXZ
    Replies
    13
    Views
    191

    I know, it is not _required_ if transfer is not...

    I know, it is not _required_ if transfer is not aborted, but here in transfer stop, CMD12 is related to multblock transfers.
  10. input or output?

    input or output?
  11. Replies
    23
    Views
    261

    it seems that the implementations different...

    it seems that the implementations different approaches with gyro bias compensation http://www.olliw.eu/2013/imu-data-fusing/
    but, it may be that cheep IMUs are more sensitive to this type of error.
  12. Only to be sure, I would put the SEL pin to GND...

    Only to be sure, I would put the SEL pin to GND AND to 3.3V respectively, so that all Mics have well defined SEL.
    at the moment you have only connection to 3.3V
  13. could not find any issue yet, but for clarity...

    could not find any issue yet, but for clarity (AFAIK) the channel sequence is L1,L2, R1,R2 and not L1,R1,L2,R2.
    So your data say mic 1 is -32768 on both channels and mic2 is zero on both channels.
  14. Thread: SDIO Power drain

    by WMXZ
    Replies
    13
    Views
    191

    Resetting the Dat lines, may indeed be useful to...

    Resetting the Dat lines, may indeed be useful to reset the uSD, but not calling transferStop, as this first calls CMD12.
  15. Thread: SDIO Power drain

    by WMXZ
    Replies
    13
    Views
    191

    I still do not know what the issue is....

    I still do not know what the issue is.
    transferStop is part of the transfer protocol of multi-block transfers : (transferStart --- write consecutive blocks --- transferStop)
    You cannot use it to...
  16. This triggered some thoughts Whenever I hear the...

    This triggered some thoughts
    Whenever I hear the name "Lady Ada" I always must think about Ada Lovelace ((18151852), the first "compute" programmer) and the programming language ADA that was...
  17. Thread: SDIO Power drain

    by WMXZ
    Replies
    13
    Views
    191

    readStart, writeStart are the beginning of a...

    readStart, writeStart are the beginning of a multisector read/write operation and are terminated with readStop,writeStop.
    between Start and Stop the uSD card increments automatically the buffer...
  18. Replies
    87
    Views
    30,150

    Got MTP Responder working on T4 code may be...

    Got MTP Responder working on T4
    code may be found on GitHub/WMXZ/MTP_t4

    directory "copy-of-core" contains modification of core library
    until they are merged and distributed with TD these file...
  19. Thread: USB for T4.0

    by WMXZ
    Replies
    6
    Views
    237

    A heads-up: Got USB_MTPDISK working on T4. As...

    A heads-up:
    Got USB_MTPDISK working on T4.
    As soon I have cleaned up SW and generated I library and further tests, I will post on MTP-Responder thread.
    I also will suggest to Paul (via PR) mods to...
  20. Thread: USB for T4.0

    by WMXZ
    Replies
    6
    Views
    237

    As I run out of ideas, I post the test program as...

    As I run out of ideas, I post the test program as zip file.

    Instructions are in Read_me.txt. If in doubt ask.

    Maybe someone has more luck and finds the solution to the puzzle.
    It should be...
  21. Thread: USB for T4.0

    by WMXZ
    Replies
    6
    Views
    237

    update, by turning on Pauls debug printf in...

    update,
    by turning on Pauls debug printf in usb.c I note that usb isr is called about 1/s with status bits USB_USBSTS_SRI and USB_USBSTS_TI0, which seems to be normal behaviour.

    USB is keep...
  22. Thread: USB for T4.0

    by WMXZ
    Replies
    6
    Views
    237

    Im now one step further. I cloned usb_rawhid...

    Im now one step further.
    I cloned usb_rawhid into usb_mtp
    I configured usb_mtp with interrupt context callbacks.
    Not sure how to configure MTP_EVENTS (receive ore transmit, bulk or interrupt?)...
  23. Thread: USB for T4.0

    by WMXZ
    Replies
    6
    Views
    237

    Thanks Paul. OK, so it is my work now to...

    Thanks Paul.
    OK, so it is my work now to understand why I cannot get MTP to work.
    (I only run into timeout, but after 1 week playing, I may have something screwed up.)
  24. Thread: USB for T4.0

    by WMXZ
    Replies
    6
    Views
    237

    USB for T4.0

    Im struggling with the T4.0 USB implementation. I try to implement the MTPDISK feature, which I urgently need on T4.0.
    So, I try to learn from existing implementation.
    At the moment I fail to...
  25. try with very long timeouts, say 30000. most...

    try with very long timeouts, say 30000.
    most likely, your terminal program or PC may be unreliable with connecting to Serial.

    Alternatively, does FIFO_Class uses Serial?
  26. Yes, Both USB ports are 480 Mbs and use the same...

    Yes, Both USB ports are 480 Mbs and use the same underlaying design. In how far cloning USB1 to USB2 is easy or not, depends on your programming skills (and the reading of the IMXRT documentation)...
  27. Yes, the D+ and D- are for the second USB on...

    Yes, the D+ and D- are for the second USB on T4.0. However, there is no reason why you cannot use the 2nd USB (USB2) in device mode. You only need to duplicate the usb stack to work on the 2nd port.
  28. As I usually use most ram for data queue, I...

    As I usually use most ram for data queue, I modified recordQueue to use Template arguments and include class implementation in an include file.
  29. Yes, TeensyLC is NOT 5V tolerant. To know if...

    Yes, TeensyLC is NOT 5V tolerant.
    To know if only port is fried, try TLC to TLC communication (write from one port and read from another port)
  30. I was indeed looking at tinyusb while waiting for...

    I was indeed looking at tinyusb while waiting for Paul to find time to complete teensy core usb stack. Did not see this particular GitHub site. So will try again, but uses CMSIS philosophy.
    in fact...
  31. Replies
    2
    Views
    105

    all audio objects are updated (processed) in the...

    all audio objects are updated (processed) in the sequence they are declared with AudioConnection. So, queues should be synchron. What I do, is to check the availability of the last declared queue...
  32. You mean, you downloaded 1.49-beta3, as...

    You mean, you downloaded 1.49-beta3, as suggested by Paul, and installed it completely over old version?
  33. Suggest to print out the sensor data gx to mz to...

    Suggest to print out the sensor data gx to mz to see which component is changing over time.
    It may be that one sensor (magnetometer?) may change its value as function of temperature, resulting in...
  34. Replies
    45
    Views
    2,841

    I know, that was the reason for suggestion,...

    I know, that was the reason for suggestion, stated only as question.
  35. Replies
    45
    Views
    2,841

    or millis() was wrong in beta2?

    or millis() was wrong in beta2?
  36. 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.
  37. Replies
    30
    Views
    783

    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);
  38. 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
  39. Replies
    30
    Views
    783

    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...
  40. Replies
    30
    Views
    783

    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...
  41. 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.
  42. 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;
  43. Replies
    30
    Views
    783

    @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.
  44. 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?
  45. 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...
  46. 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
    ...
  47. 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;
    ...
  48. 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 '}'.
  49. Replies
    15
    Views
    540

    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...
  50. 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]);
    ...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4