OTA download_apps not working as expected

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
agmi_3321141
Level 4
Level 4
5 likes given First like received First like given

I am facing some trouble on v6.4 when using 'download_apps' target. It looks like factory app is being attempted to be downloaded at the same as the application, resulting in concurrent access to a file used by openocd. The target is "snip.ota_fr.MurataType1LD download download_apps run". See output from v6.4 :

Downloading Bootloader ...

Building apps lookup table

Download complete

Downloading DCT ...

Download complete

Downloading Application ...

Downloading FR_APP build/snip.ota_fr-MurataType1LD/binary/snip.ota_fr-MurataType1LD.stripped.elf at sector 1  address 4096...

The process cannot access the file because it is being used by another process.

tools/makefiles/wiced_apps.mk:278: recipe for target 'FR_APP_DOWNLOAD' failed

make.exe[1]: *** [FR_APP_DOWNLOAD] Error 1

make.exe[1]: *** Waiting for unfinished jobs....

Download complete

Makefile:351: recipe for target 'main_app' failed

make: *** [main_app] Error 2

Here is output from v6.1 for same target:

Downloading Bootloader ...

Building apps lookup table

No changes detected

Downloading DCT ...

No changes detected

Downloading Application ...

No changes detected

Downloading FR_APP build/snip.ota_fr-MurataType1LD/binary/snip.ota_fr-MurataType1LD.stripped.elf at sector 1  address 4096...

Downloading DCT_IMAGE build/snip.ota_fr-MurataType1LD/DCT.stripped.elf at sector 172 offset 704512 size 3...

Downloading apps lookup table in wiced_apps.mk ... build/snip.ota_fr-MurataType1LD/APPS.bin @ 0x0000 size

Resetting target

Target running

Build complete

Making .gdbinit

0 Likes
1 Solution
VinayakS_26
Moderator
Moderator
Moderator
100 replies posted 50 replies posted 25 replies posted

The application worked fine for me here.

Downloading Bootloader ...

Building apps lookup table

No changes detected

Downloading DCT ...

Download complete

Downloading FR_APP build/snip.ota_fr-MurataType1LD/binary/snip.ota_fr-MurataType1LD.stripped.elf at sector 1  address 4096...

Downloading DCT_IMAGE build/snip.ota_fr-MurataType1LD/DCT.stripped.elf at sector 66 offset 270336 size 3...

Downloading resources filesystem ... build/snip.ota_fr-MurataType1LD/filesystem.bin at sector 69 size 104...

Downloading apps lookup table in wiced_apps.mk ... build/snip.ota_fr-MurataType1LD/APPS.bin @ 0x0000 size

Downloading Application ...

Download complete

Resetting target

Target running

Build complete

Making .gdbinit

Were you running a debug session before building this application. Could you force close the openocd.exe from Task Manager.

View solution in original post

4 Replies
VinayakS_26
Moderator
Moderator
Moderator
100 replies posted 50 replies posted 25 replies posted

Hi,

Could you provide the platform file for Murata Type1LD as a zip.

Regards,

VinayakS_26

0 Likes
VinayakS_26
Moderator
Moderator
Moderator
100 replies posted 50 replies posted 25 replies posted

The application worked fine for me here.

Downloading Bootloader ...

Building apps lookup table

No changes detected

Downloading DCT ...

Download complete

Downloading FR_APP build/snip.ota_fr-MurataType1LD/binary/snip.ota_fr-MurataType1LD.stripped.elf at sector 1  address 4096...

Downloading DCT_IMAGE build/snip.ota_fr-MurataType1LD/DCT.stripped.elf at sector 66 offset 270336 size 3...

Downloading resources filesystem ... build/snip.ota_fr-MurataType1LD/filesystem.bin at sector 69 size 104...

Downloading apps lookup table in wiced_apps.mk ... build/snip.ota_fr-MurataType1LD/APPS.bin @ 0x0000 size

Downloading Application ...

Download complete

Resetting target

Target running

Build complete

Making .gdbinit

Were you running a debug session before building this application. Could you force close the openocd.exe from Task Manager.

I don't have any older instance of openocd running when this command is executed - otherwise the bootloader and DCT download would have failed right away. Seems like make is trying to run parallel jobs that are conflicting.

0 Likes
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

Adding ToIn_1742091​ from Murata

VinayakS_26​ I will provide you access to the Murata platform files via another channel and Murata prefers not to share these publicly on the community.

Look for an email from me.

0 Likes