Hello there! I'm using STM32F407VGTx and Keil U5. Everything went well but when I run the simple code of blinking led on board it doesn't blink at all and the screen says zero errors. Anyone knows how to solve it?
Having no syntax errors is not a guarantee of functional code.
You're going to have to review what you're doing, making sure the correct clocks are enabled, and you've configured the pins properly.
Use a debugger, single step the code, confirm peripheral registers contain appropriate values. Review the reference manual, surely this contains much detail related to the part.
Do I need to run the code again in a debugger?
I don't know, do you want to understand what's happening? The alternative is to use static-analysis where you review the code thoroughly by inspection.
You describing things as "not working" doesn't really constrain the problem very tightly.
Remember that we know nothing about you, or your code, or what setup you have other than what you give in your posts.
We cannot see you, or your bench, or your computer screen.
That's why you need to provide a full description of what, exactly, you have and what, exactly, you have done, and what steps you have taken to resolve the problem.
www.catb.org/.../smart-questions.html
I put my code in c:\my documents and code\code\project\code\source\arm\STM32F407VGTx\arm\source
can u look and help fix the problem
Think about it: we also cannot access your computer's hard drive - can we?!
Do you not have teachers / co-workers / supervisors who can help you with this?
i now make it sharable. it is got the name KEILHELP and i give write premissions
There are many steps involved in booting up a Cortex-M4 microcontroller.
Try this lab, and see if you can get this example to work on your board.
http://www.keil.com/appnotes/docs/apnt_230.asp
=============
There are CMSIS-PACK examples for the STM32F407VGTx
Open the Pack installer, C:\Keil_v5\uv4\PackInstaller.exe
- On the top left of the window, for "Search", type "STM32F407VGT" - the list below gets filtered. - Select the device (entry with a green icon) from the list below – on the right side of the dialog updates with Software Packs relevant to this device - For "Packs", install the Keil:STM32f4xx_DFP pack (if necessary) - On the top right of the screen, select the yellow "Examples" tab. - On the "CMSIS-RTOS Blinky (STM32F4-Discovery)" row, click the "copy" button - a dialog pops up. - Pick a directory, click both the check boxes, and press OK - a new Keil µVision session opens with the example. - Build the project, Connect a USB cable to the board and start the debugger
======
See also - the Getting Started guide at http://www.keil.com/gsg - Learning page http://www.keil.com/learn - Creating applications at http://www.keil.com/support/man/docs/uv4/uv4_ca_packinstaller.htm
Thank you very much for your help, Kevin! It really worked...I was doing bunch of some mistakes...!