Topics

mcuboot : nrf52: warning during build


vikrant8051 <vikrant8051@...>
 

Hello,
I am getting following warning while building mcuboot :

warning: ‘enum power_states’ declared inside parameter list will not be visible outside of this definition or declaration
 void sys_power_state_post_ops(enum power_states state);


After this if we flash mcuboot + signed.hex, then that code is not
executing.
-----------------------------------------------------------------------------------------------------------------

To solve this issue temporarily, I executed

cd zephyr
git checkout <old commit>

& repeat the process. Here everything works perfectly normal.

That means some bug has recently introduced.





Marti Bolivar <marti@...>
 

Hi Vikrant,

Thanks for the report.

The warnings are a known issue; please see: https://github.com/zephyrproject-rtos/zephyr/issues/13194.

The reason mcuboot is not working with mainline zephyr is because this PR has not yet been merged:


You can apply mcuboot 405 to your local tree, build, and ignore the warnings for now until it is merged into mcuboot mainline. The power management warnings are unrelated.

Thanks,
Marti


On Sat, Feb 9, 2019, 12:30 PM vikrant8051 <vikrant8051@... wrote:
Hello,
I am getting following warning while building mcuboot :

warning: ‘enum power_states’ declared inside parameter list will not be visible outside of this definition or declaration
 void sys_power_state_post_ops(enum power_states state);


After this if we flash mcuboot + signed.hex, then that code is not
executing.
-----------------------------------------------------------------------------------------------------------------

To solve this issue temporarily, I executed

cd zephyr
git checkout <old commit>

& repeat the process. Here everything works perfectly normal.

That means some bug has recently introduced.





vikrant8051 <vikrant8051@...>
 

Hi Marti,
I followed your steps & its works for me.
Thank You !!


On Sun, Feb 10, 2019 at 1:50 AM Marti Bolivar <marti@...> wrote:
Hi Vikrant,

Thanks for the report.

The warnings are a known issue; please see: https://github.com/zephyrproject-rtos/zephyr/issues/13194.

The reason mcuboot is not working with mainline zephyr is because this PR has not yet been merged:


You can apply mcuboot 405 to your local tree, build, and ignore the warnings for now until it is merged into mcuboot mainline. The power management warnings are unrelated.

Thanks,
Marti


On Sat, Feb 9, 2019, 12:30 PM vikrant8051 <vikrant8051@... wrote:
Hello,
I am getting following warning while building mcuboot :

warning: ‘enum power_states’ declared inside parameter list will not be visible outside of this definition or declaration
 void sys_power_state_post_ops(enum power_states state);


After this if we flash mcuboot + signed.hex, then that code is not
executing.
-----------------------------------------------------------------------------------------------------------------

To solve this issue temporarily, I executed

cd zephyr
git checkout <old commit>

& repeat the process. Here everything works perfectly normal.

That means some bug has recently introduced.