cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Cube FW USB_Device MSC

chmielewski
Associate II
Posted on March 27, 2014 at 11:18

hi, I have a problem with Application from STM32Cube_FW_F4_V1.1.0. It´s the USB_Device -> MSC_Standalone application. When I build the files with Coocox and download it on my STM3240G-Evalboard, the USB-Device will be identified, but not the SD-Card. When I test the same example with EWARM, it works well. The USB-Device and the SD-Card will be found. In Coocox I included the same files how in EWARM and made the same defines within the compiler preprocessor. Have some an idea what I make wrong?

12 REPLIES 12
chmielewski
Associate II
Posted on April 08, 2014 at 07:36

hi, I had compared the startup file. but this the same structure how the startupfile from coocox.

there are the same entries.

chmielewski
Associate II
Posted on April 10, 2014 at 08:44

The Stack was to small.

I change in the startup_stm32f4xx.c the Stack, like this:

#define STACK_SIZE       0x00001000      /*!< The Stack size suggest using even number    */

frankmeyer9
Associate II
Posted on April 10, 2014 at 10:59

The Stack was to small.

Stack size is kind of ''other project settings'', as noted in an earlier post.

Because available RAM in MCUs is very limited, compared to PC environments, stack size is an important item to watch, and think about when creating the project.

Just watch the number of threads started here (and on other fora) because of insufficient stack. The effects are usually 'random' crashes at runtime.