We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello, started exploring the stm32f303vct6 discovery Board.
When compiling simple code with the version 6 compiler, it does not work (but works in debug mode).
It only starts working if you enable the use of microLIB + compiler version 6. Optimization is set to -O0. Thank you for help.
///////////////////////////////////////////////////////////////////
#include "stm32f3xx.h"
void delay() { for(volatile int i=0; i<500000; i++){}}
int main(void){
RCC->AHBENR |= RCC_AHBENR_GPIOEEN;GPIOE->MODER = 0x55000000;GPIOE->OTYPER = 0;GPIOE->OSPEEDR = 0; while(1){
GPIOE->ODR = 0x8000;delay(); GPIOE->ODR = 0x4000;delay();GPIOE->ODR = 0x2000;delay();GPIOE->ODR = 0x1000;delay();}
}