Error in making startup script configuration in the Presense SDK

Asked 2 years ago, Updated 2 years ago, 40 views

I am a beginner who has just started the Pressense SDK.
I'd like to have it auto-booted, but I can't set it up because of a Make error.

environment

  • Build the latest version of the environment according to the spresense configuration
  • Same symptoms for both CLI and IDE

Symptoms

The configuration settings below are successful without errors, but errors occur during make.

./tools/config.py examples/hello feature/startup_script

「If you don't add feature/startup_script, you won't get a make error.

Error when making

CC:nsh_romfsetc.c
File included from nsh_romfsetc.c:34:
nsh_romfsetc.c:In function 'nsh_romfsetc':
nsh_romfsetc.c:89:28:error:'romfs_img_len' undeclared(first use in this function)
   89 | desc.nsectors = NSECTORS(romfs_img_len); /* The number of sensors in the RAM disk* /
      |                            ^~~~~~~~~~~~~
nsh.h:367:33:note:infinition of macro 'NSECTORS'
  367 | #defineNSECTORS(b)((b)+CONFIG_NSH_ROMFSSECTIZE-1)/CONFIG_NSH_ROMFSSECTIZE)
      |                                 ^
nsh_romfsetc.c:89:28:note:each undeclared identifier is reported only once for each function it appears in
   89 | desc.nsectors = NSECTORS(romfs_img_len); /* The number of sensors in the RAM disk* /
      |                            ^~~~~~~~~~~~~
nsh.h:367:33:note:infinition of macro 'NSECTORS'
  367 | #defineNSECTORS(b)((b)+CONFIG_NSH_ROMFSSECTIZE-1)/CONFIG_NSH_ROMFSSECTIZE)
      |                                 ^
nsh_romfsetc.c:91:19:error:'romfs_img' undeclared(first use in this function)
   91|desc.image=romfs_img; /*File system image*/
      |                   ^~~~~~~~~
make [4]:*** [/home/yozoi/spresense/sdk/apps/Application.mk:133: nsh_romfsetc.c.home.yozoi.spresense.sdk.apps.nshlib.o] Error 1
make[4]—Out of directory '/home/yozoi/spresense/sdk/apps/nshlib'
make[3]:*** [Makefile:42:/home/yozoi/spresense/sdk/apps/nshlib_all] Error 2
make[3]—Out of directory '/home/yozoi/spresense/sdk/apps'
make[2]:*** [Makefile:36:all] Error 2
make[2]—Out of directory '/home/yozoi/spresense/sdk/apps'
make[1]:***[tools/LibTargets.mk:210:/home/yozoi/spresense/sdk/apps/libapps.a] Error 2
make[1]—Out of directory '/home/yozoi/spresense/nuttx'
make:*** [Makefile:114:all] Error 2

spresense

2022-09-30 11:03

1 Answers

I am also using the latest SDKv2.5 below, so I tried it, but the build is ready.
https://github.com/sonydevworld/spresense/releases/tag/v2.5.0

If you have command operations such as git checkout, or if you have switched configurations, you might have extra files left.Why don't you do 'make distclean' and then try making again with the same config?


2022-09-30 11:03

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.