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

Search:

Type: Posts; User: PaulStoffregen

Page 1 of 10 1 2 3 4

Search: Search took 0.13 seconds.

  1. Replies
    388
    Views
    6,890

    This code worries me. The main problem is it...

    This code worries me.

    The main problem is it assumes an entire flash block is blank and does not require erase if only the first 16 bytes are 0xFF. The huge problem is it never examines the other...
  2. Replies
    456
    Views
    48,524

    It should be possible to create a library which...

    It should be possible to create a library which provides a "filesystem" to do this. The code would look similar to SD.h, except instead of calling the SdFat functions to actually access the SD card,...
  3. Replies
    3
    Views
    115

    This is the thread:...

    This is the thread:
    https://forum.pjrc.com/threads/57842-Future-Teensy-features-amp-pinout
  4. Glad you got it working! :)

    Glad you got it working! :)
  5. Difficult to see from the angle of the camera,...

    Difficult to see from the angle of the camera, but looks like the 3 wires might be on pins 9,10,11 rather than 10,11,12.
  6. Replies
    6
    Views
    124

    Yes, USE_WS2812SERIAL is the best solution,...

    Yes, USE_WS2812SERIAL is the best solution, though it does limit you to specific pins and use a little more memory.

    The other thing to try is this, before you include FastLED.h

    #define...
  7. Replies
    11
    Views
    183

    Probably not another fixed 64K, but.... ...

    Probably not another fixed 64K, but....




    Yes, this, more or less.

    I'm still not 100% sure of all the details, but my general plan is to make future bootloader versions scan the flash for...
  8. Replies
    21
    Views
    711

    Some of this increase is probably due to the...

    Some of this increase is probably due to the change to SdFat. It's much faster and supports cards larger than 32GB and long filenames, but all that SD card goodness does come with a code size cost....
  9. Maybe look for one of the many little breakout...

    Maybe look for one of the many little breakout boards using MAX98357. Power might be a little light or might work out pretty well, depending on how "quiet" the room is and how "room filling" you...
  10. If you read other threads, you'll see we've also...

    If you read other threads, you'll see we've also talked at times about NAND flash chips. Today none of those are well supported. They require software to manage and remap bad blocks. NAND also has...
  11. This flash chip might be an option. It's 64...

    This flash chip might be an option. It's 64 Mbyte and only $5. I already have some on order with plans to support them in LittleFS.
    ...
  12. I got these from Digikey some time ago. They've...

    I got these from Digikey some time ago. They've been sitting unused (untested) on my cluttered desk.

    22578

    The tall header is Samtech MTMM-103-10-T-D-355. The socket is Digikey...
  13. Replies
    388
    Views
    6,890

    Maybe try experimenting with the...

    Maybe try experimenting with the config.block_cycles setting?

    https://github.com/PaulStoffregen/LittleFS/blob/168e03fb79a5eb87f508b427b4eea07b16f23fd8/src/LittleFS.cpp#L460

    Here's the only...
  14. How do you want it to stop? In you question,...

    How do you want it to stop?

    In you question, you said "I want that feedback to continue when note off is send". You did not say you want the note to end, but to continue.




    The envelope...
  15. Maybe just delete some or all of this? ...

    Maybe just delete some or all of this?



    if (button24.risingEdge()) {

    envelope1.noteOff();
    envelope2.noteOff();
    envelope3.noteOff();
    envelope4.noteOff();
  16. Logging data to the program memory requires...

    Logging data to the program memory requires completely disabling interrupts while the chip is busy, so it is not a good solution if you need to keep continuously collecting incoming data while the...
  17. Replies
    388
    Views
    6,890

    LittleFS uses a superblock to hold metadata about...

    LittleFS uses a superblock to hold metadata about the entire filesystem. I believe just erasing the superblock is enough, though I will admit I have not carefully studied the details of how LittleFS...
  18. Replies
    9
    Views
    175

    A tuneable clock is an interesting idea. With...

    A tuneable clock is an interesting idea. With I2S slave mode it might work, but you would also need a divide-by-64 circuit, since both BCLK and LRCLK need to be provided.

    Perhaps compensating on...
  19. Replies
    9
    Views
    175

    Maybe run one of the boards in I2S slave mode? ...

    Maybe run one of the boards in I2S slave mode?

    That is, if you're not also using the other non-I2S inputs or outputs that can't work together with slave mode controlling the sample rate.
  20. Replies
    456
    Views
    48,524

    We have strlcpy() on Teensy, which is the same as...

    We have strlcpy() on Teensy, which is the same as strncpy() but also takes care to null terminate in some cases where strncpy() doesn't.
  21. Replies
    456
    Views
    48,524

    With SdFat, you should be able to use ~250...

    With SdFat, you should be able to use ~250 characters.

    Currently LittleFS is configured for 39 characters max filename.
  22. Replies
    4
    Views
    100

    A fuse won't give you the protection you want. ...

    A fuse won't give you the protection you want. Fuses protect against too much current. They do nothing about about too much voltage, or at least not until the voltage go so high as to cause a...
  23. Yes, NXP is putting ASRC hardware into the next...

    Yes, NXP is putting ASRC hardware into the next generation of IMXRT chips.

    Here's the block diagram from NXP's website. You can see ASRC in the "Connectivity" part at the top of the left column....
  24. Whether CircuitPython is able to use the built in...

    Whether CircuitPython is able to use the built in SD socket on Teensy 4.1 is unknown to me. That socket uses the faster 6-signals SDIO protocol, not 4-signals SPI protocol. There's a good chance...
  25. And if you leave interrupts disabled, please...

    And if you leave interrupts disabled, please understand Arduino can't cause Teensy to go into programming mode, because you've disabled the USB interrupt. You will need to press the button on your...
  26. Replies
    388
    Views
    6,890

    I'm packaging up 1.54-beta5 now. Should have it...

    I'm packaging up 1.54-beta5 now. Should have it ready in an hour or so...
  27. Replies
    142
    Views
    11,162

    I pulled in the latest FNET and NativeEthernet in...

    I pulled in the latest FNET and NativeEthernet in prep for 1.54-beta5.

    The WebClient example seems to no longer work. I get this:



    Initialize Ethernet with DHCP:
    DHCP assigned IP...
  28. Replies
    4
    Views
    169

    I can't really help with Python code. But I did...

    I can't really help with Python code. But I did run it here on Ubuntu 18.04. As you can see in this screen capture after 1 minute, it runs perfectly fine when I test on Ubuntu 18.04, x86-64 bit.
    ...
  29. Replies
    14
    Views
    230

    Apple notarization, which is compulsory starting...

    Apple notarization, which is compulsory starting with Catalina, makes this sort of experimentation or editing anything inside the application bundle pretty dicey on MacOS. I recall the Arduino...
  30. Replies
    388
    Views
    6,890

    Maybe it's time to package up 1.54-beta5? I had...

    Maybe it's time to package up 1.54-beta5? I had hoped to play with MSC and bring it into USBHost_t36 and with FS/File interface, but maybe we need this now so everyone can easily sync up with the...
  31. Replies
    13
    Views
    196

    As this progresses, I'm imagining I will add...

    As this progresses, I'm imagining I will add functions to the FS class and code inside SD/SdFat and LittleFS specifically to support MTP. Eventually there will need to be some way for MTP to detect...
  32. Replies
    13
    Views
    196

    I believe you should use an array of pointers to...

    I believe you should use an array of pointers to the FS-derived instances, rather that just a single pointer to an array.

    (edit - crossposted with your reply....)

    In other words, instead of...
  33. Replies
    13
    Views
    196

    You should not need the chip select pin. The FS...

    You should not need the chip select pin. The FS derived class stores all the details it needs to access the hardware. If it even uses a chip select pin, that info is inside the media-accessing...
  34. Replies
    13
    Views
    196

    This is partially (maybe mostly) my fault. The...

    This is partially (maybe mostly) my fault. The FS class is very much beta at this point and still needs work....

    With that in mind, I believe the main problem is this line:


    FS sdx[1];
    ...
  35. Replies
    4
    Views
    169

    Are you using the Arduino Serial Monitor to view...

    Are you using the Arduino Serial Monitor to view the incoming data, or some other software?
  36. Replies
    2
    Views
    86

    Fixed (on this old AVR-specific page)...

    Fixed (on this old AVR-specific page)
    https://www.pjrc.com/teensy/gcc.html
  37. Replies
    5
    Views
    765

    I've added a link to this thread in the Teensy >...

    I've added a link to this thread in the Teensy > USB_MIDI > MIDI_names example. Hopefully it will help people find this info.
    ...
  38. Replies
    11
    Views
    359

    Here it is 22529 For photos at my...

    Here it is

    22529

    For photos at my workbench, I have 2 desk lamps with 60W bulbs that I position within about 1 foot of the item. I use a Nikon D5100 camera. Even then, I rarely manage to get...
  39. Replies
    14
    Views
    230

    But it is easy to make work, at least for initial...

    But it is easy to make work, at least for initial testing. Well, where "work" means the compiler args change as you wished... whether the libraries actually work and build a usable program is...
  40. Replies
    14
    Views
    230

    Probably simpler to just edit boards.txt (not...

    Probably simpler to just edit boards.txt (not platform.txt).

    Find this line (or the one corresponding to the board you're using - this is for Teensy 4.1)


    teensy41.build.flags.cpp=-std=gnu++14...
  41. Replies
    11
    Views
    359

    It's almost impossible to get a sharp close-up...

    It's almost impossible to get a sharp close-up photo having long depth of field without a tripod or magic arm or some other way to keep the camera still, especially with only ordinary indoor...
  42. Replies
    11
    Views
    359

    Those photos look like a genuine board, though...

    Those photos look like a genuine board, though they're a bit blurry.
  43. Replies
    388
    Views
    6,890

    I've added FILE_WRITE_BEGIN mode for FS open(). ...

    I've added FILE_WRITE_BEGIN mode for FS open().

    https://github.com/PaulStoffregen/cores/commit/5443bfd17949fed7cfd6e4b1f788fdfb3be48383
    ...
  44. Replies
    7
    Views
    145

    Maybe this diagram of the connector we use on the...

    Maybe this diagram of the connector we use on the audio shield and Teensy 3.5, 3.6, 4.1 can help?

    22511

    This is a top view where the SD card inserts from the right hand side with its pins...
  45. Replies
    388
    Views
    6,890

    All of this is already in the File API, though...

    All of this is already in the File API, though admittedly the truncate function was added only hours ago.

    Why should the API duplicate functionality like truncate() in the open() function?
  46. Replies
    388
    Views
    6,890

    One more detail is the definition of the "msd"...

    One more detail is the definition of the "msd" pointer. If you're designing code like MTP which is meant to work with filesystems, you should probably define the pointer this way:


    FS *msd =...
  47. Replies
    388
    Views
    6,890

    I want to be perfectly clear. This sort of code...

    I want to be perfectly clear. This sort of code will not be supported in Teensyduino 1.54.

    FS & File are an abstraction layer, not a "transparency" layer.



    Ok, I see where I went wrong. ...
  48. Replies
    388
    Views
    6,890

    The goal is abstraction, not transparency of the...

    The goal is abstraction, not transparency of the things we're trying to abstract!

    That sort of "transparent" is exactly the opposite of what File & FS are meant to accomplish.
  49. Replies
    388
    Views
    6,890

    This is exactly the wrong way to use the File...

    This is exactly the wrong way to use the File API. Code written in this manner won't be portable to LittleFS or other future filesystems!
  50. Replies
    388
    Views
    6,890

    Officially SD has only ever published 2 open...

    Officially SD has only ever published 2 open modes.

    Are there significant cases of programs open files in undocumented ways?




    I agree in principle. I'm pretty sure we need at least 1 more...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4