Code that writes/erase flash can't be executed from flash. Everything that is related to write is put in RAM, interrupt are also disabled. Code put in .data.xxx section it will be copied to ram during startup so it can be execute from there while automatic reading from flash is disabled.
Jerzy czw., 11 sie 2022 o 04:43 范姜徐霖 <jackfa...@gmail.com> napisał(a): > I wonder why add attribute " .data.xxx" on flash functions ? these flash > funcs will be put on data section, not on code section. > > Jack > > Jerzy Kasenberg <jerzy.kasenb...@codecoup.pl> 於 2022年8月3日 週三 晚上8:01寫道: > > > Hi Jack > > > > This warning is fixed by https://github.com/apache/mynewt-core/pull/2860 > > Expect it to be merged soon. > > > > br > > Jerzy > > > > wt., 2 sie 2022 o 17:27 范姜徐霖 <jackfa...@gmail.com> napisał(a): > > > > > I try blinky project, and target use bsp/hifive, and I get the warning > > > message. > > > this can be fixed or not ? > > > > > > Jack > > > > > >