Tool/software: Code Composer Studio
Hello folks,
I wrote a custom bootloader for the f28377d. I placed the bootloader project into flash section A. And my app code lies into Flash sections D-N. I wait for 5secs in the bootloader and jump to the app code. I used the LB 0x86000 command to jump. In my appcode's cmd file, I set the BEGIN address to 0x86000 and modified the Flash Sector D as beginning from 0x86002.
So everything seems fine until that point. When I jump to appcode on both cpus the appcode of the cpu02 doesnt work as I wanted. Some functions work but some doesnt. I tested the appcode sandalone without bootloader and it works fine. I think I have been forgeting something on my cpu02's bootloader code.
In my bootloader code I use " IPCBootCPU2(C1C2_BROM_BOOTMODE_BOOT_FROM_FLASH)" function to boot the cpu02 from flash. Should I use that function to boot cpu02 or it will automatically boot? (is it mandatory? if it is should I also use it in my appcode?)
Is it true to jump to BEGIN adress or should I jump to the entrypoint of the app code? (or any other adress in the flash sector D?)
After reset the mcu goes to RESET vector at 0x3FFFC0 and then jumps to the bootloader. The bootloader checks the boot pins(etc.) and then goes to the BEGIN(0x80000) adress. Then it starts the codestart routine and goes to main. If the above flow is true, is it okay to change the value of the BEGIN vector to 0x86000? (Because on my standalone project without the custom bootloader, code doesnt boot from flash correctly if I change the BEGIN vector any value from 0x80000).
Thanks in advance