Timer on bootloader

Technical questions regarding the xTIMEcomposer, xSOFTip Explorer and Programming with XMOS.
asihvo
Junior Member
Posts: 6
Joined: Tue Aug 28, 2018 10:57 am

Timer on bootloader

Postby asihvo » Mon Sep 10, 2018 9:53 am

Hi,
I have tried usleep and timers on secondary bootloader but nothing seems to delay the execution. Either the bootloader is not executed at all or timer of delay_milliseconds() just does not work on bootloader. As you might guess I am trying to implement uart on bootloader to controll the boot process. Any advice appriciated.
void init(void)
{

if (uart_rx())
{
booting_to=NORMAL;
uart_tx();
return ;
}

if (! memcmp(buffer,"FACTORY",sizeof(buffer)))
{
booting_to=FACTORY;
uart_tx();
return ;
}
booting_to=NORMAL;
}

BR
AP Sihvonen
User avatar
mon2
XCore Legend
Posts: 1278
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Postby mon2 » Mon Sep 10, 2018 1:12 pm

Can you try to slow down the CPU clock speed? Assuming you are using one of the XCORE-200 devices, you have more flexibility:

viewtopic.php?t=4528

Code: Select all

http://www.xcore.com/viewtopic.php?t=4528



and also

viewtopic.php?t=5665

Code: Select all

http://www.xcore.com/viewtopic.php?t=5665

Who is online

Users browsing this forum: No registered users and 59 guests