This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Nrf51 two app for bootloader without softdevice

Hi, Forum. I want to make uart_bootloader without softdevice. for this, I want to prepare keil project. I tryed this but I have some problems.

Basically, My bootlader codes:

    #define APPLICATION_BASE_ADDRESS 0x14000

typedef void (*application_main_t)(void);
/**
 * @brief Function for application main entry.
 */
int main(void)
{
	

 application_main_t application_main = *(application_main_t *)(APPLICATION_BASE_ADDRESS+4);
	
	application_main();
}

Bootloader Rom and Ram:

image description

Application codes:

 int main (void)
{
	
	
	uint32_t err_code;
	bsp_board_leds_init();
	nrf_gpio_pin_toggle(22);
	nrf_delay_ms(500);	
	nrf_gpio_pin_toggle(22);
   nrf_delay_ms(500);	

	
    lfclk_config();
	
	rtc_config();
	
	
	gpio_init();
	

	ADC_init();
	
    	ppi_init();

          ...
}

Application Rom and Ram:

image description

I load the bootloader first. secondly I load the application. Beginning of the bootlader, the main function is entering the LEDs are toggle. Then it does not work. The function that causes this is: lfclk_config();

I want to do something like this. What should I pay attention to. Are my Ram and Rom values correct? what should I do?

Note: The app is running on its own. (without bootloader) (Rom:0x000)

Thank you!

Parents Reply Children
No Data
Related