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

Search:

Type: Posts; User: dahollen

Search: Search took 0.00 seconds.

  1. I'm a retired programmer, so I take long periods...

    I'm a retired programmer, so I take long periods away from projects. I left this one in a 'page of design notes and some test code' state. The test code is included in this thread. I will pick the...
  2. Sounds like a very useful way to perform field...

    Sounds like a very useful way to perform field upgrades. I do not know much about the SD side, but it is certainly possible to perform 'partial' code replacements on the Teensy. Anything I write...
  3. So, to fix the erroneous data being read back...

    So, to fix the erroneous data being read back after flashing a Teensy 3.6, the code bus cache must be cleared. The following lines were added after flashing a phrase with a 3.6:

    //Invalidate...
  4. I have a clue as to why the read back of flashed...

    I have a clue as to why the read back of flashed code is incorrect. It is a cache issue. In the teensy core ResetHandler routine (in the mk20dx128.c file), called at powerup, is the following code:...
  5. 'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    I, too, am interested in performing 'Over the Air' firmware updates of the Teensy - except replace 'Over the Air' with CANBus, since I am placing the Teensy 3.6 in an automotive environment.

    I...
  6. Replies
    51
    Views
    49,230

    I clear the read fifo at the top of every txrx...

    I clear the read fifo at the top of every txrx call, before entering the write/read for loop.

    I also added this line after the SPI_WAIT call but before reading the fifo:
    while (!(SPI0_SR &...
  7. Replies
    51
    Views
    49,230

    I was receiving corrupted data, particularly the...

    I was receiving corrupted data, particularly the first received byte. The manual specifies the SPI module must be halted before clearing the receive fifo. Doing so fixed my problem. Here is an...
Results 1 to 7 of 7