µTasker Forum

µTasker Forum => NXPTM M522XX, KINETIS and i.MX RT => Topic started by: mdkendall on May 01, 2014, 05:43:05 PM

Title: Bootloader logic
Post by: mdkendall on May 01, 2014, 05:43:05 PM
Using the uTaskerKinetis_V1.4.4 distribution; building the uTaskerSerialBoot_FLASH bootloader target; comparing operation with the state diagrams on page 9 of "uTasker – Serial Loader User’s Guide" v1.02.

In the document there is a transition from the START state to STATE_ACTIVE after the UART is initialised. But I don't see that anywhere in the code. The task never got out of the START state.

I added the following after line 179 of Applications\uTaskerSerialBoot\Loader.c which has fixed it:

Code: [Select]
         iAppState = STATE_ACTIVE;
I don't know why that was necessary, but it appears to be working properly now.
Title: Re: Bootloader logic
Post by: mark on May 01, 2014, 07:14:07 PM
Hi

See http://www.utasker.com/forum/index.php?topic=1721.0 (below the release note there is a patch list).
This line of code was "lost" when Ethernet Web Server support was added to the initialisation - it is noticed when the UART laoder is required or when something is typed at the terminal emulator.

Adding the state change as you found corrects it.

Regards

Mark