You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mynewt.apache.org by 范姜徐霖 <ja...@gmail.com> on 2022/08/02 15:27:37 UTC
Warning: set incorrect section attributes for .data.fe310_flash_transmit
I try blinky project, and target use bsp/hifive, and I get the warning
message.
this can be fixed or not ?
Jack
Re: Warning: set incorrect section attributes for .data.fe310_flash_transmit
Posted by Jerzy Kasenberg <je...@codecoup.pl>.
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 范姜徐霖 <ja...@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 <je...@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 范姜徐霖 <ja...@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
> > >
> >
>
Re: Warning: set incorrect section attributes for .data.fe310_flash_transmit
Posted by 范姜徐霖 <ja...@gmail.com>.
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 <je...@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 范姜徐霖 <ja...@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
> >
>
Re: Warning: set incorrect section attributes for .data.fe310_flash_transmit
Posted by Jerzy Kasenberg <je...@codecoup.pl>.
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 范姜徐霖 <ja...@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
>