Skip to main content
AJT
Associate III
February 27, 2020
Question

STM32 self-test library (testing GPIO, PWM ...)

  • February 27, 2020
  • 7 replies
  • 4624 views

Hi,

I'm wondering if there are any libraries developed by ST that test STM32 (and STM8) hardware (a library that can test if all GPIOs can be set/reset, if PWM is as accurate as expected, if ADC is ok too etc.)

Any clue ?

regards,

AJT

This topic has been closed for replies.

7 replies

waclawek.jan
Super User
February 27, 2020

I'm not intersted in this at all, but maybe https://www.st.com/en/embedded-software/x-cube-stl.html contains something useful for you.

JW

AJT
AJTAuthor
Associate III
February 27, 2020

Hmm i'm not sure about that. They talk about certifications and what i want to do is not about that (they seem to test CPU SRAM and flash "The software self-test library, X-CUBE-STL, is a software-based diagnostic suite for detecting random hardware failures in STM32 safety-critical core components comprising the CPU, SRAM, and Flash memory" but what i want to do is testing GPIO etc). What is more, I can't even download the software.

But thanks by the way !

AJT

waclawek.jan
Super User
February 27, 2020

What you describe appears to be too dependent on particular application (i.e dependent on how the mcu is connected to surrounding peripherals), so that's unlikely any library can be written in a flexible enough manner so that it would reasonably cover any possible usage case.

Prove me wrong.

JW

AJT
AJTAuthor
Associate III
February 28, 2020

No you are right but i was wondering if ST had developed one library for each board (or just for some boards) but it seems to be a no !

es131245
Associate III
February 27, 2020

Ive had few killed STM32F429i disco boards .

Ive had to upload the ST Demonstration project to be sure about it.

If you are using ST board, all of them have ST example projects.

Other wise make you own self check project

AJT
AJTAuthor
Associate III
February 28, 2020

I don't want to check if example projects are working but if all GPIOs are working

waclawek.jan
Super User
February 28, 2020

You never mentioned particular, ST-made boards, before!

I'm not ST and not going to develop such, just being curious - which board in particular are you interested in?

JW

PS. Mention this in the "wishlist" thread, once it will be set up for this year.

@Amel NASRI​ 

@Camilo LEMOS​ 

AJT
AJTAuthor
Associate III
February 28, 2020

In the title I just mentioned STM32 but I'm currently working on this : https://www.st.com/en/evaluation-tools/nucleo-f401re.html

But i could work with all STM32/STM8 MCU. And one day with RENESAS / NPX / TI MCU.

Piranha
Principal III
February 29, 2020

How can a PWM not be accurate? How do you imagine testing ADC without external analog reference?

AJT
AJTAuthor
Associate III
February 29, 2020

Well for some cases, external components will permits to test the board.

Piranha
Principal III
February 29, 2020

Yes, but the connections, signal levels, timings and functions to test are board/project specific and combinations are almost endless.

Better spend a time on writing a driver library, cooperative scheduler, software timers, configuration engine and such things as these will really boost your development abilities and speed. :)

es131245
Associate III
March 4, 2020

Some STMs have internal refs. (STM32F373 SDADC, have internal ref and self calibration algorithm)

Moreover even silicon pn junction can be used as termal dependant 0.6v ref