Nice tutorial for writing and debugging plain C on ARM Cortex-M3 STM32F103

OLIMEX-STM32-H103

Jacob Mossberg wrote nice tutorial how to program in C ARM Cortex-M3 with GCC and how to debug it with GDB and OpenOCD.

We like very much the hardware he is using 🙂 STM32-H103 and ARM-USB-OCD-H.

 

Bulgaria has the highest average reputation among top users in the Stack Overflow

Europe

VB News posted interesting article. They analyzed data from StackOverflow where coders exchange Questions and Answers. Users of the platform vote up or down answers to questions this way ranking the coders who answer the questions and problems posted.

Their analyze shows that London has the highest number of top Stack Overflow members, with 394 that have a reputation over 5,000.

cities

Another ranking based on the average country ranking of Stack Overflow users above the 5,000 threshold shows that Bulgaria has the highest average reputation among top users in the
world.

average-reputation-by-country

 

I have no idea how correct is this analyze, but I’m glad to see finally something IT related, where Bulgaria is #1 in the world 🙂

Programming ESP8266-EVB with Arduino IDE

arduino

 

We made Arduino style library to easy the stand alone ESP8266 programming, but we were not using any IDE but mostly command line compile and programming. Two of our developers decided to use Eclipse and set it up for ESP8266 tools.

Yesterday we spotted on ESP8266_wiki GitHub account that someone already add support for ESP8266 in the latest Arduino 1.6.1 IDE release, how cool is this?

I decide to try it today. I downloaded the pre-build binaries arduino-1.6.1-linux64.tar.xz and decompress it in /home folder then ran terminal and “sudo ./arduino” in the Arduino-1.6.1 folder, the Arduino IDE was launched.

Then I connected USB-SERIAL-Cable-F to ESP8266-EVB Open Source Hardware board UEXT connector connecting blue wire to PIN2, the green wire to PIN.3 and red wire to PIN.4 on the UEXT connector as on this picture:

esp8266

Then in Arduino IDE I Selected Tools->Board-> Generic ESP8266 board

Then connected USB-SERIAL-CABLE-F to USB and selected Tools-> Port -> /dev/ttyUSB0

Then selected Tools-> Programmer->esptool

From examples loaded Blink LED then changed the port 13 to port 5 where the relay is connected.

I pressed the ESP8266-EVB button and connect 5V power supply to board to make it enter in bootloader mode, then click on Upload button.

The sketch was compiled and uploaded successfully then the relay start to switch on and off like expected.

Well done! I didn’t check all the libraries, but I see inside demos for web servers etc.

 

Free online e-book – Pragmatic D Language Tutorial

Image

For these who are currious about learning more for D Language this is link to free online book: http://qznc.github.io/d-tut/hello.html

quote from there:

D is greatly inspired by C++ and inherit parts of its philosophy. D provides powerful abstraction mechanisms without sacrificing performance. If you are looking for a better C++, you should feel at home with D. If you dislike C++, you might like D for being C++ done right.

Weekend Programming Challenge – Week #24 – combinatorics

Image

Problem:

Write code which calculate the number of ways you can express positive natural number N as sum of positive natural numbers.

Example:

for N=1 we have 1 way

for N=3 we have 3 ways

1+1+1
1+2
3

etc.

The rules:

You can code the solution in any programming language during the weekend and have to submit it to info@olimex.com latest on Sunday September 15th.

On Monday we will upload the solutions on GitHub https://github.com/OLIMEX/WPC

You can play with your real name or with nick if you want to be anonymous, we will not disclosure your personal info if you do not want to.

Weekend Programming Challenge – Week #23 – Evil code

Image

Problem:

Invent something small and evil which to be almost invisible and to cause lot of troubles to catch like:

#define struct union

#define double float

#define floor ceil

#define true (__LINE__&42) !=42

#define private public

The rules:

You can code the solution in any programming language during the weekend and have to submit it to info@olimex.com latest on Sunday September 8st.

On Monday we will upload the solutions on GitHub https://github.com/OLIMEX/WPC

You can play with your real name or with nick if you want to be anonymous, we will not disclosure your personal info if you do not want to.

Weekend Programming Challenge – Week #22 Plagiarism detector

Image

Problem:

Make code which compare two texts and output the % of similarities between the two texts i.e. if they have same words even if the words are in different order.

More advanced version may take care for synonyms ,

The rules:

You can code the solution in any programming language during the weekend and have to submit it to info@olimex.com latest on Sunday September 1st.

On Monday we will upload the solutions on GitHub https://github.com/OLIMEX/WPC

You can play with your real name or with nick if you want to be anonymous, we will not disclosure your personal info if you do not want to.

Previous Older Entries