2012-07-05 10:45 AM
friends i ported the code of ''STM324xG-EVAL'' to stm32f4 discovery....and i made it work almost completely....bt some errors are coming on output...
i am posting two images regarding this..problem 1: problem 2: and also attatching my code keil....urgent help needed #!telegraphing2012-07-05 11:32 AM
Is your external 32 KHz actually oscillating? What does the signal look like?
2012-07-05 11:00 PM
2012-07-06 12:10 AM
hey i checked on pin PC14 and PC15...bt no signal is coming there...is there any changes needed to do on hardware..or any other config.. i have to do...
2012-07-06 02:06 AM
You should see a low voltage 32 KHz sine wave.
Your code appears to enable the PWR clock, and enable the BKP domain, which should be sufficient for the LSE to be started with RCC_LSEConfig(RCC_LSE_ON) If you have modified your STM32F4-Discovery board, consider what changes you have made.2012-07-06 11:47 PM
2012-07-07 04:08 AM
no i didnt modified anything in hardware....have you checked mine code in yr discovery board... problem is that i am not getting any sine wave from 32KHz oscillator...so what problem can be there...r all configurations correct in my code....
No I just skimmed through it, testing it would require a whole lot of physical effort and time which I'm not invested in doing right now. Suggest you step through the code and observe if the registers are behaving as expected, and LSE enablement is occurring. Try some of the simpler firmware library examples.2012-07-07 09:30 AM
You might want to work on the porting some more (STM3240G to STM32F4-Discovery), there still seem to be expectations in the project that the HSE is 25 MHz, and that HSE_VALUE is not correctly defined. The PLL issues appear addressed, but the USART baud rates will be wrong as they are premised on hardware knowledge that is invalid.
Suggest you review what I did with the Mass Storage Controller project I emailed you. Perhaps also invest in a merge tool like WinMerge which might be helpful to understand what I did there. You might also want to look at what ST did with the projects for the STM32F4-Discovery firmware release vs the STM32F4 library targeted for the eval boards. Not that any of that has a direct bearing on LSE, but it always helps to start from a point of known good functionality vs unknown.2012-07-07 11:14 AM
2012-07-07 12:00 PM