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

Search:

Type: Posts; User: PaulStoffregen

Search: Search took 0.02 seconds.

  1. Replies
    69
    Views
    17,215

    Back in msg #36...

    Back in msg #36 you said this was just for fun learning.



    Now you're asking for help specific to the IAR software.



    So I ask, did you actually buy the IAR software "only for the pleasure...
  2. Replies
    69
    Views
    17,215

    Maybe best to give this a rest for a couple...

    Maybe best to give this a rest for a couple weeks? You really need to get Yiu's book to learn these finer points of the ARM Cortex-M architecture.
  3. Replies
    69
    Views
    17,215

    Pre-defined weak linked names are assigned in...

    Pre-defined weak linked names are assigned in kinetis.h and they are used in mk20dx128.c. The intended method is to simply create a function with the same name as used in kinetis.h, because the...
  4. Replies
    69
    Views
    17,215

    Read Joseph Yiu's book! ...

    Read Joseph Yiu's book!

    https://www.amazon.com/dp/0124080820
  5. Replies
    69
    Views
    17,215

    Is this a student project? Perfectly ok if it...

    Is this a student project?

    Perfectly ok if it is... we can help you better if we actually understand what you're trying to accomplish.
  6. Replies
    69
    Views
    17,215

    Much of the info about how ARM Cortex-M4...

    Much of the info about how ARM Cortex-M4 interrupt vectors really work is not written in the datasheets. It's published in this book.

    https://www.amazon.com/dp/0124080820

    The info is also...
  7. Replies
    69
    Views
    17,215

    Are you actually using Teensy hardware?

    Are you actually using Teensy hardware?
  8. Replies
    69
    Views
    17,215

    Here's that link again. ...

    Here's that link again.

    https://github.com/PaulStoffregen/cores/blob/5cecdee933936dc4a2c2fdb545f3697d0552428f/teensy3/pins_teensy.c#L103

    Use this much simpler code!
  9. Replies
    69
    Views
    17,215

    https://stackoverflow.com/questions/201101/how-to-...

    https://stackoverflow.com/questions/201101/how-to-initialize-all-members-of-an-array-to-the-same-value

    https://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Designated-Inits.html
  10. Replies
    69
    Views
    17,215

    In the new code, there are 5 "isr_table" arrays,...

    In the new code, there are 5 "isr_table" arrays, at lines 154-159. They're static arrays, basically the same as if you create an array of integers.


    int myarray[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9,...
  11. Replies
    69
    Views
    17,215

    "##" is the concatenation operator. Details...

    "##" is the concatenation operator. Details here.

    https://gcc.gnu.org/onlinedocs/cpp/Concatenation.html

    Best to compare the new and old code side-by-side. It's creating the ISR function names...
  12. Replies
    69
    Views
    17,215

    Very old versions had much simpler (but lower...

    Very old versions had much simpler (but lower performance) attachInterrupt code.

    Here is a link to the oldest code on github:
    ...
Results 1 to 12 of 12