Page 2 of 2

Re: MOD54415 Startup Time

Posted: Thu Jan 17, 2019 11:07 am
by pbreed
EnableAutoupdate
Should not matter...order wise other than after initstack...

Re: MOD54415 Startup Time

Posted: Fri Jan 18, 2019 10:04 am
by DBrunermer
Thanks for all your help so far, but I think it might be none of the above.

Of the 64MB of RAM for the device, I allocate 63MB as sort of a big heap for some other operation:
unsigned long all_memory[15615072];

When I change that to:
unsigned long all_memory[1];

it boots up super-fast.

Do you have any suggestions? Would malloc or memalign be a better way to go than declaring it in code?
Thanks, Dan

Re: MOD54415 Startup Time

Posted: Fri Jan 18, 2019 1:04 pm
by pbreed
Static global memory gets zerored...

Hummm I can fix this by adding an attribute and editing the linker script...
alas I'd rather not have to have you modify the linker script.
One of will get back to you... probably monday...

For now just do a malloc... (I dislike malloc's in embedded systems.)

Re: MOD54415 Startup Time

Posted: Fri Jan 18, 2019 1:49 pm
by pbreed

Re: MOD54415 Startup Time

Posted: Tue Jan 22, 2019 12:01 pm
by DBrunermer
Thanks again, I'll give that a try. I did do the malloc, though, and that seems to be OK for now. I'm with you, on an embedded platform I'd rather have everything predefined.