Until now I was always using Arduino Nano Boards, which had the proper bootloader installed so that programming via the ArduinoIDE was easy and fast. Just plug it in via USB, wait for Windows to install the driver, open ArduinoIDE and there you go.
Now I have a project which demands more powerful and versatile peripheral devices via SPI and CAN. Therefore I chose a STM32 as an ARM microprocessor.
Now what's confusing me:
- Somehow you don't Plug'n'Play with those, at least on self made custom PCBs. There are many applications I found that used a SWD connection via a "ST-Link" (is this the programmer/"bridge" establishing the connection between PC and actual microprocessor?).
Can I program the STM32 easily by pluging it to a ST-Link and program it via any ARM-compatible IDE like mBed for example? (Like I would with an Arduino and ArduinoIDE?)
- Most of the microcontroller do have a USB interface onboard, where you can directly connect USB_DM and USB_DP with a USB port. Can I also program a STM32 via the USB interface by connecting it directly to a PC?
Would it be recognised by a PC and IDE like a Arduino would or are there other steps I would have to do in order to have a ""Plug'n'Play"-like programming with the STM32 via USB?
Some explanations on how to programm those ARM microprocessors (like the STM32) would be really helpful to me, because I get too confused with all the programming methods.