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

Search:

Type: Posts; User: damiend

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    539

    Design of Print.printf

    Yet another printf() post ;-)

    I've been looking into Teensyduino's Print.printf because I'm implementing a Tee Print class with multiple outputs and I wanted to make sure that the printf...
  2. Are the TLC5948s and the NRF24 on separate SPI...

    Are the TLC5948s and the NRF24 on separate SPI busses already? If not, and while this would be a fascinating problem to debug, you could potentially make your life a lot easier by patching your board...
  3. Re: the bite sensor, 10 years ago you could buy a...

    Re: the bite sensor, 10 years ago you could buy a cheap sample pack of Quantum Tunnelling Composite (QTC) rubber pads on a number of educational/science online stores. These were great because they...
  4. This seems to use what is known as 10-bit...

    This seems to use what is known as 10-bit addressing ("2-byte read" in the manual). I don't think any of the standard Arduino or Teensy libs support that!

    However the sensor can be reconfigured to...
  5. Otherwise, this reminds me that the I2C...

    Otherwise, this reminds me that the I2C implementation does a similar sort of bit banging to rescue a stuck bus. Maybe this can give you some inspiration:...
  6. Replies
    4
    Views
    516

    If you want to go low-level, you can check the...

    If you want to go low-level, you can check the manual here: https://www.pjrc.com/teensy/IMXRT1060RM_rev2.pdf

    Also study the existing libraries and the core source code:...
  7. Replies
    1
    Views
    416

    Hardfault handlers on Teensyduino 1.54

    I found that after upgrading to Teensyduino 1.54 my custom hardfault handlers did not get called any more. Here's the result of my investigations for future reference.

    The cause is this commit....
  8. Replies
    94
    Views
    16,126

    Ah yes, I posted in the wrong thread! Correct. I...

    Ah yes, I posted in the wrong thread!
    Correct. I get the 8 second pause and restart. How do I get my custom fault handler running again?
  9. Replies
    94
    Views
    16,126

    On platformio, after upgrading to...

    On platformio, after upgrading to framework-arduinoteensy 1.154.0, I can no longer set a HardFault handler.

    Minimal example:



    FASTRUN
    static void hardfault_handler_isr(void) {
    ...
  10. Replies
    24
    Views
    1,939

    No I'm not -- I thought about using it, but there...

    No I'm not -- I thought about using it, but there was no documentation and I wasn't sure what the units for the timeouts should be. There was also quite a lot of code in there and I got worried that...
  11. Replies
    24
    Views
    1,939

    For reference, I've managed to make the RTWDOG...

    For reference, I've managed to make the RTWDOG interrupt work.

    My mistake was that I had forgotten to call
    NVIC_ENABLE_IRQ(IRQ_RTWDOG);

    With this enabled, the interrupt fires and I can...
  12. Replies
    24
    Views
    1,939

    This is working well now for most of my state...

    This is working well now for most of my state that I set from the control loop.

    There's just one variable that I'd like to write from the RTWDOG interrupt, and somehow can't seem to set -- either...
  13. Replies
    24
    Views
    1,939

    I'm not using the watchdog interrupt to set the...

    I'm not using the watchdog interrupt to set the DMAMEM variable.

    I solved my problem -- turns out I needed to call
    arm_dcache_flush(&counter, sizeof(counter)); for the value to persist. I have...
  14. Replies
    24
    Views
    1,939

    Strange: the DMAMEM trick worked for a while, and...

    Strange: the DMAMEM trick worked for a while, and now not any more.
    Even with a minimal, clean sketch the value resets every time:



    DMAMEM unsigned int counter;

    void setup() {
    // put...
  15. Replies
    24
    Views
    1,939

    Thanks, that looks exactly like what I need!

    Thanks, that looks exactly like what I need!
  16. Replies
    24
    Views
    1,939

    My application requires a watchdog timeout of 5...

    My application requires a watchdog timeout of 5 milliseconds, so I can't use the other ones.
    It's part of the control loop for a micro-hot plate that runs at 1KHz.
  17. Replies
    24
    Views
    1,939

    I'm going to try this, but I'm worried that the...

    I'm going to try this, but I'm worried that the delay is too short for EEPROM writes this is RTWDOG/WDOG3, so the interval between interrupt and reset is fixed at 255 bus clock cycles.

    1000...
  18. Replies
    24
    Views
    1,939

    Non-volatile data for debugging RTWDOG reset?

    I'm trying to debug the causes of a RTWDOG reset by saving some state to non-volatile memory.
    A single bit would be useful, 13 bytes would be perfect.

    Does the Teensy4 have any memory that
    -...
  19. Replies
    475
    Views
    166,444

    Any thoughts on setting a very large time slice...

    Any thoughts on setting a very large time slice to do cooperative multi-tasking with TeensyThreads?

    I needed yield-based cooperative multitasking that works on both Teensy 3 and Teensy 4, and so...
Results 1 to 19 of 21