Skip to main content
Explorer
August 29, 2024
Question

LEDs blink when I write to the stm32103c8 flash

  • August 29, 2024
  • 1 reply
  • 716 views

Hello, good afternoon.
I'm using a stm32103c8, and I'm having a serious error when writing to the flash. I'm working on a project where I use timer4 and I'm doing a multiplexing between 8 pins where I control the LED and button, but when I write the LEDs, a flicker occurs (flag) and they blink. I used a native Mikroc library, and one that I created, but without success. Could someone help me?

    This topic has been closed for replies.

    1 reply

    Graduate II
    August 29, 2024

    Writing or Erasing Flash will stall the MCU, you could run the code, vectors and interrupts from RAM.

    Explorer
    August 29, 2024

    Do you have any code showing how I can write using interrupt?