cancel
Showing results for 
Search instead for 
Did you mean: 

32F412G DISCOVERY

jasonforest9
Associate II
Posted on June 14, 2017 at 18:04

I have a 32F412GDISCOVERY (the one with LDC) board and the stock demonstration firmware is nowhere to be found. I can find the firmware to other discovery boards, but not this one. How can I obtain this firmware source code package?

23 REPLIES 23
Posted on June 14, 2017 at 18:12

[STM32Cube_FW_F4_V1.15.0]\Projects\STM32F412G-Discovery\Demonstrations\

JW

jasonforest9
Associate II
Posted on June 14, 2017 at 18:25

So the stock 

STM32F412G-Discovery firmware is only available from the stm32cubemx application download? 

jasonforest9
Associate II
Posted on June 14, 2017 at 19:19

Looks like this may be it. I was expecting a more dedicated package that is specific to the 32F412GDISCOVERY like they do for other dev kits (like the STM32F4-Discovery board page). A 30MB zip file is easier to handle than a 400MB one . And the other board packages have projects created already for MDK for example. I'll see what comes of what you listed.

Posted on June 14, 2017 at 19:55

That was before the Cube era and the package you mention is based on the deprecated SPL. These days all ST devboards have Cube support exclusively.

Some are supported in mbed, but that's based on Cube anyway.

IIRC Cube contains MDK projects.

JW

Posted on June 14, 2017 at 18:33

No, you can download the

http://www.st.com/en/embedded-software/stm32cubef4.html

library without CubeMX being installed.

JW

Posted on June 15, 2017 at 01:42

The SPL code from the DSP Library works with the F412, but no tailored examples. Ported some of my microSD card logging software to the board. Need to check the BYPASS errata for SDIO as this is supposedly not on the F412.

http://www.st.com/en/embedded-software/stsw-stm32065.html

 
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on June 15, 2017 at 01:57

Unfortunately I'm getting hard fault error when I run the code listed under 

Demonstrations for this discovery board. When it tries to write to the LCD it turns it on with a white background and then freezes. I was able to debug it down to the line where it tries to display the ST logo. If I comment it out, it goes forward but hard faults after in another routine that I haven't checked yet.

Has anyone tried the MDK project with Keilv5 from this path:

\STM32Cube_FW_F4_V1.16.0\Projects\STM32F412G-Discovery\Demonstrations\MDK-ARM

It compiles just fine and downloads ok. Like I said, if I skip the ST logo, it then prints 'life augmented', and hard faults somewhere after that.

Posted on June 15, 2017 at 11:05

Hi,

I am also playing with this board right now. The demo worked fine but as usual in wanted to generate CubeMX code myself (from the scratch) because re-using ST examples (not generated by the CubeMX) is difficult to integrate with Cube generated code.

You can try my Cube project file where the drivers are configured for LCD TFT and Touch Screen:

 

Bogdan

Posted on June 15, 2017 at 19:03

Bogdan, Thanks for the code.

It seems to go into an infinite loop during the HAL_Delay routine.  It is not incrementing as it should. The code where it is stuck is below. The first time it goes here is during the BSP_LDC_Init. Any ideas?

__weak void HAL_Delay(__IO uint32_t Delay)

{

uint32_t tickstart = HAL_GetTick();

uint32_t wait = Delay;

/* Add a period to guarantee minimum wait */

if (wait < HAL_MAX_DELAY)

{

wait++;

}

while((HAL_GetTick() - tickstart) < wait)

{

}

}

__weak uint32_t HAL_GetTick(void)

{

return uwTick;

}