Part Number: LP-EM-CC1314R10
Tool/software:
Hello guys,
I recently started a project with cc1314 series, and I am trying to implement bootloader. Right now I am simply using MCUboot and Sensor_oad_offchip as my projects . In the end I want to create custom bootloader as mcuboot complexity is not needed.
Now lets get to the issue, as the titles suggests I cant jump from mcuboot to my sensor_oad_offchip application.
I have modified the mcuboot code to just simple jump to the prgentry address of the application which is given in OAD header, but it does not work. I have done this process before on cc1357 and I also created an custom bootloader using BIM on that mcu and never faced this issue on that.
Here is the mcuboot code
As you can see, I have commented out all the parts related to mcuboot and directly jumping to the vector table of sensor_oad_offchip application, but it does not work.
My end goal is just to use mcuboot and sensor_oad_offchip projects as a reference and create my own headers and everything else.
int main(void)
{
fih_int bootStatus;
struct boot_rsp bootRsp;
#ifndef EXCLUDE_GPIOS
powerUpGpio();
lightRedLed();
#endif //EXCLUDE_GPIOS
// trace_init();
// MCUBOOT_LOG_INF("mcuboot_app");
//
//#ifdef MCUBOOT_HW_ROLLBACK_PROT
//
// if (FIH_SUCCESS != boot_nv_security_counter_init()) {
// MCUBOOT_LOG_INF("bootRsp: failed to initialize secure counter page");
// mcubootFail();
// }
//
//#endif
// bootStatus = boot_go(&bootRsp);
//
//#ifdef MCUBOOT_HW_ROLLBACK_PROT
// lockBimSector();
//#endif
//
// if ((0 == bootStatus) && (IMAGE_MAGIC == bootRsp.br_hdr->ih_magic))
// {
// blinkLed(GREEN_LED, 3, 500);
// MCUBOOT_LOG_INF("bootRsp: slot = %x, offset = %x, ver=%d.%d.%d.%d",
// bootStatus,
// bootRsp.br_image_off,
// bootRsp.br_hdr->ih_ver.iv_major,
// bootRsp.br_hdr->ih_ver.iv_minor,
// bootRsp.br_hdr->ih_ver.iv_revision,
// bootRsp.br_hdr->ih_ver.iv_build_num);
//
// do_boot(&bootRsp);
// }
// else
// {
// MCUBOOT_LOG_INF("bootRsp: no image found");
// mcubootFail();
// }
start_app((uint32_t *)0x00006000);
mcubootFail();
}