HomeAbout UsContact Us

Common embedded firmware interview questions

By embeddedSoft
September 22, 2022
1 min read
Common embedded firmware interview questions

This article tries to list the commonly used embedded software interview questions asked to entry level and middle level job openings. This article will be updated with new questions as and when available.

  1. How an ISR is getting invoked during an interrupt trigger.
  2. Write a program in C to reverse bits in a 32-bit unsigned word.
  3. Implement modulo operator using bit-wise operators in C.
  4. Given an unsigned 32-bit word, an addition/subtraction field, the number to perform the addition or subtraction with respect to the addition/subtraction field and bit-mask with consecutive set-bits in the given bit-mask width. Need to write a C program to perform the addition/subtraction within only the given range as per the bit-mask. The computation should not modify the bits out side the bit-mask range on the number. Also, to make sure that an overflow condition should set all the bits in the bit-mask range and if the result of the computation underflow then the bits in the bit-mask region to be cleared.
  5. How does mutex works in RTOS.
  6. Implement Mutex_Lock() and Mutex_Unlock() in C.
  7. Explain CAN protocol from a software implementation perspective.
  8. Why is structure padding used in C. What would happen if there is no structure padding on a 32-bit machine.
  9. What are the operating modes in ARM Cortex M processors.
  10. Write a C program to swap the rows-to-columns for any square matrix.
  11. Write C program to implement queue data structure.
  12. Which is a lightweight interface; Mutex or binary semaphore.
  13. Why we use volatile keyword in embedded firmware. Explain the program execution behavior with respect to memory access with the volatile variable.
  14. How do you write a read-only register access variable in C given a hex number as the register address. Also, explain how can we access individual bytes as well as the entire 32-bit register in C efficiently.
  15. What would happen if one member of a structure is made static.


Previous Article
Embedded systems – An overview


Content editor

Related Posts

Embedded systems – An overview
Embedded systems – An overview
September 22, 2022
1 min

Quick Links

Advertise with usAbout UsContact Us

Social Media