Skip to main content
Nata
Associate
July 15, 2020
Question

Hello all! This is my first post, I'd like to know if you could recommend a guide to start testing STM32 code? Like unit testing with mocks/stubs. Thank you

  • July 15, 2020
  • 2 replies
  • 1017 views

Any IDE recommendations? Customer is using IAR planing to use unity for unit test.

This topic has been closed for replies.

2 replies

Imen Ezzine
ST Employee
August 4, 2020

Hi Nata and welcome to the community :)

Give me an example of things you would like to test: functionality? timing response? debug and trace? etc

For the IDE recommendations, it depends on the personal taste I believe and the use.

For the STM32 products our clients are IAR and KEIL:

IAR has a better editor and compiler, but Keil has a much better simulator and debugger. I think if you are to go with ARM, Keil is a better solution, much more suited for ARM MCUs. Keil also offers advanced debugging tools. I find it with keil the code is well optimized, and the start up code is more complete and polished.

This doesn't mean that IAR is not suited for debugging and testing, but again it's up to the user's experience!

I hope this help.

-Imen

Pavel A.
Super User
August 4, 2020
Nata
NataAuthor
Associate
August 4, 2020

Thank you!