You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nuttx.apache.org by Xiang Xiao <xi...@gmail.com> on 2020/04/24 12:40:02 UTC

Re: Hi,Any body have some idea about both cpu can access TCP/IP stack in CPU like STM32h767

On Fri, Apr 24, 2020 at 4:48 PM <st...@163.com> wrote:
>
> Hi,
> I use STM32H767 that need both cpu can access TCP/IP .
> I read a lot of articles ,but can't find a way .
> I need 2 cpu run simultaneously,perhaps use same OS such as Nuttx  or
> different OS. (M7 run Nuttx and M4 run FreeRTOS)
> Can anybody give some advise ?

You have two choice:
1.Enable SMP. STM32H767 has two different CPUs(Cortex-M4 and Cortex-M7),
but since Cortex-M7 is superset Cortex-M4, it may possible to build NuttX
with Cortex-M4 but run on Cortex-M7 too if Cortex-M7 has the same external
view as Cortex-M4 and give up Cortex-M7 specific feature(e.g. cache...).
2.Enable AMP. NuttX fully integrate OpenAMP recently:
   https://github.com/OpenAMP/open-amp
   And build many drivers or subsystem on top of OpenAMP, so you can use
usrsock+rpmsg to achieve what you are asking:
[image: RpmsgNET1.JPG]
[image: RpmsgNET2.JPG]
And more..., you can get the more information from this presentation:
https://cwiki.apache.org/confluence/display/NUTTX/NuttX+And+OpenAMP
NuttX even has a demo run two NuttX simulator on PC communicate with each
other through OpenAMP framework:
boards\sim\sim\sim\configs\rpproxy
boards\sim\sim\sim\configs\rpserver
You can follow the instruction  in boards\sim\sim\sim\README.txt to try the
demo.
Since several patches are pending to merge:
https://github.com/OpenAMP/open-amp/pulls
You can't build the offical NuttX repo with OpenAMP directly. To simplify
the final user, I am preparing a new PR to download and apply these
patches. The work will upstream to NuttX repo in the next week. Please stay
tune the process.

>
> Thanks,
> Steelen
>
>
> steelen@163.com

Re: Hi,Any body have some idea about both cpu can access TCP/IP stack in CPU like STM32h767

Posted by Xiang Xiao <xi...@gmail.com>.
On Fri, Apr 24, 2020 at 8:40 PM Xiang Xiao <xi...@gmail.com>
wrote:

>
>
> On Fri, Apr 24, 2020 at 4:48 PM <st...@163.com> wrote:
> >
> > Hi,
> > I use STM32H767 that need both cpu can access TCP/IP .
> > I read a lot of articles ,but can't find a way .
> > I need 2 cpu run simultaneously,perhaps use same OS such as Nuttx  or
> > different OS. (M7 run Nuttx and M4 run FreeRTOS)
> > Can anybody give some advise ?
>
> You have two choice:
> 1.Enable SMP. STM32H767 has two different CPUs(Cortex-M4 and Cortex-M7),
> but since Cortex-M7 is superset Cortex-M4, it may possible to build NuttX
> with Cortex-M4 but run on Cortex-M7 too if Cortex-M7 has the same external
> view as Cortex-M4 and give up Cortex-M7 specific feature(e.g. cache...).
> 2.Enable AMP. NuttX fully integrate OpenAMP recently:
>    https://github.com/OpenAMP/open-amp
>    And build many drivers or subsystem on top of OpenAMP, so you can use
> usrsock+rpmsg to achieve what you are asking:
> [image: RpmsgNET1.JPG]
> [image: RpmsgNET2.JPG]
> And more..., you can get the more information from this presentation:
> https://cwiki.apache.org/confluence/display/NUTTX/NuttX+And+OpenAMP
> NuttX even has a demo run two NuttX simulator on PC communicate with each
> other through OpenAMP framework:
> boards\sim\sim\sim\configs\rpproxy
> boards\sim\sim\sim\configs\rpserver
> You can follow the instruction  in boards\sim\sim\sim\README.txt to try
> the demo.
> Since several patches are pending to merge:
> https://github.com/OpenAMP/open-amp/pulls
> You can't build the offical NuttX repo with OpenAMP directly. To simplify
> the final user, I am preparing a new PR to download and apply these
> patches. The work will upstream to NuttX repo in the next week. Please stay
> tune the process.
>
> >
>

Steelen & Ben,
With the below patch, you can try NuttX+OpenAMP in the simulator without
any special action:
https://github.com/apache/incubator-nuttx/pull/894


> > Thanks,
> > Steelen
> >
> >
> > steelen@163.com
>

Re: Re: Hi,Any body have some idea about both cpu can access TCP/IP stack in CPU like STM32h767

Posted by Xiang Xiao <xi...@gmail.com>.
Sure, I can provide some experience if needed.

On Sun, Apr 26, 2020 at 3:54 PM Disruptive Solutions <
disruptivesolutionsnl@gmail.com> wrote:

> I am interested in Open-Amp and maybe a Zoom webinar would be a nice idea?
> I could start something?
>
> Ben
>
> Op zo 26 apr. 2020 03:12 schreef steelen@163.com <st...@163.com>:
>
>>
>> Thanks a lot for your response.
>>
>> ------------------------------
>> steelen@163.com
>>
>>
>> *发件人:* Xiang Xiao <xi...@gmail.com>
>> *发送时间:* 2020-04-24 20:40
>> *收件人:* dev <de...@nuttx.apache.org>
>> *主题:* Re: Hi,Any body have some idea about both cpu can access TCP/IP
>> stack in CPU like STM32h767
>>
>>
>> On Fri, Apr 24, 2020 at 4:48 PM <st...@163.com> wrote:
>> >
>> > Hi,
>> > I use STM32H767 that need both cpu can access TCP/IP .
>> > I read a lot of articles ,but can't find a way .
>> > I need 2 cpu run simultaneously,perhaps use same OS such as Nuttx  or
>> > different OS. (M7 run Nuttx and M4 run FreeRTOS)
>> > Can anybody give some advise ?
>>
>> You have two choice:
>> 1.Enable SMP. STM32H767 has two different CPUs(Cortex-M4 and Cortex-M7),
>> but since Cortex-M7 is superset Cortex-M4, it may possible to build NuttX
>> with Cortex-M4 but run on Cortex-M7 too if Cortex-M7 has the same external
>> view as Cortex-M4 and give up Cortex-M7 specific feature(e.g. cache...).
>> 2.Enable AMP. NuttX fully integrate OpenAMP recently:
>>    https://github.com/OpenAMP/open-amp
>>    And build many drivers or subsystem on top of OpenAMP, so you can use
>> usrsock+rpmsg to achieve what you are asking:
>> [image: RpmsgNET1.JPG]
>> [image: RpmsgNET2.JPG]
>> And more..., you can get the more information from this presentation:
>> https://cwiki.apache.org/confluence/display/NUTTX/NuttX+And+OpenAMP
>> NuttX even has a demo run two NuttX simulator on PC communicate with each
>> other through OpenAMP framework:
>> boards\sim\sim\sim\configs\rpproxy
>> boards\sim\sim\sim\configs\rpserver
>> You can follow the instruction  in boards\sim\sim\sim\README.txt to try
>> the demo.
>> Since several patches are pending to merge:
>> https://github.com/OpenAMP/open-amp/pulls
>> You can't build the offical NuttX repo with OpenAMP directly. To simplify
>> the final user, I am preparing a new PR to download and apply these
>> patches. The work will upstream to NuttX repo in the next week. Please stay
>> tune the process.
>>
>> >
>> > Thanks,
>> > Steelen
>> >
>> >
>> > steelen@163.com
>>
>>

Re: Re: Hi,Any body have some idea about both cpu can access TCP/IP stack in CPU like STM32h767

Posted by Disruptive Solutions <di...@gmail.com>.
I am interested in Open-Amp and maybe a Zoom webinar would be a nice idea?
I could start something?

Ben

Op zo 26 apr. 2020 03:12 schreef steelen@163.com <st...@163.com>:

>
> Thanks a lot for your response.
>
> ------------------------------
> steelen@163.com
>
>
> *发件人:* Xiang Xiao <xi...@gmail.com>
> *发送时间:* 2020-04-24 20:40
> *收件人:* dev <de...@nuttx.apache.org>
> *主题:* Re: Hi,Any body have some idea about both cpu can access TCP/IP
> stack in CPU like STM32h767
>
>
> On Fri, Apr 24, 2020 at 4:48 PM <st...@163.com> wrote:
> >
> > Hi,
> > I use STM32H767 that need both cpu can access TCP/IP .
> > I read a lot of articles ,but can't find a way .
> > I need 2 cpu run simultaneously,perhaps use same OS such as Nuttx  or
> > different OS. (M7 run Nuttx and M4 run FreeRTOS)
> > Can anybody give some advise ?
>
> You have two choice:
> 1.Enable SMP. STM32H767 has two different CPUs(Cortex-M4 and Cortex-M7),
> but since Cortex-M7 is superset Cortex-M4, it may possible to build NuttX
> with Cortex-M4 but run on Cortex-M7 too if Cortex-M7 has the same external
> view as Cortex-M4 and give up Cortex-M7 specific feature(e.g. cache...).
> 2.Enable AMP. NuttX fully integrate OpenAMP recently:
>    https://github.com/OpenAMP/open-amp
>    And build many drivers or subsystem on top of OpenAMP, so you can use
> usrsock+rpmsg to achieve what you are asking:
> [image: RpmsgNET1.JPG]
> [image: RpmsgNET2.JPG]
> And more..., you can get the more information from this presentation:
> https://cwiki.apache.org/confluence/display/NUTTX/NuttX+And+OpenAMP
> NuttX even has a demo run two NuttX simulator on PC communicate with each
> other through OpenAMP framework:
> boards\sim\sim\sim\configs\rpproxy
> boards\sim\sim\sim\configs\rpserver
> You can follow the instruction  in boards\sim\sim\sim\README.txt to try
> the demo.
> Since several patches are pending to merge:
> https://github.com/OpenAMP/open-amp/pulls
> You can't build the offical NuttX repo with OpenAMP directly. To simplify
> the final user, I am preparing a new PR to download and apply these
> patches. The work will upstream to NuttX repo in the next week. Please stay
> tune the process.
>
> >
> > Thanks,
> > Steelen
> >
> >
> > steelen@163.com
>
>

Re: Re: Hi,Any body have some idea about both cpu can access TCP/IP stack in CPU like STM32h767

Posted by "steelen@163.com" <st...@163.com>.
Thanks a lot for your response.



steelen@163.com
 
发件人: Xiang Xiao
发送时间: 2020-04-24 20:40
收件人: dev
主题: Re: Hi,Any body have some idea about both cpu can access TCP/IP stack in CPU like STM32h767


On Fri, Apr 24, 2020 at 4:48 PM <st...@163.com> wrote:
>
> Hi,
> I use STM32H767 that need both cpu can access TCP/IP .
> I read a lot of articles ,but can't find a way .
> I need 2 cpu run simultaneously,perhaps use same OS such as Nuttx  or
> different OS. (M7 run Nuttx and M4 run FreeRTOS)
> Can anybody give some advise ?

You have two choice:
1.Enable SMP. STM32H767 has two different CPUs(Cortex-M4 and Cortex-M7), but since Cortex-M7 is superset Cortex-M4, it may possible to build NuttX with Cortex-M4 but run on Cortex-M7 too if Cortex-M7 has the same external view as Cortex-M4 and give up Cortex-M7 specific feature(e.g. cache...).
2.Enable AMP. NuttX fully integrate OpenAMP recently:
   https://github.com/OpenAMP/open-amp
   And build many drivers or subsystem on top of OpenAMP, so you can use usrsock+rpmsg to achieve what you are asking:

And more..., you can get the more information from this presentation:
https://cwiki.apache.org/confluence/display/NUTTX/NuttX+And+OpenAMP
NuttX even has a demo run two NuttX simulator on PC communicate with each other through OpenAMP framework:
boards\sim\sim\sim\configs\rpproxy
boards\sim\sim\sim\configs\rpserver
You can follow the instruction  in boards\sim\sim\sim\README.txt to try the demo.
Since several patches are pending to merge:
https://github.com/OpenAMP/open-amp/pulls
You can't build the offical NuttX repo with OpenAMP directly. To simplify the final user, I am preparing a new PR to download and apply these patches. The work will upstream to NuttX repo in the next week. Please stay tune the process.

>
> Thanks,
> Steelen
>
>
> steelen@163.com