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

    dak.sera
    dak.sera

    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…

    • 16 days ago
    • Processors
    • Cortex-M / M-Profile forum
  • Timer not working in stm32f401re

    Ashk.tr
    Ashk.tr

    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;…
    • 1 month ago
    • Processors
    • Cortex-M / M-Profile forum
  • View related content throughout Processors
  • More
  • Cancel