- 
                Notifications
    You must be signed in to change notification settings 
- Fork 8.2k
boards: Add nrf53 bsim #30734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Closed
      
      
    
  
     Closed
                    boards: Add nrf53 bsim #30734
Changes from all commits
      Commits
    
    
            Show all changes
          
          
            8 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      2ff0c64
              
                west.yml: Update nrf_hw_models version to include nrf53 support
              
              
                auroraslb 651fbbe
              
                nrf5x_bsim: Rename board folder nrf52_bsim -> nrf5x_bsim
              
              
                auroraslb f9a6abb
              
                nrf5x_bsim: Add the board nrf53_cpunet_bsim
              
              
                auroraslb 9df5326
              
                nrf5x_bsim: Add irq logging for nrf53
              
              
                auroraslb c878e43
              
                nrf5x_bsim: Add defines for COMPATIBLE_NRF53X_CPUNET
              
              
                auroraslb 479c690
              
                CODEOWNERS: rename nrf52_bsim to nrf5x_bsim
              
              
                auroraslb aa8347a
              
                modules: CMakeLists: Add definition for CONFIG_SOC_COMPATIBLE_NRF5340…
              
              
                auroraslb e201fb1
              
                nrf5x_bsim: Add and choose SOC_COMPATIBLE_BSIM
              
              
                auroraslb File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              This file was deleted.
      
      Oops, something went wrong.
      
    
  
            File renamed without changes.
          
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|  | ||
| config BOARD_NRF52_BSIM | ||
| bool "NRF52 simulation model" | ||
| select SOC_SERIES_BSIM_NRFXX | ||
| select SOC_SERIES_BSIM_NRF52X | ||
| select SOC_COMPATIBLE_NRF | ||
| select SOC_COMPATIBLE_NRF52X | ||
| select SOC_COMPATIBLE_NRF52832 | ||
| select SOC_COMPATIBLE_BSIM | ||
| select CONSOLE_HAS_DRIVER | ||
| select NRF_RTC_TIMER | ||
| select CLOCK_CONTROL | ||
| # Indicate that the nRF RNG peripheral is present (actually a model | ||
| # of it), so that the corresponding driver becomes available (see | ||
| # dependencies of the ENTROPY_NRF5_RNG option). | ||
| select HAS_HW_NRF_RNG | ||
| # Indicate that CCM supports 8 bit length field, to support full | ||
| # length LL PDUs. | ||
| select HAS_HW_NRF_CCM_LFLEN_8BIT | ||
| # Indicate 2M support so that Phy procedure can be enabled. | ||
| select HAS_HW_NRF_RADIO_BLE_2M | ||
| # Do the same for the CLOCK and POWER peripherals, so that the nrfx | ||
| # drivers for them can be used. | ||
| select HAS_HW_NRF_CLOCK | ||
| select HAS_HW_NRF_POWER | ||
| select HAS_NRFX | ||
| help | ||
| Will produce a console Linux process which can be executed natively. | ||
| It needs the BabbleSim simulator both in compile time and to execute | ||
|  | ||
| config BOARD_NRF53_CPUNET_BSIM | ||
| bool "NRF53 simulation model" | ||
| select SOC_SERIES_BSIM_NRFXX | ||
| select SOC_SERIES_BSIM_NRF53X | ||
| select SOC_COMPATIBLE_NRF | ||
| select SOC_COMPATIBLE_NRF53X_CPUNET | ||
| select SOC_COMPATIBLE_NRF5340_CPUNET | ||
| select SOC_COMPATIBLE_BSIM | ||
| select CONSOLE_HAS_DRIVER | ||
| select NRF_RTC_TIMER | ||
| select CLOCK_CONTROL | ||
| # Indicate that the nRF RNG peripheral is present (actually a model | ||
| # of it), so that the corresponding driver becomes available (see | ||
| # dependencies of the ENTROPY_NRF5_RNG option). | ||
| select HAS_HW_NRF_RNG | ||
| # Indicate that CCM supports 8 bit length field, to support full | ||
| # length LL PDUs. | ||
| select HAS_HW_NRF_CCM_LFLEN_8BIT | ||
| # Indicate 2M support so that Phy procedure can be enabled. | ||
| select HAS_HW_NRF_RADIO_BLE_2M | ||
| # Do the same for the CLOCK and POWER peripherals, so that the nrfx | ||
| # drivers for them can be used. | ||
| select HAS_HW_NRF_CLOCK | ||
| select HAS_HW_NRF_POWER | ||
| select HAS_NRFX | ||
| help | ||
| Will produce a console Linux process which can be executed natively. | ||
| It needs the BabbleSim simulator both in compile time and to execute | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| /* | ||
| * Copyright (c) 2020 Linaro Limited. | ||
| * | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|  | ||
| /dts-v1/; | ||
|  | ||
| #include <arm/nordic/nrf5340_cpunet.dtsi> | ||
|  | ||
| / { | ||
| model = "nrf53 cpunet bsim"; | ||
| compatible = "bsim,nrf5340_cpunet"; | ||
|  | ||
| /* We need to remove aliases to nodes we delete */ | ||
| aliases { | ||
| /delete-property/ i2c-0; | ||
| /delete-property/ spi-0; | ||
| /delete-property/ uart-0; | ||
| /delete-property/ gpio-0; | ||
| /delete-property/ gpio-1; | ||
| /delete-property/ gpiote-0; | ||
| /delete-property/ wdt-0; | ||
| }; | ||
|  | ||
| chosen { | ||
| /delete-property/ zephyr,flash-controller; | ||
| }; | ||
|  | ||
| cpus { | ||
| cpu@1 { | ||
| /delete-node/ mpu@e000ed90; | ||
| }; | ||
| }; | ||
|  | ||
| soc { | ||
| /delete-node/ memory@20000000; | ||
| /delete-node/ memory@21000000; | ||
| /delete-node/ uart@41013000; | ||
| /delete-node/ gpiote@4100a000; | ||
| /delete-node/ gpio@418c0500; | ||
| /delete-node/ gpio@418c0800; | ||
| /delete-node/ i2c@41013000; | ||
| /delete-node/ spi@41013000; | ||
| /delete-node/ temp@41010000; | ||
| /delete-node/ watchdog@4100b000; | ||
| }; | ||
|  | ||
| /delete-node/ flash-controller@41080000; | ||
| /delete-node/ sw-pwm; | ||
| }; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| identifier: nrf53_cpunet_bsim | ||
| name: NRF53 CPUNET BabbleSim board | ||
| type: native | ||
| arch: posix | ||
| env: | ||
| - BSIM_OUT_PATH | ||
| toolchain: | ||
| - zephyr | ||
| testing: | ||
| ignore_tags: | ||
| - drivers | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|  | ||
| CONFIG_SOC_POSIX=y | ||
| CONFIG_BOARD_NRF53_CPUNET_BSIM=y | ||
| CONFIG_CONSOLE=y | ||
| CONFIG_NO_OPTIMIZATIONS=y | ||
| CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=32768 | ||
| # For this board we can log immediately without any problem | ||
| # Doing so will be nicer for debugging | ||
| CONFIG_LOG_MODE_IMMEDIATE=y | 
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may consider adding the remaining IRQ names as well, see nrf5340_network.h.