beemac said:
Ok - checking the UUIDs in code I am changing the value under the ANT UUID - but the controller still just reboots after a second or so... does not go into DFU mode... i see the power on led sequence - so I know it's not going into bootloader..
OK - seems I am doing it right - but for whatever reason the reset into bootloader isn't working... i added one line to show the LED blue when it was about to go into bootloader - and I see that LED.
if (mp_ui_vars->ui8_enter_bootloader) //check to see if reboot into the bootloader is needed
{
mp_ui_vars->ui8_enter_bootloader = 0;
nrf_power_gpregret_set(BOOTLOADER_DFU_START); //set the dfu register
bsp_board_led_on(LED_B__PIN); // Indicate about to enter bootloader
nrf_delay_ms(1000); //wait for write to complete
eeprom_write_variables();
nrf_delay_ms(3000); //wait for write to complete
NVIC_SystemReset(); //reboot into bootloader
}
Ah maybe I don't have a bootloader? If I've always flashed using stlink....?