cancel
Showing results for 
Search instead for 
Did you mean: 

Hwo to make simulation or HIL with stm32F407VET6 black board

toufik_iddou
Associate II

Hi community.

I'm working with stm32F407VET6 black board, and I need to simulate the project before implementing it in the real system. so, I need a software simulation of stm32F407xx or how to make it in hardware in the loop, I tried to search for a library in proteus, but I don't find one for F407XX.

thanks. 

1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

There is no simulator for STM32 because its complexity does not allow for a sensibly affordable solution.

Regards
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

9 REPLIES 9
Peter BENSCH
ST Employee

There is no simulator for STM32 because its complexity does not allow for a sensibly affordable solution.

Regards
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
SofLit
ST Employee

You need to contact Labcenter via this link: https://www.labcenter.com/contact/

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Andrew Neil
Evangelist III

@toufik_iddou wrote:

how to make it in hardware in the loop,


So have you done any research into how "Hardware In the Loop" (HIL) testing is generally done?

The name says it all, really: You take your hardware, and you put it in your test loop!

So you will need:

  1. Computer-controlled stuff to supply the test conditions to your hardware;
  2. Computer-controlled stuff to monitor the outputs from your hardware;
  3. Probably also some monitoring/instrumentation interfaces in your hardware
  4. Software to automate your test.

None of this is specific to STM32.

 

 

I'll explain to you my idea and tell me if I can do it.
I need to control an inverter with stm32F407VET6 in closed loop the stm32 take the V_out of the inverter as input and produce a PWM signal as output to control the inverter.
I made the circuit of the inverter with proteus, but I don't have STM32F407 in proteus.
so, my idea is to connect my real stm32 and make a communication between them and proteus (I think that is the HIL)
am I right??


@toufik_iddou wrote:

 my idea is to connect my real stm32 and make a communication between them and proteus (I think that is the HIL)


Yes, that would indeed be "Hardware (your actual STM32) In your test Loop" - HIL

As for what facilities Proteus has to achieve that, you would need to study the Proteus documentation and/or contact Labcenter about that - it is nothing to do with ST:

https://www.labcenter.com/contact/

https://www.labcenter.com/help-center/

https://www.labcenter.com/tutorials/

https://support.labcenter.com/forums/

 


@toufik_iddou wrote:

 the stm32 take the V_out of the inverter as input ...


So you will need something to provide that voltage input to your UUT (Unit Under Test) - perhaps a controllable power supply, or a voltage-output DAC controlled from your test system (ef, Proteus).

 


@toufik_iddou wrote:

... and produce a PWM signal as output to control the inverter.


And you will need something else that can detect that signal, and feed it back into your test system.

 

Again, you're going to have to study the Proteus support resources (documentation, tutorials, etc) and/or contact Labcenter to find out what Proteus actually supports for this kind of stuff.

This is not a Proteus support forum.

 

 


@toufik_iddou wrote:

 the stm32 take the V_out of the inverter as input and produce a PWM signal as output 


To be honest, that sounds like a fairly trivial thing to test manually - you simply apply a voltage to the UUT, and observe the PWM output on an oscilloscope.

Doesn't really seem to justify all the cost & effort of setting up a HIL system?

the problem is that I don't have the inverter hardware and my Controle is in closed loop so I need to collect the current and voltage from inverter output and apply a deferent charge (linear and non-linear) with deferent conditions.

Adopt a Unit Test approach:

  1. Test the STM32 manually, to confirm that it performs as requires.
  2. In your simulation, the STM32's function is just a "black box" performing as required.

 

Have you spoken to Labcenter yet about whether Proteus can even do the necessaries for such HIL testing?

toufik_iddou_0-1713955099960.png