Branch imxrt1180 nxp evk jason#11475
Conversation
…test(no DMA and ISR).
… on MCU Config software.
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
|
|
| int main(void) | ||
| { | ||
| rt_kprintf("MIMXRT1180_CM33 Hello_World\r\n"); | ||
| rt_kprintf("MIMXRT1180_CM33 MCUX_Config_26.03\r\n"); |
| /* Region 4 (CM7 I/D TCM): [0x303C0000, 0x3043FFFF, 512K] */ | ||
| /* non-shareable, read/write in privilege and non-privilege, execute-never. Attr 1 (non cacheable). */ | ||
| ARM_MPU_SetRegion(4U, ARM_MPU_RBAR(0x303C0000, ARM_MPU_SH_NON, 0U, 1U, 1U), ARM_MPU_RLAR(0x3043FFFF, 1U)); | ||
| ARM_MPU_SetRegion(4U, ARM_MPU_RBAR(0x303C0000, ARM_MPU_SH_OUTER, 0U, 1U, 1U), ARM_MPU_RLAR(0x3043FFFF, 1U)); |
| peripherals.c | ||
| """) | ||
|
|
||
| CPPPATH = [cwd,cwd + '/MCUX_Config',cwd + '/ports'] |
There was a problem hiding this comment.
推荐还是把 MCUX Config Tool 生成的代码放在 MCUX_Config 目录下,并在该目录下新建一个文件夹,如adc_template。
并且建议 pin_mux.c .h 和clock_config.c .h 先保持不动。
因为这个只是给ADC测试使用,否则这个代码会影响默认配置。
There was a problem hiding this comment.
这些图片可以放在MCU_config 目录下新建的adc_template下
并且如果方便,可以加一个readme
| bool "Enable LPADC1" | ||
| default n | ||
|
|
||
| config BSP_LPADC1_USING_DMA |
There was a problem hiding this comment.
我看这个BSP_LPADC1_USING_DMA,似乎在代码中没有使用?
| menu "On-chip Peripheral Drivers" | ||
|
|
||
| config BSP_USING_DMA | ||
| bool "Enable DMA" |
There was a problem hiding this comment.
这个BSP_USING_DMA被删了,但是代码中有使用。请再检查一下
拉取/合并请求描述:(PR description)
[
these channels A1_4, A1_6, A1_7, B1_5, B1_6, B1_7 are routed to LPADC1 peripheral based on CM33 core from XIP boot-up, and multi-channel sampling is enabled with DMA. They are configured to VDDA_ADC_1P8 as VREFH source, full scale input(max 1.8V), you can check CM33/board/MIMXRT1180-CM33-ADC.mex and cm33/figures for more details.
all the configured channels are verified in msh, but drv_adc can only support A1_4, B1_5, A1_6 and A1_7, this is a limitation of driver.
为什么提交这份PR (why to submit this PR)
submit BSP development task for imxrt1180-nxp-bsp
你的解决方案是什么 (what is your solution)
请提供验证的bsp和config (provide the config and bsp)
]
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up