STMicroelectronics AN3129 Application Note

This application note describes how to configure the SPEAr600 embedded MPU's multi-port memory controller (MPMC) to use different types of DDR and DDR2 memories and tune the parameters in accordance with JEDEC requirements and the flexibility available in the application.


STMicroelectronics AN3129 Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
12
File format
PDF
File size
188 KB
Published
06 August, 2012
Updated
30 September, 2023
Model
AN3129
MD5 checksum
16B506BE5645883BA5A763B58E40DD89

About this manual

This document provides software developers with information on utilizing the Fast Interrupt Request (FIQ) mechanism within the Linux kernel for the SPEAr embedded MPU family. It details the interrupt logic, hardware mechanisms, and software requirements for implementing FIQ handlers to ensure low-latency interrupt handling suitable for real-time systems.

The note includes a section on measuring IRQ and FIQ latency using a specific Linux kernel module. It describes the module's functionality, how to activate measurement modes via sysfs, and presents performance measurement results obtained on an SPEAr Plus 600 application board running Linux kernel version 2.6.27.

What's inside

  • Introduction
  • SPEAr interrupt logic
  • Linux kernel IRQ handling latency
  • FIQ handler environment
  • IRQ latency measurement
  • Module internals
  • Performance measurements

Specifications

Kernel version used for measurementsLinux kernel version 2.6.27
CPU frequencyARM core running @333 MHz
RAM capacity and speed128 MB DDR2 running @333 MHz
Flash memory capacity8 MB NOR
Timer interval1 millisecond
Timer tick interval1/48 microsecond
Latency measurement range0 to 200 microseconds

Frequently asked questions

What is the maximum latency range measured by the module?

The frequency counter captures latency from 0 to 9600 ticks, which corresponds to a range of 0 to 200 microseconds.

Can Linux kernel APIs be used inside an FIQ handler?

No, kernel mode APIs and device driver framework cannot be used inside the FIQ handler because they may rely on timers or spinlocks.

How do you activate FIQ latency measurement?

You must activate the mode by running the command '#echo 1 > fiq_mode'.

Download PDF (188 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →