2014-07-29 12:07 PM
Hi
I'm trying to get the USB virual com ports working with a STM32F401 discovery board, using IAR workbench, and the code generated from STM32 Cube MX. I found this/public/STe2ecommunities/mcu/Lists/STM32Java/flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/USB%20CDC%20Bug%20in%20CubeMX%20firmware&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21¤tviews=990
which should probably help. ChangingCDC_DATA_HS_MAX_PACKET_SIZE to 256 did help at first, it can now initialize, but can't send data. As another post suggests, the heap size should be changed from 0x0200 to 0x0400 - but how can I do that?
null2014-07-29 12:31 PM
If using FreeRTOS grep MAX_HEAP_SIZE
''Go to Project->Options->Linker->Config Tab and Edit Linker configuration file. In the box that pops up there is a Stack/Heap size tab.''2014-07-29 01:00 PM
Thank you!