Search results

  1. B

    Compilation error with MscTesting.ino example after migration from teensyduino 1.56 to 1.59

    Finally, I have just add this : void dateTime(uint16_t* date, uint16_t* time) { *date = FAT_DATE(year(), month(), day()); *time = FAT_TIME(hour(), minute(), second()); } and this in my setup : SdFile::dateTimeCallback(dateTime); and now the date and time of my files are ok and...
  2. B

    Compilation error with MscTesting.ino example after migration from teensyduino 1.56 to 1.59

    Hi wwatson. Thanks for your help, all is wright now . I have modify my program and all functions run as expected. One another thing, do you now how update the date of the file when you write to them ? Actually all my files have same dates (31/12/2024 23:00] and I don't know were come from this...
  3. B

    Compilation error with MscTesting.ino example after migration from teensyduino 1.56 to 1.59

    Many thanks for your example. I take a look at that and surely progress to my project.
  4. B

    Compilation error with MscTesting.ino example after migration from teensyduino 1.56 to 1.59

    Hello wwatson. Sorry , but I need your help with MSC upgrade. Initially in my program, I tested at the start if a USB stick was present and initiated it before writing to it. For that, I use: msDrive1.checkConnectedInitialized(), but with the Teensyduino upgrade I don't find the same function...
  5. B

    Compilation error with MscTesting.ino example after migration from teensyduino 1.56 to 1.59

    Ok, thanks wwatson. I have solved the issue by simply replacing "msController " with "USBDrive" in MSCtestting.ino .
  6. B

    Compilation error with MscTesting.ino example after migration from teensyduino 1.56 to 1.59

    Today, I go back to one old project and after a migration to teensyduino 1.59, I encountered one compilation error. In this project, I used a USB stick for datalogging and all worked fine with older teensyduino 1.56 . To find a solution, I tried to compile the MscTesting.ino example proposed in...
  7. B

    SPI hung sometimes

    Hi I have a problem with my program and the SPI communication. Sometimes the SPI seems locked and the only way to solve that is to restart the hardware. My Teensy 3.6 communicate cyclically with 3 circuits on the bus. I suspect an electric spike that sometimes crashes the SPI interface. In my...
  8. B

    Reset eeprom Teensy 3.2 during programing in Arduino ide

    Hi Is there a way to reset (erase) EEPROM Memory when you want to program Teensy? I don't see anything about that in the Teensy menu of Arduino 1.8.19 IDE. Eric
  9. B

    TeensyLoader CLI issues

    Finally, I have found a solution to avoid clicking on the program push button. 1) Load your binary in teensy.exe 2) Run teensy_reboot.exe (same directory as teensy.exe) Like that, I can program a lot of Teensy modules without calling Arduino IDE each time and avoid recompiling each time.
  10. B

    TeensyLoader CLI issues

    Hi CollinK I'm very interested in your CLI version to program a few Teensys 3.6 in Windows without the need to push the hardware program button (Each Teensy is in a closed box with just a USB connector in the front panel). I have to take a look at CLI repo but not sure that your suggestions are...
  11. B

    Teensyduino 1.56 Beta #6

    Hello. I have upgraded my project to Arduino 1.8.19 because Log4J problem, and I upgrade Teensyduino to 1.56 Beta6. And now when I compile my project using this https://github.com/wwatson4506/UsbMscFat library, I obtain this error...
  12. B

    Teensyduino 1.54 Released

    @Paul/@defragster - A wish too: It was good if the installer include the version in the file name : Ex Teensyduino_1.55.exe
  13. B

    Teensyduino 1.54 Released

    It will be easier if previous versions links are directly on website.
  14. B

    Teensyduino 1.55 Released

    This comes from the last commit of this library and it's a mistake of the library owner.
  15. B

    Teensyduino 1.54 Released

    Please, can you tell me where i can find Teensyduino 1.54, because I want downgrade from 1.55 ?
  16. B

    Teensyduino 1.55 Released

    TeensyThreads compilation issue solution As proposed by ftrias,removing the offending line from TeensyThreads.cpp: #include "utils/debug.h" Slove TeensyThreads compilation issue
  17. B

    Teensyduino 1.55 Released

    Hi. Install on W7 ok, but obtain one compilation error with teensythreads. All seem ok before with Arduino 1.8.15 and TeesnyDuino 1.54.
  18. B

    Teensyduino 1.55 Beta #2

    Please, can you include the new version of TeensyThreads Library made by ftrias in your next release? https://github.com/ftrias/TeensyThreads
  19. B

    Teensy 3.x multithreading library first release

    Yes, I think that 16 it's enough. There is a Teensyduino 1.55 update in preparation. Do you think that it will be ok for this update?
  20. B

    Teensy 3.x multithreading library first release

    Hi In my case, I want to define the number of threads in my code and not statically in your library. It's because in my program I need 10 threads and each time Teensyduino is updated, I need to go back to your library and modify this value ( MAX_THREADS) and it's a bit boring. Is there a trick...
  21. B

    Teensyduino 1.54 Released

    Thanks too for your blog article. Just 3 questions about serial buffer. 1) What is the native buffer size of the serial ports? 2) Is SerialX.flush() have one effect on the buffer create with .addMemoryForWrite() and .addMemoryForRead() or only with native buffer ? 3) What about...
  22. B

    Teensyduino 1.54 Beta #5

    Hi. Please, can you explain how we can uninstall Teensyduino 1.54 Beta #5 correctly? I have tried to delete all the Teensy folder in the Arduino folder, but when I try to re-install 1.53 version, I stay lock during the installation process in the chose folder and can't continue anymore. it-will...
  23. B

    USBHost_t36 USB Mass Storage Driver Experiments

    Okay. Thanks for these clarifications and hoping to soon have a final version integrated in teensyduino.I will continue for the moment with the µSDFS version, but its main problem for me is that it does not work with all USB sticks, or at least in the use I’ve made of it. Thank you again for...
  24. B

    USBHost_t36 USB Mass Storage Driver Experiments

    Hi Wwatson I do what you are suggested in post #394, and now I can compile mscTesting.ino. I have tested my stick and now can enumerate it. You speak about SdFat, is-it this https://github.com/greiman/SdFat ? Do you have one simple example where you used MSC and SdFat? for teensy. I have...
  25. B

    USBHost_t36 USB Mass Storage Driver Experiments

    Ok i will test during this week and send you result. But before, one last question.Is there limitations for stick size, Fat format cluster size, or any recommendations of choose of kind USB Stick for the using with your previous MSC library ?
  26. B

    USBHost_t36 USB Mass Storage Driver Experiments

    Hi wwatson Thanks for your library. I'm always working with your previous MSC (blocking ?) version, and it work with old USB stick, but not with lots of new one. The library stay lock in f_mount function with this kind of stick. Do you think your last version can solve this ? I think there is...
  27. B

    Teensy 3.x multithreading library first release

    For me it isn't the reason of my intermittent locking because all my threads include threads.yield() function. As said before the solution seem be to grow thread stack size. It's easy to extand stack size for threads (Ex threads.addThread(thread_SendDatas,0,2048),but what about Loop() who are...
  28. B

    Teensy 3.x multithreading library first release

    Thanks a lot with your indication, because i take a look to my code and see one stupide mistake when i make my test to solve the problem. I have inverted threads name when i have growed stack size parameter. I have doubled the stack size for the good thread and now all seem ok. It's not very...
  29. B

    Teensy 3.x multithreading library first release

    Sorry Tonton but my code is a bit complexe and need lot of external libraries that why i can't send it. I have identified than the bug (crashing thread) is arround access asynchronusly to one FIFO (using this librairy https://github.com/rlogiacco/CircularBuffer ) . I add value in FIFO in one...
  30. B

    Teensy 3.x multithreading library first release

    Just to add more details to my problem, Suspend and restart dysfunctional thread seem reload it correctly and Now state is 1. I don't have found my crash source, but I can place one state control mechanism (like watch dog) in another thread and suspend-restart the dysfunctional thread. I know...
  31. B

    Teensy 3.x multithreading library first release

    Finaly after one another test i obtain value -2129723392 and i think threr isn't signifience for this value :(
  32. B

    Teensy 3.x multithreading library first release

    I try to develop programs with threads and i have one problem. My program have few threads and one is stuck sometimes. To debug I have asked to one running thread to send me the thread state of the dysfunctional thread. Before the crash, I obtain 1 (running) for the state, but when it crash, I...
  33. B

    Teensy 3.x multithreading library first release

    I have question about EEPROM Write action and thread switching. I know than eeprom write action can be critique and can't be interrupt during proceed. What's append if multi thread switch context during those operation ? Using mutex not seem a good solution for me because their don't avoid...
  34. B

    USBHost_t36 USB Mass Storage Driver Experiments

    @wwatson I have just test with another key, and like you i can unmount-mount without unplug-plug key. It's perhaps my first key is USB3 and second is USB2 ... Your library seem very sensible to key model, because yesterday i have test with another USB2 key, but it's never start (never USB...
  35. B

    USBHost_t36 USB Mass Storage Driver Experiments

    @wwatson. I have tested again with comment myusb.begin() in the uSDFS file sd_msc.cpp. if i do that, disk_status return 1 (not init) although key was plugged and main stay lock. I need add "extern USBHost myusb;" and "myusb.begin();" in my main for starting correctly, like indicate in your...
  36. B

    USBHost_t36 USB Mass Storage Driver Experiments

    @wwatson . Thanks for your suggestion , but not working for me . The program stay lock at the first myusb.begin() in main. I have changed my USB key and tested again with my program, and now it work as expected. If you unmount, remove key, plug it again and mount, it's fine. But if you unmount...
  37. B

    USBHost_t36 USB Mass Storage Driver Experiments

    I just use one simple USB Key with 16GB directly connect to USB Port (this who place on the top of T3.6 circuit). But like I have powered T3.6 with only 5V, i lost some power through LP38691 circuit. Finally, i just obtain 4.6V for my USB key. I solve this by powering key directly through 5V...
  38. B

    USBHost_t36 USB Mass Storage Driver Experiments

    Finally after few investigations, crashs seem coming from a poor USB power supply. But my question about timeout to avoid to stay locked during open and/or write operations, is always open..
  39. B

    USBHost_t36 USB Mass Storage Driver Experiments

    Hi. I progress in my work and i actually experiment a sketch who append datas every second in a file. All seem ok during ~2H, but finally the record crash and the process stay lock in open (and/or write)file process . I have few time experiment same crash during my tests My question is...
  40. B

    USBHost_t36 USB Mass Storage Driver Experiments

    Hi I have another problem with those libraries. I have try to create on basic example with one main and one include file where i have put declarations , prototypes and functions (.h and .cpp) (see attachement). But when i compile , i have always this error message...
  41. B

    USBHost_t36 USB Mass Storage Driver Experiments

    Sorry but I'm newbie in C++ and i don't arrived to implement this function (bool deviceAvailable(void)). Actually i pass though µSDFS class and i don't have directly access to MSC methods. When i try to do, this return me error ( like : not in this scope or undefined reference to...
  42. B

    USBHost_t36 USB Mass Storage Driver Experiments

    Hi thanks for this library. I have test logger_RawWrite_FS example with one usb stick and it work fine. Just one thing interrogate me, when i start program without Usb stick, the program stay lock in mounting process infinitely without generate error message. I have write one simple program to...
  43. B

    Teensy 3.x multithreading library first release

    Ok thanks tonton81. Another questions about mutex. 1)I have seen 2 methods to get mutex, fist with lock() and second with Scope. In the first, is it possible to pass one timeOut like argument, but what about if TimeOut fall. The code section between lock() and unlock() is avoided ? 2) With...
  44. B

    Teensy 3.x multithreading library first release

    Hi I want to know if i can used Serial , Serial1 , Serial2 in different threads (One Serial entity per thread) without risk to loss datas. Need i add some secure mechanism like mutex ? Eric
  45. B

    SPI speed on Teensy 3.5 is not correct

    Oops, I have made mistakes. It's a Teensy 3.6 and I compile it at 180Mhz. For me, like I said before, it's not a problem and all works fine. But it's better to know how it's work and why frequency is different from what's expected.
  46. B

    SPI speed on Teensy 3.5 is not correct

    Hi. Today i take a look on SPI clock signal. Despite i have define 400000 for speed, the clk signal is measured at 312000. It's not really a problem for me but perhaps this can impact other features in Teensy..
  47. B

    noInterrupts() seem not locked serialEvent interrupt.

    Hello I have written one program for teensy 3.2 where in the main loop, i want to lock SerialEvent1() during a small part of time, to avoid conflict. During this program part, i have placed noInterrupt() before and interrupt() after. Unfortunately, noInterrupt ()seem no locked serialEvent1()...
  48. B

    Teensy Internal Reference Voltage Question

    Please can you put this information on product page. https://www.pjrc.com/teensy/teensy31.html . I have lost few time to find this post. Regards
  49. B

    ReadBytesUntil() Bug ?

    Hi I think the arduino function "Serial.readBytesUntil()" don't run as expected. Normally, this function return the number of bytes received if the end value (define as parameter) is found, and if not (timeOut is actived) then return 0. Actually your conversion between Arduino 1.6.11 and...
  50. B

    Migration from MEGA to TEENSY3.2

    Hi All I have in project to migrate one project developed for Arduino MEGA to TEENSY 3.2. Then i have try to directly compile the sketch and encounter just one error (strange). In my initial project, i declare in setup the next command: Serial2.begin(9600, SERIAL_7N1); but SERIAL_7N1 seem not be...
Back
Top