This Wiki page contains information how to use the CoIDE Application for Modtronix boards with STM32 processors. We used V2.0.3 of CoIDE. Please feel free to register and improve this page - user contributions are greatly appreciated!
Many Modtronix example and source code downloads include a CoIDE workspace with projects. CoIDe is an Eclipse based tool, meaning projects are always part of a workspace. To see if a download has a CoIDE workspace, look for a “CoIDE” folder in the root directory. This is the CoIDE workspace folder, and will contains one or more CoIDE projects. The CoIDE application can be used to compile, debug and program the target board by following these simplified steps. See sections below for more detail:
To debug and run the target, it must be connected to a ST-Link/V2-1 programmer(SWD connection) like the Modtronix PGM-NUCLEO.
To program the target, simply select <Flash> <Program Download> from the menu. This will connect to the target device, and program it with new firmware.
To debug the target, select <Debug> <Debug> from the menu. This will download the current code to the target, and enter debugging mode. The project can now be debugged, using single step, step into and other debug functions.
CoIDE is based on the Eclipse IDE for C/C++ developers (Eclipse CDT). There is a lot of information available online if you get stuck. Installation is quite simple, and basically just involves downloading and installing the app from www.coocox.org.
The coocox user forum also contains a lot of useful information, and is located here. You will find help on their site relating to installation, debugging, programming of STM32 target, importing mbed project, importing STM32Cube(STM32CubeMX) projects and more.
The recommended programmer for Modtronix NZ32 STM32 based boards is the PGM-NUCLEO programmer. It requires the ST-Link/V2(ST-Link/V2-1) USB Drivers. Just search the net for “st link usb drivers”. At the time of writing this, they were available here.
Note that the USB Driver application supplied by ST will NOT install the drivers on your computer! By default, it will create a “STMicroelectronics” folder in “Program Files (x86)” directory. This folder will contain the USB drivers for 32-bit and 64-bit operating system. You will have to install the correct driver on your system (located in ”..\Program Files (x86)\STMicroelectronics“ folder) to complete the installation.
Seeing that the PGM-NUCLEO programmer is actually the programming part of a NUCLEO-F411RE board, the Nucleo documentation is also relevant. Useful information can be found here, and on the NUCLEO-F411RE page on mbed.org (“Nucleo ST-LINK/V2 driver installation and firmware upgrade” section at bottom of page).
To import a new library or source code is very simple:
There are many free libraries provided on mbed. For example, Modtronix provides many free libraries on our mbed project page. For this example we will import the modtronix_LCD2S library into our project: