Detecting USB of the target
DONE
Communicating with the target
DONE
Switching to firmware download mode
............DONE
Downloading the firmware
.....ERROR: Firmware Download failed. Callback status 59399ERROR: Firmware Download Failed
DONE
I have also tried using systoimg, and I get the same output.
My sys update bundles my app and my app bundles whole POCO library, so in the end the .cwe file is around 13 mb.
Could size be the problem?
What I missed to say is that my .sdef file contains my application and legato services I need, without other services like wifi, airvantage, gnss and etc.
When I convert system.wp76xx.update to cwe without having my application in .sdef, the .cwe file works.
When I also put my app then it doesn’t work.
I actually found out that my system overlay update when converted to image (.cwe file) was too big because of duplicated files (in my application which was bundled with legato services in the .sdef file).
When I removed those files, size of my system overlay was about 3mb and size of the complete SPK was around 60mb (where previously it was more than 100mb) then everything worked like a charm.
I gues THERE IS a limit on the size of the system overlay image and I learned this the hard way.
I made my own legato system, where I included only legato services and tools I needed and my custom application.
I noticed that before when I built my app separately from system I was able to edit some files located here:
/legato/systems/current/appsWriteable/myApp/usr/cfg
I was able to edit them by using VI editor.
Now I am getting message:
Read-only file system
I am unsure why is this? When I converted my system update to .cwe I DID NOT use the --read-only option.
When you install the base legato system file(.cwe) which has your custom application, It will get installed in the MTD3/USER0 partition. As MTD3/USER0 partition is read only and I think that is the reason you are not able to edit the files.
When you install the overlay legato system or application (.update), It will get installed in the MTD4/USER1 partition. MTD4/USER1 partition is both read write and I think that is the reason you were able to edit the files when you built your App separately.
Verified on my side, i see the same behavior and it is expected.