• Complain

Carmine Noviello - Mastering STM32: A step-by-step guide to the most complete ARM Cortex-M platform, using the official STM32Cube, 2nd Edition

Here you can read online Carmine Noviello - Mastering STM32: A step-by-step guide to the most complete ARM Cortex-M platform, using the official STM32Cube, 2nd Edition full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2022, publisher: leanpub.com, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Carmine Noviello Mastering STM32: A step-by-step guide to the most complete ARM Cortex-M platform, using the official STM32Cube, 2nd Edition
  • Book:
    Mastering STM32: A step-by-step guide to the most complete ARM Cortex-M platform, using the official STM32Cube, 2nd Edition
  • Author:
  • Publisher:
    leanpub.com
  • Genre:
  • Year:
    2022
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Mastering STM32: A step-by-step guide to the most complete ARM Cortex-M platform, using the official STM32Cube, 2nd Edition: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Mastering STM32: A step-by-step guide to the most complete ARM Cortex-M platform, using the official STM32Cube, 2nd Edition" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

This is the second edition of the most complete book about the STM32 family of 32bit Flash microcontrollers from ST Microelectronics based on the ARM CortexM architecture. The book will guide you in a clear and practical way to this hardware platform and the official ST CubeHAL and STM32CubeIDE, showing its functionalities with a lot of examples and tutorials. The book assumes that you are totally new to this family of MCUs, and it will start showing how to setup the tool-chain to build your STM32 based applications.

The book is addressed both to professionals and to fans of this platform, like hobbyists and students. The book examples are based on nine Nucleo-64 boards from ST.

This second edition is composed by twenty-eight chapters, divided in about 900 pages. They cover

  • Introduction to Cortex-M and STM32 microcontrollers.
  • How to setup the STM32CubeIDE tool-chain in Windows, Linux and Mac OSX.
  • How to use STM32CubeMX to generate application skeleton.
  • Introduction to the debugging of STM32 applications.
  • GPIO management.
  • NVIC controller.
  • UART peripheral.
  • DMA controller.
  • STM32 clock tree and its configuration.
  • Basic, general purpose and advanced STM32 timers.
  • ADC peripheral.
  • DAC controller.
  • I2C bus and protocol.
  • SPI bus.
  • CRC peripheral.
  • IWDG and WWDG timers.
  • RTC clock.
  • Power management.
  • The memory layout of an STM32 application and linker scripts.
  • Flash memory management and the role of the ART Accelerator.
  • The booting process in STM32 microcontrollers and how to write a custom bootloader.
  • FreeRTOS 10.x and the tickless low-power mode.
  • Advanced debugging techniques and how to use SEGGER tools to debug STM32 MCUs.
  • FatFs Middleware.
  • How to develop IoT applications with the W5500 Ethernet processor.
  • USB 2.0 protocol and the STM32 USB Device Framework.
  • How to design a custom board using an STM32 MCU.

Carmine Noviello: author's other books


Who wrote Mastering STM32: A step-by-step guide to the most complete ARM Cortex-M platform, using the official STM32Cube, 2nd Edition? Find out the surname, the name of the author of the book and a list of all author's works by series.

Mastering STM32: A step-by-step guide to the most complete ARM Cortex-M platform, using the official STM32Cube, 2nd Edition — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Mastering STM32: A step-by-step guide to the most complete ARM Cortex-M platform, using the official STM32Cube, 2nd Edition" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Mastering STM32 - Second Edition A step-by-step guide to the most complete ARM - photo 1
Mastering STM32 - Second Edition
A step-by-step guide to the most complete ARM Cortex-M platform, using the official STM32Cube development environment
Carmine Noviello

This book is for sale at http://leanpub.com/mastering-stm32-2nd

This version was published on 2022-02-28

This is a Leanpub book Leanpub empowers authors and publishers with - photo 2

* * * * *

This is a Leanpub book. Leanpub empowers authors and publishers with the Lean Publishing process. Lean Publishing is the act of publishing an in-progress ebook using lightweight tools and many iterations to get reader feedback, pivot until you have the right book and build traction once you do.

* * * * *

2015-2022 Carmine Noviello

To my wife Anna, who has always blindly supported me in all my projects

To my daughter Giulia, who completely upset my projects

Preface

It was the summer of 2015 when I began to consider the hypothesis of grouping a series of posts on my personal blog to give shape to a more structured guide about the use of STM32 microcontrollers. At that time, it was not trivial to setup a complete tool-chain for the STM32 portfolio, unless you could afford a license for the ARM Keil. Moreover, STM was migrating from the historical Standard Peripheral Library (SPL) to the new CubeHAL SDK, and it was not clear the path to follow to start learning this very interesting product lineup.

I so started writing the very first chapters of this book, showing how-to setup a complete and free Eclipse tool-chain based on the GNU MCU Eclipse plug-ins by Liviu Ionescu (now called Eclipse Embedded CDT and officially supported by the Eclipse Foundation), and I decided to use the LeanPub platform, which allowed me to publish an in-progress book that I could update as soon as I added a new chapter. From the very first release of the book, many people adopted the text and helped me a lot in shaping the book structure and its contents. It took me two years to complete the first edition and, trust me, it was a very hard work especially because things changed day-by-day. During the years, the book has been adopted by several Universities around the world as official text in Embedded System classes. A lot of people contacted me to provide feedback, some asking for help with the text and some others with the development of their board, some asking for a revision of the text and some others for a revision of the examples, some criticizing the whole book and some other letting me know that they thank me every time they go to sleep.

Seven years later things have changed. A lot. STM pushed hard the development of both the hardware and software ecosystem. The first release of the book was about nine STM32 families, ranging on about 500 P/N. Now there are seventeen families in the STM32 portfolio, spreading over more than 1200 P/N. But the huge improvement was on the software part. STM decided to fix the main issue with the STM32 portfolio: the lack of an official tool-chain. STM acquired Atollic and its TrueStudio IDE, and launched the STM32CubeIDE that, together with the whole STM32Cube initiative, represents a quantum leap for the development of STM32-based devices.

This required me to make a deep revision of the text. I so started working on this second edition in the spring of 2021 and it took to me about one year to update the text and to add new contents that lacked in the first edition. This is a lot of time but things changed a lot even for me in these years. A totally different job, full of too many responsibilities, and a daughter came in the middle, and now my free time ranges from the 5:00am to 7:00am, and you can figure out how hard is to work to a book with 900 pages in just two hours a day.

Even in the second edition, the book is divided in three parts: an introductory part showing how to setup the STM32CubeIDE and how to work with it; a part that introduces the basics of STM32 programming and the main aspects of the official HAL (Hardware Abstraction Layer); a more advanced section covering aspects such as the use of a Real Time Operating Systems, the boot sequence and the memory layout of an STM32 application, advanced peripherals like the USB.

However, this book does not aim to replace official datasheets from ST Microelectronics. A datasheet is still the main reference about electronic devices, and it is impossible (as well as making little sense) to arrange the content of tens of datasheets in a book. You have to consider that the official datasheet of the one of latest - and not the most complex of the portfolio - STM32G4 MCU alone is almost three thousand pages! Hence, this text will offer a hint to start diving inside the official documentation from ST. Moreover, this book will not focus on low-level topics and questions related to the hardware, leaving this hard work to datasheets. Lastly, this book is not a cookbook about custom and funny projects: you will find several good tutorials on the web.

Who Is This Book For?

This book is addressed to novices of the STM32 platform, interested in learning in less time how to program these fantastic microcontrollers. However, this book is not for people completely new to the C language or embedded programming. I assume you have a decent knowledge of C and are not new to most fundamental concepts of digital electronics and MCU programming. The perfect reader of this book may be both a hobbyist or a student who is familiar with the Arduino platform and wants to learn a more powerful and comprehensive architecture, or a professional in charge of working with an MCU he/she does not know yet.

What About Arduino?

I received this question many times from several people in doubt about which MCU platform to learn. The answer is not simple, for several reasons.

First of all, Arduino is not a given MCU family or a silicon manufacturer. Arduino is both a brand and an ecosystem. Today, there are tens of Arduino development boards available on the market, some with am 8-bit MCU and some other with more powerful 32-bit MCUs, even if it is common to refer to the Arduino UNO board as the Arduino. Arduino UNO is a development board built around the ATMega328, an 8-bit microcontroller designed by Atmel. However, Arduino is not only a cold piece of hardware but it is also a community built around the Arduino IDE (a derived version of Processing) and the Arduino libraries, which greatly simplify the development process on ATMega MCUs. This large, stable and continuously growing community has developed hundreds of libraries to interface as many hardware devices, and thousands of examples and applications.

So, the question is: Is Arduino good for professional applications or for those wanting to develop the last mainstream product on Kickstarter?. The answer is: YES, definitively.. I myself have developed a couple of custom boards for a customer, and being these boards based on the ATMega328 IC (the SMD version), the firmware was developed using the Arduino IDE. So, it is not true that Arduino is only for hobbyists and students.

However, if you are looking for something more powerful than an 8-bit MCU or if you want to increase your knowledge about firmware programming (the Arduino environment hides too much detail about whats under the hood), the STM32 is probably the best choice for you. Thanks to a development environment based on Eclipse and GCC, you will not have to invest a fortune to start developing STM32 applications. Moreover, if you are building a cost sensitive device, where each PCB square inch makes a difference for you, consider that the STM32F0 value line is also known as the

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Mastering STM32: A step-by-step guide to the most complete ARM Cortex-M platform, using the official STM32Cube, 2nd Edition»

Look at similar books to Mastering STM32: A step-by-step guide to the most complete ARM Cortex-M platform, using the official STM32Cube, 2nd Edition. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Mastering STM32: A step-by-step guide to the most complete ARM Cortex-M platform, using the official STM32Cube, 2nd Edition»

Discussion, reviews of the book Mastering STM32: A step-by-step guide to the most complete ARM Cortex-M platform, using the official STM32Cube, 2nd Edition and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.