Skip to content
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

[action] add nrf5340 ci config #9570

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bsp/nrf5x/nrf5340/.ci/attachconfig/devices/adc.attach
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_RT_USING_ADC=y
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_BSP_USING_ON_CHIP_FLASH=y
4 changes: 4 additions & 0 deletions bsp/nrf5x/nrf5340/.ci/attachconfig/devices/i2c.attach
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CONFIG_BSP_USING_I2C=y
CONFIG_BSP_USING_I2C0=n
CONFIG_BSP_USING_I2C1=n
Comment on lines +2 to +3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=n不用写呀

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

发现i2c开了之后默认就会打开BSP_USING_I2C0然后跟串口的SERIAL0_IRQHandler冲突,导致编译报错,这里设置=n就可以关掉了

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

图片
就像这样

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以的,这里有坑,非常好。感谢反馈

CONFIG_BSP_USING_I2C2=y
1 change: 1 addition & 0 deletions bsp/nrf5x/nrf5340/.ci/attachconfig/devices/ipc.attach
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_RT_USING_IPC=y
1 change: 1 addition & 0 deletions bsp/nrf5x/nrf5340/.ci/attachconfig/devices/pwm.attach
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_RT_USING_PWM=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_BSP_USING_QSPI_FLASH=y
CONFIG_RT_USING_SFUD=y
1 change: 1 addition & 0 deletions bsp/nrf5x/nrf5340/.ci/attachconfig/devices/rtc.attach
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_BSP_USING_ONCHIP_RTC=y
4 changes: 4 additions & 0 deletions bsp/nrf5x/nrf5340/.ci/attachconfig/devices/spi.attach
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CONFIG_BSP_USING_SPI=y
CONFIG_BSP_USING_SPI0=n
CONFIG_BSP_USING_SPI1=n
CONFIG_BSP_USING_SPI2=y
2 changes: 2 additions & 0 deletions bsp/nrf5x/nrf5340/.ci/attachconfig/devices/tim.attach
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_BSP_USING_TIM=y
CONFIG_BSP_USING_TIM1=y
1 change: 1 addition & 0 deletions bsp/nrf5x/nrf5340/.ci/attachconfig/devices/wdt.attach
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_RT_USING_WDT=y
4 changes: 2 additions & 2 deletions bsp/nrf5x/nrf5340/board/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ menu "Onboard Peripheral Drivers"


menuconfig BSP_USING_QSPI_FLASH
select PKG_USING_FAL
select RT_USING_FAL
bool "Enable QSPI FLASH(MX25R64 8MB)"
default n
depends on BSP_BOARD_PCA_10095
Expand Down Expand Up @@ -482,7 +482,7 @@ menu "On-chip Peripheral Drivers"


config BSP_USING_ON_CHIP_FLASH
select PKG_USING_FAL
select RT_USING_FAL
bool "Enable on-chip FLASH"
default n

Expand Down
Loading