Upcoming maintenance
Dear Customers and Partners.
This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.
This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.
We apologize for any inconvenience.
Auto running code on reset
-
Sir,
Currently, the program runs when the particular function is called in the terminal. Is there a method to run main() automatically when its reset each time ? (SDK programming)Thank you
-
It is described here: https://developer.sony.com/develop/spresense/docs/sdk_developer_guide_en.html#_board_initialization_process
- Change the user entry point using
CONFIG_USER_ENTRYPOINT
configuration to your function. - Add to the beginning of your main function:
boardctl(BOARDIOC_INIT, 0);
If you want to use SD card then check out a similar post here: https://forum.developer.sony.com/topic/111/how-to-set-player_main-as-the-sdk-application-entry-point
Best Regards,
Kamil Tomaszewski - Change the user entry point using
-
@kamiltomaszewski Sir, how to implement step 1? Should I change CONFIG_USER_ENTRYPOINT="spresense_main" in sdk.config file of my project to CONFIG_USER_ENTRYPOINT="serial_on_off_main" ? (Given my application name is serial_on_off.c).
Also another small doubt, how to power the extension board externally ? Because I'm unable to get the internal wiring diagram of the extension board and is there a pin connected to the input of LDO inside ?
Thanking you.
-
To reconfigure, go to the SDK configuration as shown here: https://developer.sony.com/develop/spresense/docs/sdk_set_up_ide_en.html#_sdk_configuration. Then search for
CONFIG_USER_ENTRYPOINT
and change toserial_on_off_main
. ClickSave
to save.You can find all diagrams here: https://developer.sony.com/develop/spresense/docs/hw_design_en.html
Additionally, if you are interested in power supply, please see this:
https://developer.sony.com/develop/spresense/docs/hw_docs_en.html#_regarding_power_supply_when_connecting_externally_connected_devices_to_the_spresense_boardI think that should answer your questions. If not, let me know.
Best Regards,
Kamil Tomaszewski -
@kamiltomaszewski Thank you sir. User entry point configuration was successful and I understood regarding the external powering up from the diagram.