# RH850 ports freertos, bootloader (0x00000000) jumps to app (0x50000) fails to run

**URL:** <https://forums.freertos.org/t/rh850-ports-freertos-bootloader-0x00000000-jumps-to-app-0x50000-fails-to-run/23711>\
**Category:** Renesas\
**Tags:** debug\
**Created:** [August 11, 2025, 11:42am UTC](https://forums.freertos.org/t/rh850-ports-freertos-bootloader-0x00000000-jumps-to-app-0x50000-fails-to-run/23711 "2025-08-11T11:42:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenxi-zh](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/chenxi-zh/32/5838_2.png) [@chenxi-zh](https://forums.freertos.org/u/chenxi-zh)\
**Post date:** [August 11, 2025, 11:42am UTC](https://forums.freertos.org/t/rh850-ports-freertos-bootloader-0x00000000-jumps-to-app-0x50000-fails-to-run/23711/1 "2025-08-11T11:42:47Z")

</div>

I refer to RH850 for freertos and have successfully ported freertos on RH850 F1KM-S1, but I’m having the following problem:

1. My app code is compiled according to the starting address of 0x00000000, and the burning can run normally
2. Boot compiles according to 0x00000000, and the app compiles according to (0x50000). Boot jumps the app in the following way: \_\_DI();  
((void(\*)(void))(APP\_A\_START\_ADDRESS))();

After jumping into the app, the program will be stuck directly. What is the reason? Thanks ！

---

<div class="post-metadata">

**Author:** ![chenxi-zh](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/chenxi-zh/32/5838_2.png) [@chenxi-zh](https://forums.freertos.org/u/chenxi-zh)\
**Post date:** [August 11, 2025, 1:11pm UTC](https://forums.freertos.org/t/rh850-ports-freertos-bootloader-0x00000000-jumps-to-app-0x50000-fails-to-run/23711/2 "2025-08-11T13:11:15Z")

</div>

I know what’s going on. I enabled the OSTM timer in the bootloader. Before jumping to the app, \_\_DI() cannot turn off the OSTM timer. When entering the app, it will directly trigger the xTaskIncrementTick() interface to cause an exception. I wrote this way to solve this problem:

```auto
R_Config_OSTM0_Stop();
__DI();
((void(*)(void))(APP_A_START_ADDRESS))();

```

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [August 11, 2025, 4:51pm UTC](https://forums.freertos.org/t/rh850-ports-freertos-bootloader-0x00000000-jumps-to-app-0x50000-fails-to-run/23711/3 "2025-08-11T16:51:05Z")

</div>

Thank you for sharing your solution!
