patacongo commented on PR #18408:
URL: https://github.com/apache/nuttx/pull/18408#issuecomment-3935293777

   Nx_bringup() just starts some threads and returns.  It does not exit.  See 
"Bring Up the System"; it is just a sequence of function calls and still exists 
after the bring-up is complete.  When it returns, it just falls through and 
becomes the IDLE loop.  Nothing starts the IDLE loop,  See "Enter to idleloop". 
 The IDLE was just created from nothing at power-up, what was the 
initialization thread is simple called the IDLE loop after that point.
   
   Maybe things have changed.  Can you show me where the initialization thread 
exits?  It shouldn't.  Can you show where the IDLE thread is created.  It 
should already exist.
   
   Greg
   
   
   ________________________________
   From: Mateusz Szafoni ***@***.***>
   Sent: Friday, February 20, 2026 5:17 AM
   To: apache/nuttx ***@***.***>
   Cc: patacongo ***@***.***>; Mention ***@***.***>
   Subject: Re: [apache/nuttx] boards: Simplify NuttX initialization (PR #18408)
   
   [https://avatars.githubusercontent.com/u/6563055?s=20&v=4]raiden00pl left a 
comment 
(apache/nuttx#18408)<https://github.com/apache/nuttx/pull/18408#issuecomment-3934482311>
   
   hi @patacongo<https://github.com/patacongo> :)
   
   I think nx_start() became IDLE thread:
   
   
https://github.com/apache/nuttx/blob/34f52384d870a8ded11e611441c615992f7d57cf/sched/init/nx_start.c#L749-L771
   
   Board late init (CONFIG_BOARD_LATE_INITIALIZE=y) just exit after work is 
done:
   
   
https://github.com/apache/nuttx/blob/34f52384d870a8ded11e611441c615992f7d57cf/sched/init/nx_bringup.c#L409-L417
   
   and finally some resources are freed:
   
   image.png (view on 
web)<https://github.com/user-attachments/assets/604538db-d59f-46f8-9389-9e5a0d2df28e>
   
   —
   Reply to this email directly, view it on 
GitHub<https://github.com/apache/nuttx/pull/18408#issuecomment-3934482311>, or 
unsubscribe<https://github.com/notifications/unsubscribe-auth/ABFUG6R3NEBHW2ILYZLLYN34M4CP7AVCNFSM6AAAAACVUO2FE6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTSMZUGQ4DEMZRGE>.
   You are receiving this because you were mentioned.Message ID: ***@***.***>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to