startup_stm32f407xx.s ARMCLANG 6.x problem
Hi,
i'm using Keil with the ARMClang 6.x compiler, an STM32f407 and CubeMX to configure my project.
I was playing arround with dynamic memory allocation and was wondering why
uint8_t* b_;
b_ = static_cast<uint8_t*>(std::calloc(100, sizeof(uint8_t)));works but
b_ = static_cast<uint8_t*>(std::calloc(512, sizeof(uint8_t)));always was returning 0x0000000.
After reading on the ARM/Keil website i came to the conclusion that
IMPORT __use_two_region_memoryin the startup_stm32f407xx.s seems to be the reason for this fault(?)
I'm not exactly sure if this is a fault or to be excpected and i'm overseeing sth. But after comenting out this line i get a valid pointer when i try to allocate 512 byte (or more)
Why is it working i if allocate a smaller memory area?
And can i fix this somehow so that not everytime i generate the project again my startup file is overwritten? Or is this something which should be fixed in this startup file by ST?
Thanks for help.
