You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "btashton (via GitHub)" <gi...@apache.org> on 2023/05/31 09:13:15 UTC

[GitHub] [nuttx] btashton commented on issue #9428: Configuration error

btashton commented on issue #9428:
URL: https://github.com/apache/nuttx/issues/9428#issuecomment-1569807140

   One of the common issues I have seen that looks like this when adding a new board, it not making all the required changes.
   
   in `boards/Kconfig` there are three changes you need to make
   
   You need to create an entry here
   ```
   
   choice
           prompt "Select target board"
           default ARCH_BOARD_CUSTOM
           ---help---
                   Select the board hosting the architecture.  You must first select the
                   exact MCU part number, then the boards supporting that part will
                   be available for selection.  Use ARCH_BOARD_CUSTOM to create a new
                   board configuration.
   
   config ARCH_BOARD_AMBER
           bool "Amber Web Server"
           depends on ARCH_CHIP_ATMEGA128
           ---help---
                   This is placeholder for the SoC Robotics Amber Web Server that is based
                   on the Atmel AVR ATMega128 MCU.  There is not much there yet and what is
                   there is untested due to tool-related issues.
   
   config ARCH_BOARD_ARDUINO_MEGA2560
           bool "Arduino Mega 2560"
           depends on ARCH_CHIP_ATMEGA2560
           ---help---
                   This option selects the Arduino Mega 2560 board featuring the Atmel
                   Atmega2560 MCU running at 16 MHz.
   
   config ARCH_BOARD_ARDUINO_DUE
           bool "Arduino Due"
           depends on ARCH_CHIP_ATSAM3X8E
           select ARCH_HAVE_LEDS
           ---help---
                   This options selects the Arduino DUE board featuring the Atmel
                   ATSAM3X8E MCU running at 84 MHz.
   ```
   Add to the list here
   ```
   config ARCH_BOARD
           string
           default "amber"                     if ARCH_BOARD_AMBER
           default "arduino-mega2560"          if ARCH_BOARD_ARDUINO_MEGA2560
           default "arduino-due"               if ARCH_BOARD_ARDUINO_DUE
           default "arduino-m0"                if ARCH_BOARD_ARDUINO_M0
   ```
   
   and here 
   ```
   comment "Board-Specific Options"
   
   if ARCH_BOARD_PCDUINO_A10
   source "boards/arm/a1x/pcduino-a10/Kconfig"
   endif
   if ARCH_BOARD_BEAGLEBONE_BLACK
   source "boards/arm/am335x/beaglebone-black/Kconfig"
   endif
   if ARCH_BOARD_C5471EVM
   source "boards/arm/c5471/c5471evm/Kconfig"
   endif
   if ARCH_BOARD_SPRESENSE
   source "boards/arm/cxd56xx/spresense/Kconfig"
   endif
   if ARCH_BOARD_NTOSD_DM320
   ```
   
   If you have made those changes you should be able to take an existing config, change the chip and see your board available.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org