J
J
JackBoner2017-05-18 22:39:31
Electronics
JackBoner, 2017-05-18 22:39:31

How to simulate STM32 microcontroller and electrical circuit?

There is a debug board STM32 L1 Discovery. I don't want to mess with breadboards yet. Suddenly, something will burn out. I would like to start working in simulation mode.
Of the programs known to me, only Proteus allows you to simulate microcontrollers in conjunction with an electrical circuit and devices. But in Proteus this MK is not supported.
Are there other alternatives where you can simulate an electrical circuit with a micro?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
L
LampTester, 2017-05-24
@JackBoner

The answer to the question is no. In general, full device simulation is a dead end: the more complex the circuit, the more unpredictable the effect of simulation errors on the result becomes, and then its value is lost.
Therefore, in fact, devices are usually developed as follows:
The "maximum" design for a complex device has been described above. In specific cases, some stages may be skipped or rearranged. For example, I most often start developing the firmware already with the assembled board, and test it directly in the hardware, and first I write the HAL (if it is supposed to be). Testing on a PC is required mainly when the firmware contains some complex algorithms that cannot be developed without thorough debugging and are not directly related to hardware (initially cross-platform).

E
evgeniy_lm, 2017-05-19
@evgeniy_lm

It looks like nothing. STM32 is serious stuff for serious people. About 5 years ago, whoever needed to buy a board for $ 150-300 and experimented. Even today, not every computer can emulate such a thing in real time, but 10 years ago it was not realistic at all, which is why all kinds of debug boards appeared. Now your board costs about $10 i.e. The entry threshold has fallen disproportionately, and such boards have appeared without problems for those who are afraid to burn them.
Start with a cheaper Arduino, when the fear wears off take this one. Believe me, the emulator and the real device are two big differences.

A
Alexander, 2017-05-21
@AlanDrakes

As far as I remember, none of the widely available PCB design programs (in particular, the same Proteus) can simulate 32-bit cores. It's no joke 4 GiB of internal address space, where even reading the address can do something with the periphery.
It's hard to simulate.
That's why - only real boards, or internal simulation in the IDE with a lot of restrictions (lack of an external circuit, in particular).

L
Leonid, 2018-09-06
@sled

STM32 simulation in Proteus 8.6

S
Sergey Litovko, 2022-04-01
@litovko

Use QEMU - https://www.youtube.com/watch?v=bS4j8VSeRrE

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question