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.
very long compile/build time for examples
-
This post is deleted! -
Hi, @maxieaussie-0
I haven't used MSYS2 personally, but I've seen other users here on the forum also experience long build times with it.
The performance is much better on Ubuntu or Windows 11 with WSL2.
https://developer.sony.com/develop/spresense/docs/sdk_set_up_en.html#_setup_for_windows_11_for_wsl2We don't officially support WSL2 on Windows 10 and I haven't tried it myself either.. But I've seen resources online teaching how to install WSL2 on Windows 10. So maybe you can give that a try?
If you do and it works, please come back to this topic and let me know
-
@CamilaSouza I've just tried hello world, that super simple example took 48 minutes lol. Thanks for the tips, I have a spare machine and will install ubuntu as you suggested (I am actually more of a linux/unix person)
-
@maxieaussie-0 That's even better. I use ubuntu myself too
-
@maxieaussie-0 I see your are back to the gs2200m?
I also currently work based on the multiwebcam. A modified version (added asw-iot, webclient, cJSON, some drivers for i2c sensors)
clean compiles in 70s, recompiles in 25s and cleans in 25s on a Mac Mini 2018.
This is what you can expect from Ubuntu, I guess.However
- you need to manually add the -j to all make commands incl. the make clean to achieve this. -j is still no default
And I think for a recompile (just added a newline to a file) this is too long.
@CamilaSouza Since the latest SDK release around March, opening the configuration Window in VSCode takes about 3 Minutes! VSCode asks me >5 times if I want to kill the workspace. Before this release it was about 30 seconds. In my opinion the current time is not acceptable anymore.
Other thing ...
@maxieaussie-0 You probably need to increase some stacks? I also experienced crashes (latest after using ssl). There are different defaults (2 vs 8KB) when you have your task defined to autostart and when you start it via nsh.Also the finding the correct configuration for the gs2200m was not straight forward as the documentation was misleading for me (should I use DNS via nuttx or via gs2200m??)
This is what worked for me
- create an autostart script according to https://developer.sony.com/develop/spresense/docs/sdk_tutorials_en.html#_start_up_script
Example
gs2200m ssid password & sleep 1 renew wlan0 ifconfig ntpcstart date # birdCam
This is my current config (for reference if it helps)
make savedefconfig # # This file is autogenerated: PLEASE DO NOT EDIT IT. # # You can use "make menuconfig" to make any modifications to the installed .config file. # You can then do "make savedefconfig" to generate a new defconfig file that includes your # modifications. # # CONFIG_ARCH_LEDS is not set # CONFIG_CXD56_I2C0_SCUSEQ is not set # CONFIG_MMCSD_MMCSUPPORT is not set # CONFIG_MMCSD_SPI is not set # CONFIG_MTD_SMART_WEAR_LEVEL is not set # CONFIG_NDEBUG is not set # CONFIG_NSH_NETINIT is not set # CONFIG_STANDARD_SERIAL is not set CONFIG_ARCH="arm" CONFIG_ARCH_BOARD="spresense" CONFIG_ARCH_BOARD_COMMON=y CONFIG_ARCH_BOARD_SPRESENSE=y CONFIG_ARCH_CHIP="cxd56xx" CONFIG_ARCH_CHIP_CXD56XX=y CONFIG_ARCH_INTERRUPTSTACK=2048 CONFIG_ARCH_STACKDUMP=y CONFIG_ARMV7M_USEBASEPRI=y CONFIG_BATTERY_CHARGER=y CONFIG_BATTERY_GAUGE=y CONFIG_BOARDCTL_IOCTL=y CONFIG_BOARDCTL_POWEROFF=y CONFIG_BOARDCTL_RESET=y CONFIG_BOARDCTL_UNIQUEID=y CONFIG_BOARDCTL_UNIQUEID_SIZE=5 CONFIG_BOARDCTL_USBDEVCTRL=y CONFIG_BOARD_CRASHDUMP=y CONFIG_BOARD_INITTHREAD_STACKSIZE=5000 CONFIG_BOARD_LATE_INITIALIZE=y CONFIG_BOARD_LOOPSPERMSEC=5434 CONFIG_BOOT_RUNFROMISRAM=y CONFIG_BUILTIN=y CONFIG_CDCACM=y CONFIG_CDCACM_EPBULKIN=4 CONFIG_CDCACM_EPBULKOUT=5 CONFIG_CDCACM_EPINTIN=6 CONFIG_CDCACM_PRODUCTID=0x0bc2 CONFIG_CDCACM_RXBUFSIZE=3080 CONFIG_CDCACM_VENDORID=0x054c CONFIG_CDCACM_VENDORSTR="SONY" CONFIG_CXD56_BINARY=y CONFIG_CXD56_CISIF=y CONFIG_CXD56_DMAC_SPI5_TX_MAXSIZE=131072 CONFIG_CXD56_I2C0=y CONFIG_CXD56_I2C2=y CONFIG_CXD56_I2C=y CONFIG_CXD56_I2C_DRIVER=y CONFIG_CXD56_PWM=y CONFIG_CXD56_RESET_ON_CRASH=y CONFIG_CXD56_SDIO=y CONFIG_CXD56_SPI=y CONFIG_CXD56_UART2=y CONFIG_DEBUG_FULLOPT=y CONFIG_DEBUG_HARDFAULT_ALERT=y CONFIG_DEBUG_SYMBOLS=y CONFIG_DEFAULT_TASK_STACKSIZE=3000 CONFIG_DHCPC_RENEW_STACKSIZE=2048 CONFIG_DRIVERS_VIDEO=y CONFIG_DRIVERS_WIRELESS=y CONFIG_EXAMPLES_SPRESENSE_WGET=y CONFIG_EXTERNALS_AWSIOT=y CONFIG_EXTERNALS_AWSIOT_AWS_IOT_MQTT_TX_BUF_LEN=131072 CONFIG_EXTERNALS_AWSIOT_DISABLE_METRICS=y CONFIG_EXTERNALS_AWSIOT_ENABLE_IOT_ERROR=y CONFIG_EXTERNALS_AWSIOT_ENABLE_IOT_WARN=y CONFIG_EXTERNALS_MBEDTLS=y CONFIG_FAT_LCNAMES=y CONFIG_FAT_LFN=y CONFIG_FS_FAT=y CONFIG_FS_FATTIME=y CONFIG_FS_PROCFS=y CONFIG_FS_PROCFS_REGISTER=y CONFIG_FS_ROMFS=y CONFIG_FS_SMARTFS=y CONFIG_HAVE_CXX=y CONFIG_HEAP_COLORATION=y CONFIG_HOST_MACOS=y CONFIG_IDLETHREAD_STACKSIZE=2096 CONFIG_INIT_ENTRYPOINT="spresense_main" CONFIG_INIT_STACKSIZE=8192 CONFIG_LCD=y CONFIG_LCD_NOGETRUN=y CONFIG_LCD_ON_MAIN_BOARD=y CONFIG_LIBCXX=y CONFIG_LIBC_KBDCODEC=y CONFIG_LIBM=y CONFIG_MMCSD=y CONFIG_MMCSD_SDIO=y CONFIG_MQ_MAXMSGSIZE=64 CONFIG_MTD_BYTE_WRITE=y CONFIG_MTD_SMART=y CONFIG_MTD_SMART_ENABLE_CRC=y CONFIG_MTD_SMART_FSCK=y CONFIG_MTD_SMART_SECTOR_SIZE=4096 CONFIG_NAME_MAX=64 CONFIG_NET=y CONFIG_NETDB_DNSCLIENT=y CONFIG_NETDB_DNSCLIENT_NAMESIZE=255 CONFIG_NETDB_DNSSERVER_IPv4ADDR=0x8080808 CONFIG_NETDEVICES=y CONFIG_NETUTILS_CJSON=y CONFIG_NETUTILS_DHCPD=y CONFIG_NETUTILS_DHCPD_STACKSIZE=2048 CONFIG_NETUTILS_WEBCLIENT=y CONFIG_NET_BROADCAST=y CONFIG_NET_ETH_PKTSIZE=1294 CONFIG_NET_ICMP_NO_STACK=y CONFIG_NET_TCP_NO_STACK=y CONFIG_NET_UDP_NO_STACK=y CONFIG_NET_USRSOCK=y CONFIG_NET_USRSOCK_UDP=y CONFIG_NSH_ARCHINIT=y CONFIG_NSH_BUILTIN_APPS=y CONFIG_NSH_CUSTOMROMFS=y CONFIG_NSH_CUSTOMROMFS_HEADER="../../nsh_romfsimg.h" CONFIG_NSH_DISABLE_LOSMART=y CONFIG_NSH_LINELEN=160 CONFIG_NSH_MAXARGUMENTS=16 CONFIG_NSH_READLINE=y CONFIG_NSH_ROMFSETC=y CONFIG_NXFONTS_DISABLE_16BPP=y CONFIG_NXFONTS_DISABLE_1BPP=y CONFIG_NXFONTS_DISABLE_24BPP=y CONFIG_NXFONTS_DISABLE_2BPP=y CONFIG_NXFONTS_DISABLE_32BPP=y CONFIG_NXFONTS_DISABLE_4BPP=y CONFIG_NXFONTS_DISABLE_8BPP=y CONFIG_POSIX_SPAWN_PROXY_STACKSIZE=2096 CONFIG_PREALLOC_TIMERS=4 CONFIG_PTHREAD_STACK_DEFAULT=2048 CONFIG_PWM=y CONFIG_RAM_SIZE=1572864 CONFIG_RAM_START=0x0d000000 CONFIG_READLINE_CMD_HISTORY=y CONFIG_READLINE_CMD_HISTORY_LINELEN=160 CONFIG_READLINE_TABCOMPLETION=y CONFIG_RR_INTERVAL=200 CONFIG_RTC=y CONFIG_RTC_ALARM=y CONFIG_RTC_DRIVER=y CONFIG_RTC_FREQUENCY=32768 CONFIG_RTC_HIRES=y CONFIG_SCHED_BACKTRACE=y CONFIG_SCHED_CHILD_STATUS=y CONFIG_SCHED_HAVE_PARENT=y CONFIG_SCHED_HPWORK=y CONFIG_SCHED_HPWORKSTACKSIZE=4096 CONFIG_SCHED_LPNTHREADS=3 CONFIG_SCHED_LPWORKSTACKSIZE=3500 CONFIG_SCHED_WAITPID=y CONFIG_SDIO_MUXBUS=y CONFIG_SERIAL_TERMIOS=y CONFIG_SMARTFS_ALIGNED_ACCESS=y CONFIG_SMARTFS_MAXNAMLEN=30 CONFIG_SMARTFS_MULTI_ROOT_DIRS=y CONFIG_SPECIFIC_DRIVERS=y CONFIG_SPRESENSE_EXTENSION=y CONFIG_STACK_COLORATION=y CONFIG_START_DAY=6 CONFIG_START_MONTH=12 CONFIG_START_YEAR=2011 CONFIG_SYSTEM_CLE=y CONFIG_SYSTEM_DHCPC_RENEW=y CONFIG_SYSTEM_LOGDUMP=y CONFIG_SYSTEM_LOGSAVE=y CONFIG_SYSTEM_NSH=y CONFIG_SYSTEM_NSH_STACKSIZE=4096 CONFIG_SYSTEM_NTPC=y CONFIG_SYSTEM_PING=y CONFIG_SYSTEM_PING_STACKSIZE=2048 CONFIG_TASK_SPAWN_DEFAULT_STACKSIZE=2048 CONFIG_UART1_RXBUFSIZE=1024 CONFIG_UART1_SERIAL_CONSOLE=y CONFIG_UART1_TXBUFSIZE=1024 CONFIG_UART2_IFLOWCONTROL=y CONFIG_UART2_OFLOWCONTROL=y CONFIG_USBDEV=y CONFIG_USBDEV_DMA=y CONFIG_USBDEV_DUALSPEED=y CONFIG_USBMSC=y CONFIG_USBMSC_EPBULKIN=1 CONFIG_USBMSC_PRODUCTID=0x0bc2 CONFIG_USBMSC_REMOVABLE=y CONFIG_USBMSC_SCSI_STACKSIZE=2048 CONFIG_USBMSC_VENDORID=0x054c CONFIG_USBMSC_VENDORSTR="Sony" CONFIG_VIDEO_ISX012=y CONFIG_VIDEO_ISX019=y CONFIG_VIDEO_STREAM=y CONFIG_WIRELESS_GS2200M=y CONFIG_WIRELESS_GS2200M_STACKSIZE=4096 CONFIG_WL_GS2200M=y CONFIG_WL_GS2200M_DISABLE_DHCPC=y CONFIG_WL_GS2200M_SPI_FREQUENCY=10000000
-
-
@jens6151-0-1-1 Thank Jen! My original plan was to simply use as an http client uploading image files only to a web server (using POST) but I thought I will check out this example first. Yes I am still getting that crash with "Assertion failed at file:wireless/gs2200m.c line: 897 task: lpwork"
-
@maxieaussie-0 with ubuntu it takes 2 minutes for the webcam example which is what I expected! (still getting the same crash though). I noticed my Windows machine was running low in disk space . This could be a factor that slowed down MSYS2 as well
-
Hi, @maxieaussie-0
Did you try @jens6151-0-1-1 tips about increasing stack and correct configuration?
-
Hi @jens6151-0-1-1
Thank you for letting me know about the longer time for opening the configuration window on VS Code!
Let me investigate this one.
-
@CamilaSouza I am already happy with my ubuntu but will try too later (got dragged to do another thing) thanks!