
ARM is complicated ...?

I decided to try to prove that this is far from the truth, and I made a scarf that is easier to make: 1 sided, 1 mandatory capacitor (it’s not necessary to have a stabilizer), 1 resistor, one 3.3V stabilizer, and finally the youngest STM32: STM32F100C4T6B - 16kb flash, 4kb SRAM, 48 legs, Cortex-M3 (!!!) with DMA, debug on the fly, 32 * 32 + 32-> 32 for 1 clock and all other joys for 28 rubles.


Schematic and wiring for Eagle - attached . However, do not swear at the MK symbol for the curve - I painted as I could - as before, I am looking for a complete library of STM32 chips.

Once again, I’ll emphasize that all this is really done at home, with an iron and an ordinary soldering iron (with adjustable temperature, not 200W of course). A 4-layer board is not needed, a soldering station with a hairdryer is not needed.
For programming, download the demo version of IDE keil (debugger / compiler / editor) - for small microns it works without restrictions (but I can’t give a direct link, look for it). We take the test program ready here, and it remains only to replace the code in main () (and change the settings file through the wizard so that the PA1 leg is the output and works from the internal generator - see the “Configuration WIzard tab below when editing the settings file”):
int main (void) {
unsigned int hash = 0;
int i = 0;
stm32_Init (); // STM32 setup
while (1) {
for(i=0;i<50000;i++)
hash=(hash*hash+1234567)/hash+hash+87654321;
GPIOA->ODR = (GPIOA->ODR & (~2)) | ((hash&256)?2:0);
} // end while
} // end main
Configure JLink: We install drivers for it, then in Keil: Flash-> Configure Flash Tools. On the Utilities tab, select JLINK, and click Settings. On the Flash Download tab, add the Programming algorithm "STM32F10x Low Density Flash".
Now we build the project, and in the menu we execute Flash-> Download, we reboot the board - and ... it works. And by the way, without departing from the checkout you can stop the program with a debugger, set breakpoints, see variables - everything is like in the best houses

Are you still buying 8-bit AVR-rki for 200 rubles? Then ARM comes to you!