Hi I am using STM32F410RBT6 CONTROLLER for led blink.
But it is giving access violation no read permission error.
Value given to the ODR register is not taking.
Can any one suggest me how to supress this warning.
i tried as shown in diagram it's still not working
you may refer to this page: developer.arm.com/.../latest
yes I tried this but still its not working.
led is connected to port A 5th pin
#include"stm32f410rbtx.h"
int main()
{GPIOA->MODER|=(1<<10); // port A 5TH pin configuring as a output
while(1)
{
GPIOA->ODR^=(1<<5); //toggle the 5th pin because led is coonected to porta 5th pin}
I mentioned my C code in above line .here i am not using any Hal libraries .
when I try to debug in keil .registers are not updating in system viewer.
but same thing I tried using CUBEMX32+keil (with all HAL LIBRARIES)now everything is working fine.
but i dont want to try with HAL libraries produced by cubemx32.
I want to do it by scratch.
Hi Samarth,
did you enable clock for the GPIO A peripheral?