michallenc commented on issue #18384: URL: https://github.com/apache/nuttx/issues/18384#issuecomment-3891770523
> I was thinking a different scenario could be (the other way around) since nxboot already initializes some peripherals, maybe when NuttX starts it could skip re-initializing all the peripherals that were initialized by the nxboot. [@michallenc](https://github.com/michallenc) what do you think? Yes, that could be beneficial. I already have one workaround with NXboot on SAMv7, because watchdog on this processor can't be turned off when already started. I already set it up in the bootloader, but then I skip the initialization after the jump to actual firmware - the logic expects it initializes the watchdog from off state and fails otherwise, so I can't run it. I suppose this could be beneficial for other peripherals, maybe skip clock initialization and so on? The other possibility, which I use a lot, is to limit bootloader initialization as much as possible and initialize only the peripherals I need - serial port, some flash driver and watchdog. It requires two configuration - one minimal and one full. I think the user is usually forced to do this anyway, because he wants to keep bootloader program size as low as possible. -- 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]
