new returning null

Comments

3 comments

  • Avatar
    Michael Johnson

    Do you have 32K of SRAM? Could it be a stack size problem?

    0
    Comment actions Permalink
  • Avatar
    Andrew Fraser

    Sorry, I forgot to mention that I am using a STM32F215RGT6 with 112KBytes of SRAM.

    I am not too familiar with how new / delete work in Crossworks - is the full heap available for object allocation ?

     

    Andy

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    The heap section is allocated by the linker based on the heap size project property. You can use the symbols browser to see the address ranges of the heap section.

    0
    Comment actions Permalink

Please sign in to leave a comment.