ErlendWithammerLux commented on issue #127:
URL: https://github.com/apache/mynewt-mcumgr/issues/127#issuecomment-867642958


   The problem seems to have been initializing the wrong flash in the new 
version.
   
   In modules/lib/mcumgr/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c:295
   this : rc = flash_img_init(ctx);
   was changed to this in the new version:
   rc = flash_img_init_id(ctx, g_img_mgmt_state.area_id);
   
   However g_img_mgmt_state.area_id = 0 on the first call but it should be 5 to 
initialize the correct flash.
   
   Changing this the image transfers fine, but I am back to the original 
problem of the image not being valid
       


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to