Hello all,
I'm an experienced C++ programmer but very beginner to the world of embedded. My intention is to use modern C++ for embedded programming especially on ARM MCU. As my first hands-on experiment, I need to start with a Blue Pill and make its LED blink. Sadly, due to the hard situation in the place I live in, finding even such an simple board can be difficult. I'm not sure this is the right place on the site to ask my questions in this regard or not, but I hope so. I've got two questions:1) Is there any popular emulator that can properly emulate an MCU like Blue Pill, Black Pill or lower/higher models so that I can run my C++ program and observe the results on it? For instance, to see an LED blinking? If so, what's that good emulator, please? I've got two machines to install that emulator software on: Windows, and Linux.
2) What're the advantages and disadvantages of using such an emulator versus having real boards for that purpose, please?
Thanks beforehand.
That table refers to the FVPs provided in the MDK package itself.
OK. I will be completely careful.More questions for the time I will start using it, of course in a new thread. :)Thanks so much for your time and help. Hope I will have a nice experience in the world of embedded programming. :)
I wouldn't have called USB leads "related to embedded".
No, you don't need to attach anything to those pins; they are available for expansion - but not needed for standalone use.
You do need to be careful, though, not to short them out; eg, don't stand it on a conductive metal surface.
No I have nothing related to embedded and am just about to start as I said. Sorry to ask this again, apart from the board itself and the mini USB cable don't I need any other stuff? The board has a series of copper jags/teeth on both sides on the top. I assume something should be attach to them to make use of a feature of the board. Am I mistaken?
Yes, of course you will need a USB cable - I assume you already have such things.
Make sure you have the correct one, though: many (most? all?) of the Nucleo-64 board have mini - not micro - USB
Don't I even need a USB cable to be able to run the C++ projects I will write by my PC onto the board!?
For starters, I think the Nucleo should be adequate on its own: you have an LED to blink, a button to press, and the virtual COM port for serial IO - that should be plenty to be getting on with...
That'll get you through the first 6 steps here: https://www.avrfreaks.net/comment/1138166#comment-1138166
With that foundation, you should have enough understanding to know where you want to go next
OK, I will go for NUCLEO-F411RE and I assume its preference over Blue/Black Pill apart from many extra features it brings us, is that working on it for me as a beginner is simpler than on the Pills and I can rely on it (NUCLEO-F411RE) for a longer time for many other embedded programming tasks in the future as well. Right? The next question, as any starter may encounter, is that, what other peripherals am I better to purchase with the board (NUCLEO-F411RE)? I mean things like a breadboard, cables, etc.
Ary said:Is STM32F411 (Black Pill) that different from that Nucleo board, please?
First thing to understand is that STM32F411 is just the name of the chip (actually, a family of chips):
https://www.st.com/en/microcontrollers-microprocessors/stm32f411.html
There is a Nucleo board with an STM32F411 chip on it:
www.st.com/.../nucleo-f411re.html
For "Black Pill", I assume you mean this:
https://hobbycomponents.com/st-micro-electronics/1057-stm32f411-black-pill-development-board
Key things which the Nucleo gives you that the BlackPill hasn't:
See: https://www.avrfreaks.net/comment/3097061#comment-3097061 - I really wouldn't recommend the Black or Blue pill for a beginner to learn on (fine once you're past that stage)
Another advantage is that the Nucleo has the Arduino headers - so you can just pop on an Arduino shield, if you want.
ST also make a load of shields to fit Nucleo boards.
Note that I am not affiliated to or sponsored by ST in any way; also, as noted in that linked thread, pretty much all the Big Name manufacturers have similar low-cost development/evaluation boards
Ronan Synnott said:We have now also changed it such that it works with all MDK editions
that's good - needs an update to the 'Compare MDK Editions' page, then:
Hi Ary, perhaps it is best to explain what you are trying to achieve. If it is simply to program boards with limited awareness of what is going on 'under the hood', then there are a number of programs out there for these... for example Arduino (of which Black Pill is an example), mbed, or Raspberry Pi Nano.
If you are looking at lower level programming, for example bringing up an RTOS, or at-the-metal programming, then boards such as Nucleo make more sense.
I wrote you a reply but I don't know why it's been deleted! :|Thank you for your answer. Is Nucleo board that different from a Black Pill (STM32F411) for which there're step-by-step tuts on the STM website: https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-step-by-step.html on how to get started? Of course both boards are STM32, so the tuts may work for both.If you still recommend a Nucleo board, what model of that is suitable for me, please?I need a rather cheap model so that I can rely on it for various projects from blinking an LED to a little higher level ones.
it can run standalone. We have now also changed it such that it works with all MDK editions (not 100% sure if it works with 'Lite').
but don't you still need MDK Pro to use it?
Hi Andy, good point. You can in fact get a Cortex-M55 FVP for free from here (Corstone-300)developer.arm.com/.../arm-ecosystem-fvps