Re: ideas for managing the two cores of K230

2024-01-21 Thread Gregory Nutt
In general you would have to have two copies of NuttX and run them AMP.  
A single OS with multiple CPUs would require SMP.  SMP generally 
requires that the CPUs appear identical in the two CPU address spaces 
(with the exception of interrupts).


There was a long email thread discussing this exact topic a couple of 
months back.  That email list is difficult to search, however.  
https://lists.apache.org/list.html?dev@nuttx.apache.org I couldn't find it.


There are lots of issues that you would have to address.  Like cache 
coherency and that fact that that one CPU is slower than the other 
(destroying deterministic, real time behavior).  There were other 
issues, but I don't recall.


The best solution if the CPUs are not identical is to use AMP. NuttX 
supports OpenAMP.  you can see that in nuttx/OpenAMP.  There are a few 
examples in the tree too.


On 1/21/2024 8:22 PM, yfliu2008 wrote:

Dear experts,





The K230 chip I am using has two RISC-V cores with separate L2 cache, CLINT 
PLIC, their frequencies are different, the big core has vector extension which 
the little one doesn't have. The big core can be turned on/off by the little 
core.







How can we manage these two cores with NuttX? do we have to run an instance of 
NuttX on each core?






Is OpenAMP also needed?







I guess some other multi-core chips might also have similar questions, so 
please teach if there are any ideas.





Regards,

yf


critical error handling (crash/assert/watchdog/bod/reset)

2024-01-21 Thread Tomek CEDRO
Hello world :-)

I am working on the ESP32 firmware for device that controls a quite
powerful and fast 3-phase motor. This motor is handled with 5 relays
(2 x direction, 2 x speed, 1 x brake). The initial firmware works, but
sometimes application crashes or worse hangs leaving the motor active!
I am unable to trace cause with a simple UART log while JTAG pins are
already used ones for control. Failure reaction needs to be rapid.

I would like to handle all possible fault states and put motor to stop
on any sort of error (crash/assert/watchdog/bod/reset).

What would be the best approach in NuttX and ESP32? Watchdog and Reset handler?

Any hints appreciated :-)
Tomek

--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info


Re: NuttX Workshop 2024 - event planning

2024-01-21 Thread Alin Jerpelea
Hi all,

time is flying and we are almost at the end of January

I think that we should have a live meeting to plan the website and open the
CFP to give people time plan the trip. I would recommend to host the event
Thursday-Friday to avoid the jet-lag and encourage local participation .

What do you think ?

I gathered some practical information that should be shared ASAP

*Flight*
According to https://www.momondo.se most common airports have a lower price
during 10-17 Jun (Monday - Monday trip) if people want to attend the
conference and spend some time in Tokyo or visit Japan.
There are 2 major airports Haneda(close to the city) and Narita (1H15 with
the  Narita Express train to the city)

*Accommodation*
My colleagues from Sony checked the hotels and provided a good
recommendation at https://www.princehotels.com/shinagawa/ (5 Minutes walk
to the train station)
Other options are https://www.airbnb.com and booking.com to find something
that suits your taste

*Mobile Data*
internet is vital for all of us and can be expensive for visitors. It is
commanded to buy a 10 Days Data only SIM from the airport (if you forget to
buy ask Alin Jerpelea for opportunities to buy the SIM)


*Transportation in Japan*
Proffered transportation is train. for payments you can buy tickets or
install the SUICA application on your phone to pass the train station gates

English language can be used in Tokyo to communicate with people on the
street if you need directions

If you plan to attend the event please plan in advance to benefit from
lower prices and keep us informed so that we can plan the venue and the
activities. (+1 is encouraged if you plan to enjoy Japan)

Best regards
Alin

On Sat, Jan 13, 2024 at 2:48 AM Alan C. Assis  wrote:

> Hi Alin,
> Thanks for confirming that Sony will be able to host our VI NuttX
> International Workshop!
>
> I think summer (after May) will be nice!
>
> So, although it is enough time, we need to define the date soon, because
> for people far from Japan the flight could be very expensive because we
> delay buying it.
>
> I hope we need more people involved in the event organization because it
> takes a lot of time and energy. As usual I'm here to help!
>
> BR,
>
> Alan
>
> On Fri, Jan 12, 2024 at 6:25 AM alin.jerpe...@sony.com <
> alin.jerpe...@sony.com> wrote:
>
> > Hi all,
> >
> > A new year started and we should start planning for the yearly workshop
> >
> > This year Sony offered to host the workshop in Tokyo, Japan as it as
> > planned on 2020 (the in person event was canceled due to Covid)
> >
> > Sony proposed the following periods for the event and will come back with
> > practical information for attending the event
> > 20 May - 16 June (better weather/beautiful nature)
> > 1-15 September (may be rainy)
> >
> > I would like to ask for volunteers to help organizing the event and
> > opinions regarding the dates
> >
> > Best regards
> > Alin
> >
> >
> >
>