thanks you for helping me find the solution, i replaced my custom apps dir with your to try, but the same problem happen, i think there may be a problem with my configuration. How do i know what name should i type in "*Application entry point"* so that it point to the custom hello main (from CustomHello.c) and that nuttx start with my "custom hello" program where i can do what i want into ?
The menuconfig window where i find *"Application entry point"* :
-------------------
(Top) → RTOS Features → Tasks and Scheduling
↑↑↑↑↑↑↑↑↑↑↑↑↑↑ NuttX/$ARCH Configuration
[ ] Enable multi handler sharing a IRQ
    Initialization Task (Via application entry)  --->
()  Application argument list
(2048) Main thread stack size
(100) init thread priority
*(CustomHello) Application entry point*
(CustomHello) Application entry name
(200) Round robin timeslice (MSEC)
[ ] Support sporadic scheduling
(31) Maximum task name size
[ ] Support parent/child task relationships
[*] Enable waitpid() API
    ↓↓↓↓↓↓↓↓↓↓↓↓↓↓
[Space/Enter] Toggle/enter  [ESC] Leave menu           [S] Save
[O] Load                    [?] Symbol info            [/] Jump to symbol
[F] Toggle show-help mode   [C] Toggle show-name mode  [A] Toggle show-all mode
[Q] Quit (prompts for save) [D] Save minimal config (advanced)

Thanks you in advance,
Justin Linotte

Le 18-07-24 à 20:52, Alan C. Assis a écrit :
Hi Linotte,

Thanks for testing our tutorials, it is important to validate and find
issues.

I followed the tutorial here (this is the first time I do it) and it worked
fine (although copying the text from page removes the comments #)

I compressed by CustomApps and shared it:

https://u.pcloud.link/publink/show?code=XZPzJP0Zh3fACWyHaOHTdsEA8Glg5VmGFwy7

Extract it and use some diff tool like meld to compare files and to
discover what you did wrong.

BR,

Alan

On Thu, Jul 18, 2024 at 3:01 PM Linotte Justin ...<lutinjisno...@gmail.com>
wrote:

hello, i hope my question doesn't bother you, i'm an amateur, not a pro
with 40y of experience so it may be dumb for you. i'm also an amateur in
english btw

when i do make like advised here :

https://nuttx.apache.org/docs/latest/quickstart/compiling_make.html#build-nuttx
i get this :

:~/pico/nuttx/nuttx$ make
Create version.h
LN: platform/board to /home/default/pico/nuttx/apps/platform/dummy
Register: custom_hello
Register: hello
Register: nsh
Register: sh
Register: getprime
Register: ostest
CPP:
/home/default/pico/nuttx/nuttx/boards/arm/rp2040/raspberrypi-pico/scripts/raspberrypi-pico-flash.ld->

/home/default/pico/nuttx/nuttx/boards/arm/rp2040/raspberrypi-pico/scrLD:
nuttx
arm-none-eabi-ld:
/home/default/pico/nuttx/nuttx/staging/libapps.a(builtin_list.c.home.default.pico.nuttx.apps.builtin_1.o):(.rodata.g_builtins+0xc):

undefined reference to `custom_hello_main'
make[1]: *** [Makefile:197: nuttx] Error 1
make: *** [tools/Unix.mk:546: nuttx] Error 2

i try to "Extend the apps/ directory to include a new custom directory"
to use my own code into nuttx :

https://nuttx.apache.org/docs/latest/guides/customapps.html#extend-the-apps-directory-to-include-a-new-custom-directory

i've configured with menuconfig
rtos features>tasks and scheduling>application entry point to
custom_hello (not custom_hello_main)
application configuration>Custom Apps>[*]Custom Hello App
        >program Name is set to custom_hello

I don't know how i can know the real name of the entrypoint and also how
i can resolve the error when building withmake. i also followed that :

https://nuttx.apache.org/docs/latest/faq/index.html#how-to-start-directly-my-application-instead-starting-nsh
this doesn't explain how you know the ENTRYPOINT name
i'm a bit confused on what to do (maybe you are too because of how i write)
thank you if you can help !

Reply via email to