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

Search:

Type: Posts; User: darrenji

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    278

    If I use EEPROM.update() in a loop to write one...

    If I use EEPROM.update() in a loop to write one byte at a time instead of EEPROM.put() to write the whole data structure, (so far, after 50 attempts) I don't see the corruption.
  2. Replies
    14
    Views
    278

    Are there any restrictions on how to use the...

    Are there any restrictions on how to use the EEPROM library? I've looked at the examples and the reference docs. Can I treat the storage as random byte addressable (i.e. I can write to any location...
  3. Replies
    14
    Views
    278

    the apparent bug manifests after a power cycle. ...

    the apparent bug manifests after a power cycle. So the only steps required are to flash onto a TeensyLC and cycle the power a few times while looking at the serial monitor.
  4. Replies
    14
    Views
    278

    Here's an even simpler version. It just uses a...

    Here's an even simpler version. It just uses a byte array instead of the more elaborate array of structs.




    #include <EEPROM.h>


    #define PRESET_VERSION 3
  5. Replies
    14
    Views
    278

    p.s. this happens for me roughly every 3-5 power...

    p.s. this happens for me roughly every 3-5 power cycles.
  6. Replies
    14
    Views
    278

    OK I finally have narrowed it down to a trivial...

    OK I finally have narrowed it down to a trivial example that demonstrates the problem.

    My test program writes to emulated EEPROM a preset format version number (3) at address zero. This only...
  7. Replies
    14
    Views
    278

    Understood. I've written a lot of interrupt...

    Understood.
    I've written a lot of interrupt code over the years for my day jobs, so I feel relatively confident that I'm not doing anything obviously stupid/crazy, but there's still room for...
  8. Replies
    14
    Views
    278

    Is it theoretically possible that a trivial...

    Is it theoretically possible that a trivial interrupt (like a button press or encoder turn that just increments a variable and returns) could bork the EERPOM.put()?
    Should I be disabling interrupts...
  9. Replies
    14
    Views
    278

    Ok cool, thanks Paul. It was happening to me all...

    Ok cool, thanks Paul. It was happening to me all afternoon yesterday, and today I'm having a hard time reproducing reliably. Will keep at it.
  10. Replies
    14
    Views
    278

    I'll work on a simplified sketch and provide more...

    I'll work on a simplified sketch and provide more details on the extent of the corruption this afternoon.

    How much beyond the affected one byte is corrupted?



    I tried using 4 bytes for the...
  11. Replies
    14
    Views
    278

    TeensyLC EEPROM emulation

    Hi,

    I'm seeing an issue where every 3-5 times I re-flash the Teensy, the data in the emulated EEPROM appears to be getting corrupted.
    I'm saving a 1 byte version number at address zero, and an...
  12. If I move the Encoder declaration inside of...

    If I move the Encoder declaration inside of loop() it works fine.
    This is not really standard Arduino style though eh? All the sketches I've seen declare everything at the top of the file.

    ...
  13. Hey Paul, so this worked fine when I made the pin...

    Hey Paul, so this worked fine when I made the pin an output, but I can't get pin 12 to work with Encoder.h. I had both my encoders working fine, but because of board trace routing, I ended up having...
  14. Awesome! Thank you!

    Awesome! Thank you!
  15. TeensyLC SPI, does hardware require MISO?

    Is it possible to tell the SPI hardware to not use a MISO pin so I can use it for GPIO?
  16. Yeah, is hard to say much with only one data...

    Yeah, is hard to say much with only one data point. If it happens again I'll report back.
  17. Yep. It has been working fine since I first...

    Yep. It has been working fine since I first installed (2-3 weeks). This morning I got an "error uploading code" from Teensyduino... I retried a few times (clicking the upload button in Teensyduino)...
  18. teensy_serialmon crashed my Mac (Catalina)

    panic(cpu 7 caller 0xffffff801aa469aa): Kernel trap at 0xffffff801aeab953, type 14=page fault, registers:
    CR0: 0x000000008001003b, CR2: 0x0000000000000018, CR3: 0x000000031a62c23d, CR4:...
Results 1 to 18 of 18