• Cortex-M3 bare metal start_up example error in clock ticks

    Hi,

    the bare metal example code in ARM ds giving me mismatched output on clock ticks. debug output is given here.

    Cortex-M3 bare-metal startup example
    Insertion sort took 1 clock ticks
    Shell sort took 0 clock ticks
    Quick sort took 0 clock ticks
    SysTick interrupt…

  • Timer not working in stm32f401re

    i want to setup timer in STM32F401RE and i already have this code:


    int main(void) {
    TIM1_init();

    while (1) {}
    }


    /// initialize TIM1
    /// timer TIM1 channel 2 is configed to generate PWM at 1kHz. the output of the
    void TIM1_init(void) {
    RCC->AHB1ENR |= RCC_AHB1ENR_GPIOAEN;…
  • How much stack memory do I need for my Arm Cortex-M applications?

    Overview of stack size requirement estimations in Cortex-M based applications

    1 - Overview

    “How much stack memory do I need for this application?” - This is a common question for many software developers working on applications that run on microcontroller…