• How to get Call Stack from stack data.
    Note: This was originally posted on 23rd January 2009 at http://forums.arm.com Hi everyone.    Here is a question that puzzled me a long time. if I get stack data(HEX data),  anyone konw that how to get...
  • Is there a more efficient way to swap two bytes?
    I am targeting a Cortex-M0 processor, and am new to Thumb assembly available on the M0. Is there more efficient way to swap two bytes in a 32-bit word (in this example, the middle two bytes)? Thanks!...
  • [CM4] Best general way to handle a hardfault/lockup
    Over the past few months I've been doing a lot of work on a Kinetis K24 processor, which is a Cortex-M4, running the MQXLITE RTOS. It also has a couple other SDKs built in and a surprising level of complexity...
  • Best way to safely check if virtual address exists
    Hello, I'm trying to, given a virtual address, quickly check if it exists (if it is mapped) to know if I can access it in a safe way, without generating an exception. I'm currently using the AT instruction...
  • Best way run driver code in privilege mode?
    I want to write some drivers that run in privilege mode. For example if I have a UART write function I want to make it easy to wrap the write function such that it runs in privilege mode. My thought was...