Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 3 months ago.
How to perform direct register accesses?
For a class I am in, we must program the K64F board using direct register accesses; that is, no high-level libraries.
Technically I could open the reference manual and look up the addresses of each and every register I need to configure, but is there a better way?
When using Kinetis, there is a file called MK64F12.h which has macros for all the register accesses. However, it is part of a bigger library and impossible to use by itself.
How could I do baremetal (i.e. direct register access) programming using the mbed compiler?
Question relating to:
2 Answers
7 years, 3 months ago.
I believe you can still use macros in the MK64F12.h header file.
I'm not sure how to use this. I tried importing, but it still doesn't recognize the register names in my code (gives me undefined identifier errors). How would I use this file?
posted by 14 Feb 20177 years, 3 months ago.
This discussion may help you ;)
https://developer.mbed.org/forum/mbed/topic/2866/
Get Real C9020-562 Exam Questions Answers Dumps with authentic study material. We provide best study scheme and give 100% passing Guarantee. Our C9020-562 Braindumps are testified by the experts. https://www.openlearning.com/courses/c9020-562-practice-test
posted by 28 Sep 2017