Skip to main content

Abstract

Memory management requires special consideration in embedded systems. Therefore, we will deal with memory-based operations, especially for the STM32F4 microcontroller, in this chapter. To do so, we will first consider the bus architecture, working principles of RAM, and flash memory. Then, we will focus on memory management in C, C++, and MicroPython languages. While doing so, we will focus on pointer usage in C and C++ languages. We will also provide details on how MicroPython handles memory. Afterward, we will introduce peripheral units as direct memory access (DMA) and flexible memory controller (FMC) available in the STM32F4 microcontroller. We will provide usage examples on these units via different approaches. Hence, the reader can benefit from them in advanced operations. As the end of the chapter application, we will add memory-based properties to the robot vacuum cleaner developed throughout the book.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 79.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Python Community: https://docs.python.org/3/library/stdtypes.html. Accessed 4 June 2021

  2. ISSI: 1 Meg Bits x 16 Bits x 4 Banks (64-MBIT) Synchronous Dynamic RAM, rev. g edn. (2014)

    Google Scholar 

  3. STMicroelectronics: STM32F405/415, STM32F407/417, STM32F427/437 and STM32F429/439 advanced Arm-based 32-bit MCUs, rm0090 rev 19 edn. (2021)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

9.1 Electronic supplementary material

Rights and permissions

Reprints and permissions

Copyright information

© 2022 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Ünsalan, C., Gürhan, H.D., Yücel, M.E. (2022). Memory Operations. In: Embedded System Design with ARM Cortex-M Microcontrollers. Springer, Cham. https://doi.org/10.1007/978-3-030-88439-0_9

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-88439-0_9

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-88438-3

  • Online ISBN: 978-3-030-88439-0

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics