Associate III
July 9, 2014
Question
Working without external crystal
- July 9, 2014
- 3 replies
- 1504 views
Posted on July 09, 2014 at 18:54
Hi,
I'm working with STM32F401-DISCO on IAR.I'm trying to protect 2 sections of 16KB from the flash, I want to use the 2 sections for internal data.I tried to protect sections 0 & 1 , so I start the ROM from section 2.I add the command : SCB->VTOR = 0x08008000; at the void SystemInit(void) in system_stm32f4xx.c file,I run this simple project on the STM32F401-DISCO board.The project toggle PB0 pin.I have 2 boards:1.with external crystal 2.without external crystalWhen I run the project with the debugger it's works on both boards.When I disconnect the debugger the program don't run only on the board without the external crystal.What wrong with the IAR configuration file.Please advise.