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...
Type: Posts; User: PaulStoffregen
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...
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.
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...
Read Joseph Yiu's book!
https://www.amazon.com/dp/0124080820
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.
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...
Are you actually using Teensy hardware?
Here's that link again.
https://github.com/PaulStoffregen/cores/blob/5cecdee933936dc4a2c2fdb545f3697d0552428f/teensy3/pins_teensy.c#L103
Use this much simpler code!
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
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,...
"##" 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...
Very old versions had much simpler (but lower performance) attachInterrupt code.
Here is a link to the oldest code on github:
...