Hello,

Confirming: it is not working.

I tried to see the syslog messages on an UART port while using
nutshell on usb but it didn't work.

Best regards,

Flavio

Em dom., 17 de jan. de 2021 às 13:52, Gregory Nutt
<spudan...@gmail.com> escreveu:
>
> I don't think that this combination will work:
>
> CONFIG_CDCACM_CONSOLE=y
> CONFIG_CONSOLE_SYSLOG=y
>
> I think that the syslog console device would have to be available at
> bootup. Normally a RAM log is is used to hold syslog data if a USB
> console is used.
>
> I might be wrong about that and this should not prevent the USB device
> connecting.
>
> On 1/17/2021 9:10 AM, Flavio Castro Alves Filho wrote:
> > Thank you very much for your fast response.
> >
> > I checked the boot calls and they are the same, regarding USB 
> > initialization.
> >
> > I compared the include/nuttx/config.h files too ... at least regarding
> > USB, I couldn't see anything critical.
> >
> > The development approach that I am working was exactly starting with
> > stm32discovery board and increasing features. Maybe I have to restart,
> > checking first the USB.
> >
> > Best regards,
> >
> > Flavio
> >
> > Em dom., 17 de jan. de 2021 às 11:39, Grr <gebbe...@gmail.com> escreveu:
> >> What you can do is compare .config generated from that defconfig to .config
> >> generated from "./tools/configure.sh -l stm32f4discovery:usbnsh" and see
> >> the differences. You can also compare include/nuttx/config.h from both
> >> configs
> >>
> >> Another approach is to start from discovery config and do the modifications
> >> for your board. After you have it working, clone the config to a different
> >> board name. With "make savedefconfig" you can save your working defconfig
> >>
> >> El dom, 17 ene 2021 a las 7:51, Flavio Castro Alves Filho (<
> >> flavio.al...@gmail.com>) escribió:
> >>
> >>> As an additional information, if I load the STM32F4DISCO on my board, USB
> >>> works.
> >>>
> >>> Em dom., 17 de jan. de 2021 às 10:43, Flavio Castro Alves Filho
> >>> <flavio.al...@gmail.com> escreveu:
> >>>> Hello,
> >>>>
> >>>> I am working to port NuttX on a board based on STM32F4DISCOVERY. The
> >>>> microcontroller is the STM32F407VET6.
> >>>>
> >>>> USB CDC support is not initializing.
> >>>>
> >>>> When I plug the USB on the board, I have the following dmesg response in
> >>> Linux:
> >>>> [517062.075048] usb usb1-port2: attempt power cycle
> >>>> [517062.726922] usb 1-2: new full-speed USB device number 47 using
> >>> xhci_hcd
> >>>> [517062.727170] usb 1-2: Device not responding to setup address.
> >>>> [517062.935148] usb 1-2: Device not responding to setup address.
> >>>> [517063.142906] usb 1-2: device not accepting address 47, error -71
> >>>> [517063.270916] usb 1-2: new full-speed USB device number 48 using
> >>> xhci_hcd
> >>>> [517063.271141] usb 1-2: Device not responding to setup address.
> >>>> [517063.479134] usb 1-2: Device not responding to setup address.
> >>>>
> >>>> When I run stm32f4discovery:usbnsh on my discovery board, it works.
> >>>>
> >>>> I compared the defconfig from the base project and from mine and I
> >>>> believe I have initialized everything that is related to the USB.
> >>>>
> >>>> Here is the defconfig for my board:
> >>>>
> >>>> #
> >>>> # 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_FPU is not set
> >>>> # CONFIG_MMCSD_MMCSUPPORT is not set
> >>>> # CONFIG_MMCSD_SPI is not set
> >>>> # CONFIG_NSH_ARGCAT is not set
> >>>> # CONFIG_NSH_CMDOPT_HEXDUMP is not set
> >>>> # CONFIG_NSH_CMDPARMS is not set
> >>>> CONFIG_ADC=y
> >>>> CONFIG_ANALOG=y
> >>>> CONFIG_ARCH="arm"
> >>>> CONFIG_ARCH_BOARD="phi-innovations"
> >>>> CONFIG_ARCH_BOARD_STM32F4_PHI_IOT_GATEWAY=y
> >>>> CONFIG_ARCH_CHIP="stm32"
> >>>> CONFIG_ARCH_CHIP_STM32=y
> >>>> CONFIG_ARCH_CHIP_STM32F407VG=y
> >>>> CONFIG_ARCH_STACKDUMP=y
> >>>> CONFIG_ARMV7M_MEMCPY=y
> >>>> CONFIG_BOARDCTL_RESET=y
> >>>> CONFIG_BOARDCTL_UNIQUEID=y
> >>>> CONFIG_BOARDCTL_USBDEVCTRL=y
> >>>> CONFIG_BOARD_LOOPSPERMSEC=16717
> >>>> CONFIG_BUILTIN=y
> >>>> CONFIG_CDCACM=y
> >>>> CONFIG_CDCACM_CONSOLE=y
> >>>> CONFIG_CDCACM_RXBUFSIZE=256
> >>>> CONFIG_CDCACM_TXBUFSIZE=256
> >>>> CONFIG_CLOCK_MONOTONIC=y
> >>>> CONFIG_CONSOLE_SYSLOG=y
> >>>> CONFIG_DEBUG_ASSERTIONS=y
> >>>> CONFIG_DEBUG_DMA=y
> >>>> CONFIG_DEBUG_DMA_ERROR=y
> >>>> CONFIG_DEBUG_DMA_INFO=y
> >>>> CONFIG_DEBUG_DMA_WARN=y
> >>>> CONFIG_DEBUG_ERROR=y
> >>>> CONFIG_DEBUG_FEATURES=y
> >>>> CONFIG_DEBUG_FS=y
> >>>> CONFIG_DEBUG_FS_ERROR=y
> >>>> CONFIG_DEBUG_FS_WARN=y
> >>>> CONFIG_DEBUG_FULLOPT=y
> >>>> CONFIG_DEBUG_HARDFAULT_ALERT=y
> >>>> CONFIG_DEBUG_INFO=y
> >>>> CONFIG_DEBUG_NET=y
> >>>> CONFIG_DEBUG_NET_ERROR=y
> >>>> CONFIG_DEBUG_NET_INFO=y
> >>>> CONFIG_DEBUG_NET_WARN=y
> >>>> CONFIG_DEBUG_RTC=y
> >>>> CONFIG_DEBUG_RTC_ERROR=y
> >>>> CONFIG_DEBUG_RTC_INFO=y
> >>>> CONFIG_DEBUG_RTC_WARN=y
> >>>> CONFIG_DEBUG_SYMBOLS=y
> >>>> CONFIG_DEBUG_WARN=y
> >>>> CONFIG_DEV_GPIO=y
> >>>> CONFIG_ETH0_PHY_LAN8742A=y
> >>>> CONFIG_EXAMPLES_PPPD=y
> >>>> CONFIG_FAT_LCNAMES=y
> >>>> CONFIG_FAT_LFN=y
> >>>> CONFIG_FS_FAT=y
> >>>> CONFIG_FS_PROCFS=y
> >>>> CONFIG_FS_SMARTFS=y
> >>>> CONFIG_HAVE_CXX=y
> >>>> CONFIG_HAVE_CXXINITIALIZE=y
> >>>> CONFIG_HEAP_COLORATION=y
> >>>> CONFIG_IDLETHREAD_STACKSIZE=2048
> >>>> CONFIG_INTELHEX_BINARY=y
> >>>> CONFIG_IOEXPANDER=y
> >>>> CONFIG_LIB_HOSTNAME="STM32F4-Discovery"
> >>>> CONFIG_MAX_TASKS=16
> >>>> CONFIG_MMCSD=y
> >>>> CONFIG_MMCSD_MULTIBLOCK_DISABLE=y
> >>>> CONFIG_MMCSD_SDIO=y
> >>>> CONFIG_MTD=y
> >>>> CONFIG_MTD_MX25L=y
> >>>> CONFIG_MTD_SMART=y
> >>>> CONFIG_MTD_SMART_FSCK=y
> >>>> CONFIG_MX25L_SPIFREQUENCY=21000000
> >>>> CONFIG_NET=y
> >>>> CONFIG_NETDB_DNSCLIENT=y
> >>>> CONFIG_NETINIT_DEBUG=y
> >>>> CONFIG_NETINIT_DHCPC=y
> >>>> CONFIG_NETINIT_DNS=y
> >>>> CONFIG_NETINIT_DNSIPADDR=0x08080808
> >>>> CONFIG_NETINIT_DRIPADDR=0x0a010101
> >>>> CONFIG_NETINIT_NOMAC=y
> >>>> CONFIG_NETINIT_THREAD=y
> >>>> CONFIG_NETUTILS_DHCPC=y
> >>>> CONFIG_NETUTILS_NETCAT=y
> >>>> CONFIG_NETUTILS_PPPD_PAP=y
> >>>> CONFIG_NET_ARP_DUMP=y
> >>>> CONFIG_NET_ARP_SEND=y
> >>>> CONFIG_NET_BROADCAST=y
> >>>> CONFIG_NET_ETH_PKTSIZE=1294
> >>>> CONFIG_NET_ICMP=y
> >>>> CONFIG_NET_ICMP_SOCKET=y
> >>>> CONFIG_NET_SOCKOPTS=y
> >>>> CONFIG_NET_SOLINGER=y
> >>>> CONFIG_NET_STATISTICS=y
> >>>> CONFIG_NET_TCP=y
> >>>> CONFIG_NET_TCPBACKLOG=y
> >>>> CONFIG_NET_TCPURGDATA=y
> >>>> CONFIG_NET_TCP_KEEPALIVE=y
> >>>> CONFIG_NET_TCP_WRITE_BUFFERS=y
> >>>> CONFIG_NET_UDP=y
> >>>> CONFIG_NET_UDP_CHECKSUMS=y
> >>>> CONFIG_NFILE_DESCRIPTORS=8
> >>>> CONFIG_NSH_ARCHINIT=y
> >>>> CONFIG_NSH_BUILTIN_APPS=y
> >>>> CONFIG_NSH_DISABLE_LOSMART=y
> >>>> CONFIG_NSH_FILEIOSIZE=512
> >>>> CONFIG_NSH_LINELEN=64
> >>>> CONFIG_NSH_PROMPT_STRING="nsh$ "
> >>>> CONFIG_NSH_READLINE=y
> >>>> CONFIG_PREALLOC_TIMERS=4
> >>>> CONFIG_RAM_SIZE=114688
> >>>> CONFIG_RAM_START=0x20000000
> >>>> CONFIG_RAW_BINARY=y
> >>>> CONFIG_RR_INTERVAL=200
> >>>> CONFIG_RTC=y
> >>>> CONFIG_RTC_EXTERNAL=y
> >>>> CONFIG_RTC_PCF8563=y
> >>>> CONFIG_SCHED_HPWORK=y
> >>>> CONFIG_SCHED_HPWORKPRIORITY=192
> >>>> CONFIG_SCHED_WAITPID=y
> >>>> CONFIG_SDCLONE_DISABLE=y
> >>>> CONFIG_STACK_COLORATION=y
> >>>> CONFIG_START_DAY=13
> >>>> CONFIG_START_MONTH=9
> >>>> CONFIG_START_YEAR=2014
> >>>> CONFIG_STM32F4DISBB=y
> >>>> CONFIG_STM32_ADC1=y
> >>>> CONFIG_STM32_DMA1=y
> >>>> CONFIG_STM32_DMA2=y
> >>>> CONFIG_STM32_DMACAPABLE=y
> >>>> CONFIG_STM32_ETHMAC=y
> >>>> CONFIG_STM32_I2C1=y
> >>>> CONFIG_STM32_JTAG_SW_ENABLE=y
> >>>> CONFIG_STM32_OTGFS=y
> >>>> CONFIG_STM32_PHYADDR=0
> >>>> CONFIG_STM32_PHYSR=31
> >>>> CONFIG_STM32_PHYSR_100FD=0x0018
> >>>> CONFIG_STM32_PHYSR_100HD=0x0008
> >>>> CONFIG_STM32_PHYSR_10FD=0x0014
> >>>> CONFIG_STM32_PHYSR_10HD=0x0004
> >>>> CONFIG_STM32_PHYSR_ALTCONFIG=y
> >>>> CONFIG_STM32_PHYSR_ALTMODE=0x001c
> >>>> CONFIG_STM32_PWR=y
> >>>> CONFIG_STM32_RMII_EXTCLK=y
> >>>> CONFIG_STM32_SDIO=y
> >>>> CONFIG_STM32_SPI1=y
> >>>> CONFIG_STM32_USART1=y
> >>>> CONFIG_STM32_USART2=y
> >>>> CONFIG_STM32_USART3=y
> >>>> CONFIG_STM32_USART6=y
> >>>> CONFIG_SYSTEM_NSH=y
> >>>> CONFIG_SYSTEM_PING=y
> >>>> CONFIG_USART2_IFLOWCONTROL=y
> >>>> CONFIG_USART2_OFLOWCONTROL=y
> >>>> CONFIG_USART3_RS485=y
> >>>> CONFIG_USART6_RXBUFSIZE=64
> >>>> CONFIG_USART6_TXBUFSIZE=64
> >>>> CONFIG_USBDEV=y
> >>>> CONFIG_USER_ENTRYPOINT="nsh_main"
> >>>>
> >>>> I believe that there is something missing or wrong in my
> >>>> configuration, but I couldn't find what it is.
> >>>>
> >>>> Can anybody give me some advice on how to solve this issue?
> >>>>
> >>>> Best regards,
> >>>>
> >>>> Flavio
> >>>>
> >>>>
> >>>> --
> >>>> Flavio de Castro Alves Filho
> >>>>
> >>>> flavio.al...@gmail.com
> >>>> Twitter: http://twitter.com/#!/fraviofii
> >>>> LinkedIn profile: www.linkedin.com/in/flaviocastroalves
> >>>
> >>>
> >>> --
> >>> Flavio de Castro Alves Filho
> >>>
> >>> flavio.al...@gmail.com
> >>> Twitter: http://twitter.com/#!/fraviofii
> >>> LinkedIn profile: www.linkedin.com/in/flaviocastroalves
> >>>
> >
> >
>


-- 
Flavio de Castro Alves Filho

flavio.al...@gmail.com
Twitter: http://twitter.com/#!/fraviofii
LinkedIn profile: www.linkedin.com/in/flaviocastroalves

Reply via email to