Hello Weiping,
Thank you for your reply.
My bootloader always starts before application.
In _Startup() it calls app main by checking 2 bytes in the EEPROM before JMP opcode to its main or to app main.
So if I understand you correct, the used STACKSIZE will always be the bootloader's and not the app.
My problem is that when my app starts by boot loader i don't see the same behavior when it starts directly.
In case of bad behavior, some buffers are being garbage when clearing others. When i decrement their size it works.
The problem is that I can't decrease the buff size.
Another issue I experiencing is that some counters are being also garbage when I call strstr, even though I increased the stack size to the
same on in the application.
Is there any special requirement when starting from bootkloader or not in case of buffers allocation/size/init?
I wasted about 3 weeks in trying to solve this issue but NADA.
What I don't understand is why my code works ok when not starting from bootloader but has bad behavior when it does.
Thanks
.