Downloading webside content in C language

To download something from webside in C language, you can use curl library.
In linux you can install via:

Then write a program

To use this code you must compile

And then run

When you have problem like “segmentation fault” you need use “sudo” before command.

Linux Openocd STM32F1 reset issue

If you try programming STM32 with Openocd and you have:

Error: init mode failed (unable to connect to the target)
You should try connect the reset pin to the programmer.
But if problem still occurs you should try this:

1. Click and hold hardware reset button,

2. Put on command:
openocd -f /usr/share/openocd/scripts/interface/stlink-v2.cfg -f /usr/share/openocd/scripts/targe
3. Let go reset button

4. Push and hold reset button again and do your command

Now you should see this:
Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints