cancel
Showing results for 
Search instead for 
Did you mean: 

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

Nata
Associate II

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

3 REPLIES 3
Imen Ezzine
ST Employee

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

Thank you!