Topics

回复: add new boards based on i.mxrt1050


nie ninesun
 

Dear Maureen Helm
           Thank for your indication.I check the dts file. then I find the upcase of letter  for the dts file name is wrong. after I  correct. the compile  is sucessful

发件人: Maureen Helm <maureen.helm@...>
发送时间: 2019年8月30日 23:22
收件人: xz_nie@... <xz_nie@...>; devel@... <devel@...>
主题: RE: add new boards based on i.mxrt1050
 

It looks like you may have forgotten to #include <nxp/nxp_rt.dtsi> in your board dts file.

 

From: devel@... <devel@...> On Behalf Of nie ninesun via Lists.Zephyrproject.Org
Sent: Thursday, August 29, 2019 6:05 PM
To: devel@...
Cc: devel@...
Subject: [Zephyr-devel] add new boards based on i.mxrt1050

 

Hi, I want to add new board based on boards of  mimxrt1050_evk, The difference is flash for mimxrt1050_evk, The flash on my board is winbond w25q32. Then I combine the  mimxrt1050_ek.dts and mimxrt1050_evk_qspi.dts.I add following code in mimxrt1050_evk.dts file:

&flexspi0 {

reg = <0x402a8000 0x4000>, <0x60000000 0x800000>;

w25q32: w25q32@0 {

 compatible = "winbond,w25q32", "jedec,spi-nor";

 label = "W25Q32";

 reg = <0>;

 spi-max-frequency = <100000000>;

 status = "okay";

 jedec-id = [ef 40 16];

};

};

 

then I use cmake -GNinja -DBOARD=mimxrt1050_OK1052 -DBOARD_ROOT=$rootdir   ..  to build the configuration. then i use ninja to build the firmware. The following error is displayed:

 

 

In file included from /home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/include/generated_dts_board.h:20,

                 from /home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/include/arch/arm/arch.h:20,

                 from /home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/include/arch/cpu.h:17,

                 from /home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/include/kernel_includes.h:34,

                 from /home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/include/kernel.h:17,

                 from /home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/kernel/include/kernel_structs.h:10,

                 from /home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/arch/arm/core/offsets/offsets.c:26:

/home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/include/arch/arm/asm_inline_gcc.h: In function 'z_arch_irq_lock':

zephyr/include/generated/generated_dts_board_fixups.h:11:32: error: 'DT_ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS' undeclared (first use in this function)

 #define DT_NUM_IRQ_PRIO_BITS   DT_ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS

                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

zephyr/include/generated/generated_dts_board_fixups.h:11:32: note: in definition of macro 'DT_NUM_IRQ_PRIO_BITS'

 #define DT_NUM_IRQ_PRIO_BITS   DT_ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS

                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/include/arch/arm/exc.h:40:31: note: in expansion of macro 'Z_EXC_PRIO'

 #define _EXC_IRQ_DEFAULT_PRIO Z_EXC_PRIO(_IRQ_PRIO_OFFSET)

                               ^~~~~~~~~~

/home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/include/arch/arm/asm_inline_gcc.h:91:9: note: in expansion of macro '_EXC_IRQ_DEFAULT_PRIO'

   : "i"(_EXC_IRQ_DEFAULT_PRIO)

         ^~~~~~~~~~~~~~~~~~~~~

zephyr/include/generated/generated_dts_board_fixups.h:11:32: note: each undeclared identifier is reported only once for each function it appears in

 #define DT_NUM_IRQ_PRIO_BITS   DT_ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS

                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

zephyr/include/generated/generated_dts_board_fixups.h:11:32: note: in definition of macro 'DT_NUM_IRQ_PRIO_BITS'

 #define DT_NUM_IRQ_PRIO_BITS   DT_ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS

                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/include/arch/arm/exc.h:40:31: note: in expansion of macro 'Z_EXC_PRIO'

 #define _EXC_IRQ_DEFAULT_PRIO Z_EXC_PRIO(_IRQ_PRIO_OFFSET)

                               ^~~~~~~~~~

/home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/include/arch/arm/asm_inline_gcc.h:91:9: note: in expansion of macro '_EXC_IRQ_DEFAULT_PRIO'

   : "i"(_EXC_IRQ_DEFAULT_PRIO)

         ^~~~~~~~~~~~~~~~~~~~~

In file included from /home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/include/arch/arm/cortex_m/mpu/arm_mpu_v7m.h:10,

                 from /home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/include/arch/arm/cortex_m/mpu/arm_mpu.h:13,

                 from /home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/include/arch/arm/arch.h:245,

                 from /home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/include/arch/cpu.h:17,

                 from /home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/include/kernel_includes.h:34,

                 from /home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/include/kernel.h:17,

                 from /home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/kernel/include/kernel_structs.h:10,

                 from /home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/arch/arm/core/offsets/offsets.c:26:

/home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/include/arch/arm/cortex_m/cmsis.h: At top level:

/home/xxxxxxxxx/Desktop/olddisk/zephyrproj/zephyr/include/arch/arm/cortex_m/cmsis.h:92:2: error: #error "DT_NUM_IRQ_PRIO_BITS and __NVIC_PRIO_BITS are not set to the same value"

 #error "DT_NUM_IRQ_PRIO_BITS and __NVIC_PRIO_BITS are not set to the same value"

  ^~~~~

ninja: build stopped: subcommand failed.

 

who can give me some suggestions about it? Thanks