cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX Generated GPIO Code

kartik
Associate II
Posted on April 25, 2014 at 22:37

I'm using the STM32F439I-EVAL board and I generated a project using the STM32CubeMX program using

http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00093454.pdf

 as a reference. These are the interfaces I use

1) CRC

2) DMA2D

3) I2C1

4) IWDG

5)LTDC

6) RCC

7) SYS (SWD and asynchronous trace)

8)TIM2 (using internal clock source)

9) TIM6

10) USART2

I also set the project setting to set all unused pins to Analog to save power. When I generate the corresponding code and run the project on the platform ( I step using the debugger ). The debugger looses control of the processor and it seems to have been reset. It happens when initializing the GPIOs, specifically when setting the GPIOB block of pins to analog. I have unchecked the box to set all unused pins to analog and am now able to move forward past that. Can anyone tell me what the problem was ? 

Thanks

Kartik

#stm32f439 #stm32cubef4
1 REPLY 1
Amel NASRI
ST Employee
Posted on April 28, 2014 at 15:31

The debugger looses control of the processor and it seems to have been reset.

 

This is because you updated default mode of debug pins.

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.