![]() The STM32L152 has 128KiB of Flash and 16KiB of RAM, so I changed the “ ldscripts/mem.ld” to reflect it: MEMORY/flash_blink. I gave it the name “ blink-152” because I already had a program that blinked a LED and the program runs on STM32-P152 and it has no connection whatsoever with a certain rock band. Choose Project Type -> Executable -> Hello World ARM Cortex-M3 C Project -> Cross ARM GCC and give a name to the project. Inside Eclipse, click File -> New -> C Project. Eclipse plugins: I only installed Eclipse CDT plugin and GCC ARM plugin, I did not need to install Zylin embedded CDT because recently they added OpenOCD debugging to GCC ARM plugin so I had everything I needed.Eclipse: I installed Keplero for C/C++ Developers (Linux 32-bit version) in a subfolder of my home directory (once I had problem installing plugins by installing it in system folders).GCC ARM Embedded toolchain: I extracted GCC ARM Embedded 4.8-2013-q4-major (linux version) in /opt.OpenOCD: I have a Debian testing (jessie) PC so I simply ran as root “ aptitude install openocd” and it installed version 0.7.0-2 of the tool.I follow basically the same steps as the post mentioned above, so use that as a reference, but I have a few differences: I am certain that the steps that I follow here can be modified to work with many other Cortex-M targets and many other JTAG adapters/emulators, so this guide can be useful to people who are developing on something different from the STM32-P152 and have a different cable than the C232HM-EDHSL-0. In particular I have been inspired by this post for developing on STM32F3Discovery on Mac OS X using Eclipse and this post for Windows. I suppose there are many alternatives that are probably simpler and lighter (Eclipse is quite large and complicated), but here’s what I did. Sharing the same connectors, STM32 Nucleo boards can easily be extended with many specialized application hardware add-ons (Nucleo-64 include Arduino Uno rev3 & ST morpho connectors, Nucleo-32. I wanted to extend this setup by using an IDE, and I chose Eclipse because it seems to have the right plugins and resources. The highly affordable STM32 Nucleo boards allow anyone to try out new ideas and to create prototypes quickly with any STM32 MCU. Debugging the STM32-P152 board with GDB.Flashing the STM32-P152 board with OpenOCD. ![]() JTAG connection with OpenOCD and FTDI cable. ![]() Some time ago I played with Olimex STM32-P152 board and wrote some posts about it:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |