Skip to main content

Posts

Showing posts from December, 2018

Zephyr Example 1: Blinky

Setting up Zephyr Environment Detailed description about Zephyr environment can be found here . Since most of the prerequisites are common to other development, chances are you already have most of them installed on your computer. Ubuntu and its derivative users may need to uninstall outdated device-tree-compiler package and install new one by building from the source Running a Sample Code Grab one of the board listed as supported , clone the Zephyr source tree , go to one of the sample code directory and run: Default CMake generator is "Unix Makefile". However ninja is way more faster. You can override it by creating a file named PreLoad.cmake with following content: and put it in the same directory as CMakeLists.txt. Additionally you can set the board in the CMakeLists.txt so you don't have to specify in the command line. Note that this line comes before including the boilerplate setting. Blinky We are going to use ST Disco L475 IoT01 board in this ex

Fixing B-L475E-IOT01A board for reset.

There are at least two revisions of the B-L475E-IOT0A board. Earlier boards (version C) have rather critical bug in the hardware, so the STLink-V2 does not work. This is because the NRST net between STLink and the main MCU is missing in the version C board. For more information, check the manual . Unfortunately the manual didn't describe how to fix it, although it is rather straightforward. Grab a soldering tools and connect two points shown below. On the schematic these two points correspond to and Now, you should be able to run the hello_world example without problem.