cancel
Showing results for 
Search instead for 
Did you mean: 

Change heap size in IAR embedded workbench

bgeri91
Associate
Posted on July 29, 2014 at 21:07

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&currentviews=990

 which should probably help. Changing 

CDC_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?

null
2 REPLIES 2
Posted on July 29, 2014 at 21:31

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.''
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
bgeri91
Associate
Posted on July 29, 2014 at 22:00

Thank you!