Friday, September 1, 2017

STM32 Generic Qbs Project

We want to compile and link an STM32 application (which uses Standard Peripheral Driver Library) in 1 click with minimal configuration time (Thanks to Nik!).

- Install the STM link Driver from here:
http://www.st.com/en/development-tools/st-link-v2.html
- Install ARM GCC compiler from here:
https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q3-update
- Install QT Creator from here:
http://download.qt.io/official_releases/qtcreator/4.3/4.3.1/qt-creator-opensource-windows-x86_64-4.3.1.exe
- In Qt go to Help>>About Plugins and enable "BareMetal" Plugin.
- In Qt go to Tools>>Options open Build & Run. Go to Compilers tab and add "arm-none-eabi-gcc.exe" path to compiler path.
- Use my friend's QBS "STM32 Generic Qbs Project"  from here:
https://github.com/RuStrannik/STM32-Qbs-Generic-Project-Example

Wednesday, June 21, 2017

TensorFlow "Hello World!" on Windows

1. Install Python from here.
2. Install PyCharm from here.
3. Open command prompt and enter the following command:
       pip3 install --upgrade tensorflow
4. Open PyCharm and create a new project and a python file.
5. Enter the following short program inside the python file:
    import tensorflow as tf
    hello = tf.constant('Hello World!')
    sess = tf.Session()
    print(sess.run(hello))
6. Shift + F10

Deep Learning

The best book for deep learning: http://www.deeplearningbook.org
Best language: Python
Best Library: Tensorflow