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

Search:

Type: Posts; User: Bill Greiman

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    21
    Views
    6,328

    There are lots of microsSD extenders, converters...

    There are lots of microsSD extenders, converters and sniffers that I use to look at signals while debugging. Look for something like this on ebay.

    23831

    They tend to be about $3.50

    I find...
  2. Paul, I stopped development of 16-bit Unicode...

    Paul,
    I stopped development of 16-bit Unicode when I discovered how hard it was to use. I already have decided that the next attempt would be UTF8 based.

    The case problem is next. FAT16/FAT32...
  3. Replies
    6
    Views
    163

    I want providers of Arduino compatible systems to...

    I want providers of Arduino compatible systems to support standard Arduino functions. When I hit The Board Manager Tab I see over thirty board support packages. Not to mention things like...
  4. I wrote SdFat with the intention of better...

    I wrote SdFat with the intention of better Unicode support but the underlying Arduino system make this difficult. Even supporting 8-bit as opposed to 7-bit ASCII is difficult since this require ANSI...
  5. Replies
    6
    Views
    163

    I know about digitalWriteFast(). My question...

    I know about digitalWriteFast().

    My question is about digitalWrite(). I am trying to write simple examples for all Arduino boards and Teensy 4.1 has this strange digitalWrite() property.

    I...
  6. Replies
    6
    Views
    163

    Teensy 4.1 digitalWrite question.

    I have been using digitalWrite() with a scope to time various operations in a new version of ChibiOS/RT. I first characterized digitalWrite() timing with this program:


    void setup() {
    ...
  7. Release of SdFat is not related to Teensy. I...

    Release of SdFat is not related to Teensy. I like playing with Teensy but the overwhelming number of users are on other boards. Most of the mods in 2.0.5 will be for other systems.

    I will be...
  8. I have posted the mods to the Teensy SDIO driver...

    I have posted the mods to the Teensy SDIO driver that allow fast simple loggers and the ring buffer for use in SRAM_L/SRAM_U on Teensy 3.6.

    Try the TeensyDmaAdcLogger and TeensySdioLogger...
  9. I posted a new version of SdFat-beta with the...

    I posted a new version of SdFat-beta with the drive strength mod. It also has two examples that demonstrate new features in the Teensy SDIO driver.

    Try the TeensyDmaAdcLogger and TeensySdioLogger...
  10. I posted SdFat-beta...

    I posted SdFat-beta with the new Teensy SDIO driver and two examples that demonstrate fast data logging using the new driver.

    Try the TeensyDmaAdcLogger and TeensySdioLogger examples.
  11. I have not updated UsbFat for six years. I have...

    I have not updated UsbFat for six years. I have been meaning to add an example of USB storage to the current SdFat. This example shows how to use any block device with SdFat.

    The driver uses a...
  12. I set the drive strength to 7 and looked at the...

    I set the drive strength to 7 and looked at the SD CLK signal with a SD sniffer board. It is really being driven. The noise I made with scope probes only caused a data error once.

    I suspect the...
  13. I am testing with 7 for the soon, I hope, release...

    I am testing with 7 for the soon, I hope, release of the next beta. I have had lots of setbacks with fixes for cards that are very popular.

    I am feeling good about mods to the Teensy driver. On...
  14. The RingBuf class can be used in an ISR. I did a...

    The RingBuf class can be used in an ISR. I did a ping-pong ADC DMA test with Teensy 3.6 over-clocking the ADC and am able to log 6MB/sec.

    Here is a link to that demo.
    ...
  15. I have an example using SdFat for USB mass...

    I have an example using SdFat for USB mass storage with a Mega ADK. I once posted "UsbFat" on github but found almost no interest. I think it was too early and the ADK was never popular.
  16. Unfortunately the source buffer comes from the...

    Unfortunately the source buffer comes from the Print class and the destination buffer alignment depends on how many bytes have been written to the file.

    I tested the above on a demo of a data...
  17. Replies
    3
    Views
    191

    There is another possible solution. SdFat keeps...

    There is another possible solution. SdFat keeps an index that is used to update the directory entry. This can be used to open files.

    Long ago I wrote an example using open by index to test the...
  18. This seems to work. It is efficient except at...

    This seems to work. It is efficient except at the 0X20000000 boundary.

    // Tensy3 memcpy
    inline bool is_aligned(const void* ptr, uintptr_t alignment) {
    auto iptr =...
  19. Is there any way to force an array to be in Teensy 3.6 SRAM_U?

    I have written a ring buffer class for buffering data during SD busy time. It works well if I use it for buffering full sectors. I have declared the buffer array like this. Size is a multiple of 512...
  20. Could you tell me what driver strength mods you...

    Could you tell me what driver strength mods you think would work and I will include them in my tests. I have a number of Tennsy 4.1 and 3.6 boards running tests on my new Teensy driver mods.

    I am...
  21. Replies
    3
    Views
    191

    The problem with scanning a directory backwards...

    The problem with scanning a directory backwards is that a file has an variable number 32 byte entries and they are designed to be scanned in the forward direction. For example in exFAT the set count...
  22. You need to test any driver mod with files of at...

    You need to test any driver mod with files of at least 8 GiB on the popular SD cards from Samsung, Sandisk and the new Kingston Canvas Plus. I also test on older cards. You need to use a variety...
  23. SdFat DMA over-clocked 3 Msps ADC logger

    I have been working on new features for SdFat. Two are useful for Teensy 3.6 and Teensy 4.1.

    The first is a ring buffer that is tightly integrated with SdFat and can be called from an ISR. As a...
  24. Replies
    5
    Views
    2,962

    Generally you can use libraries in the usual way....

    Generally you can use libraries in the usual way. There can be problems since libraries were not written for a multi-threaded environment.

    Here are some of the problems I have seen.

    You must...
  25. Replies
    39
    Views
    8,354

    All of the SdFs features/code are now in...

    All of the SdFs features/code are now in SdFat-beta. I will not be updating SdFs in the future.

    I will probably add some support for USB drives. I have an example using an Arduino ADK with a...
  26. Replies
    39
    Views
    8,354

    Here is one more test using SPI1, the second SPI...

    Here is one more test using SPI1, the second SPI port.

    I made a test setup with pogo pins connecting to pin 26, MOSI1, and pin 27, SCK1, on the Teensy 4.0 Back Side.

    I used pin 0 for CS1 and...
  27. Replies
    39
    Views
    8,354

    Here is a link ...

    Here is a link to a benchmark that compares uSDHC SDIO, dedicated SPI, and shared SPI on Teensy 4.0 with 512 byte transfers.

    Here is a summary:

    uSDHC, about 22 MB/sec read/write.

    Dedicated...
  28. I recently released SdFat-beta...

    I recently released SdFat-beta with support for the Teensy 4.0 uSDHC pins.

    Here are results for the bench example using uSDHC. About 22 MB/sec read write.


    FILE_SIZE_MB = 5
    BUF_SIZE = 512...
  29. Replies
    278
    Views
    38,032

    I suspect it's mainly for security/reliability. ...

    I suspect it's mainly for security/reliability. The architecture is similar to ARM processors with TrustZone. NXP calls it their "signature EdgeLock security solution".

    The idea is sometimes...
  30. Replies
    278
    Views
    38,032

    I really like this list. For the SD, make...

    I really like this list.

    For the SD, make UHS-I support possible. Here are some requirements from this post.

    The uSDHC supports DDR50/SDR50/SDR104 with 1.8V signaling. I can put an SD in 1.8V...
  31. Replies
    129
    Views
    17,453

    Modern uSD cards can have large current pulses. ...

    Modern uSD cards can have large current pulses. 512KB flash pages are common and write times must be fast to achieve 100 MB/sec rates. so large pulses can occur.

    Here is the spec for for max...
  32. Replies
    5
    Views
    2,962

    ChibiOS/RT RTOS for Teensy 4.0.

    I have updated the ChRt library to release 19.1.3 of ChibiOS and added support for Teensy 4.0.

    Release 19.1.3 is about two years newer than the version I used in the last update of ChRt. There...
  33. T4 - Correct Way to Connect SVC Handler to Interrupt?

    I am porting the ChibiOS RTOS to T4 and need to use the SVC Call vector. Here is the code I am currently using for SVC_Handler and periodic tick.


    static void tick() {
    CH_IRQ_PROLOGUE();
    ...
  34. Replies
    39
    Views
    8,354

    I won't be implementing faster SD modes. T4...

    I won't be implementing faster SD modes. T4 can't support 1.8V signaling. See this.
  35. T4.x with SD socket and 1.8V signaling?

    Looks like fast SD modes are impossible with T 4.0. It would be great if a future version of of T 4.x with a builtin SD supported 1.8V signaling.

    The uSDHC supports DDR50/SDR50/SDR104 with 1.8V...
  36. Replies
    39
    Views
    8,354

    If begin(BUILTIN_SDCARD) works with SD.h on T4...

    If begin(BUILTIN_SDCARD) works with SD.h on T4 then begin(SdioConfig(FIFO_SDIO)) or begin(SdioConfig(DMA_SDIO)) should work with SdFat-beta. The first form is usually fastest.
  37. Replies
    39
    Views
    8,354

    In SD.h Paul defined BUILTIN_SDCARD as 254 to...

    In SD.h Paul defined BUILTIN_SDCARD as 254 to indicate SDIO.

    SD.h has few options and is based on a version of SdFat that I wrote over ten years ago.

    I kept compatibility with sd.begin(csPin)...
  38. Replies
    39
    Views
    8,354

    I experimented with Win10 formatter. If you...

    I experimented with Win10 formatter. If you totally erase a card, it formats the card GUID instead of mbr and is unusable. If the card is mostly OK, it uses the existing layout. Other cases give...
  39. Replies
    39
    Views
    8,354

    It looks like you have a version 1.x of SdFat. ...

    It looks like you have a version 1.x of SdFat. SdFat-beta needs to be in a folder named SdFat and must replace the version 1.x of SdFat.

    This line is unfortunately near rhe bottom of the ...
  40. Replies
    39
    Views
    8,354

    How did you format your card? It doesn't seem to...

    How did you format your card? It doesn't seem to have the standard layout. The SD Formatter does a format that matches the card's flash layout. This allows update of the two FAT tables to be...
  41. Replies
    39
    Views
    8,354

    SdFat SDIO for Teensy 4.0

    I have posted SdFat 2.0.0-beta.3 on GitHub. It supports SDIO on Teensy 4.0.

    It has slightly faster read/write performance on T4 than T3 for larger transfers. This may improve in the future.
    ...
  42. Replies
    23
    Views
    2,913

    No need to enable the debug prints unless it...

    No need to enable the debug prints unless it fails again.
  43. Replies
    23
    Views
    2,913

    If you get an error print please add these...

    If you get an error print please add these additional changes.

    In SDTest.ino add this routine:


    void dbgSdError() {
    if (SD.sdErrorCode()) {
    SD.errorPrint(&Serial);
    while (true) {}...
  44. Replies
    23
    Views
    2,913

    I downloaded the above files. I don't have the...

    I downloaded the above files. I don't have the WIZ850IO so I disabled the section, from about line 83 - 98 of SDTest.ino and change the SD CS for the T4 breakout.

    I ran SD.h for about 300 files...
  45. Happiness - New Cable Fixed Problem

    New cables arrived from Digi-Key. I put the T4 on stacking headers to avoid the kink.

    17557

    Tried Paul's SD.h on SDIO and it worked.


    Initializing SD card...Wiring is correct and a card is...
  46. FFC-8P to 2.54 Through Hole

    I ordered these FFC adapters.

    https://www.amazon.com/SUKRAGRAHA-Connector-Adapter-2-54mm-Through/dp/B07T7FCBVS

    It would be great if Paul would sell a T4 with the FFC connector.

    A little...
  47. My cable had an almost 90 degree sharp bend in...

    My cable had an almost 90 degree sharp bend in the blue stiffener right at the connector. I ordered lots of cables so I will try to do a gentle bend and keep the Pogo pins.

    The new SdFat-beta...
  48. I think I see the problem. Its the cable. The...

    I think I see the problem. Its the cable. The kink in the cable cracked the foil. The kink was extreme and in the blue stiffener.

    When I removed the T4 and pinched the cable flat, the ends of...
  49. I see this is a known problem. ...

    I see this is a known problem.

    https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=211858&viewfull=1#post211858

    You can't plug the T4 into it's socket without a bend in the stiff...
  50. I am using the the SDIO socket to develop an fast...

    I am using the the SDIO socket to develop an fast SDIO driver for SdFat.

    This socket works intermittently when I remove the T4 from its connector and pinch the FFC ribbon cable's blue area...
Results 1 to 50 of 294
Page 1 of 6 1 2 3 4