我们在开发QN9080,使用SDK 中的wireless UART 范例工程,IDE 使用MCUxpresso,但在使用中有碰到以下问题:
1.想要修改里面串口,I2C,ADC等外设参数的设置,要怎么设?在哪里更改?从文档介绍上看是可以用配置工具来更改,但我发现很多NXP的型号都是不支持外设工具修改的,很遗憾QN8090就无法支持外设配置。这种情况下要怎么修改串口,ADC 等外设呢?我在管脚配置里面找不到相关的设置。难道要用传统的方式,在项目里找到配置UART 参数的文件(比如fsl_usart.c和fsl_usart.h这些文件),再修改里面的参数吗?这不是太low 了?那这个配置工具存在的意义在哪里?
2.即使不使用外设配置功能,只是使用config tools 里面的管脚分配功能,新配置了ADC或者修改GPIO设置后,会提示更新到项目中;更新后进行重新rebuild,发现无法编译,出现了很多错误。提示很多参数没有定义等,比如:
/board/pin_mux.c: In function 'BOARD_InitButtons':
../board/pin_mux.c:91:5: error: unknown type name 'gpio_pin_config_t'
gpio_pin_config_t SW2_config = {
^~~~~~~~~~~~~~~~~
../board/pin_mux.c:92:9: error: field name not in record or union initializer
.pinDirection = kGPIO_DigitalInput,
^
../board/pin_mux.c:92:9: note: (near initialization for 'SW2_config')
../board/pin_mux.c:92:25: error: 'kGPIO_DigitalInput' undeclared (first use in this function)
.pinDirection = kGPIO_DigitalInput,
^~~~~~~~~~~~~~~~~~
../board/pin_mux.c:92:25: note: each undeclared identifier is reported only once for each function it appears in
../board/pin_mux.c:93:9: error: field name not in record or union initializer
.outputLogic = 0U
Hi Jon,
I was able to reproduce your issue. It's caused by missing #include "fsl_gpio.h" in the generated pin_mux.c file when GPIO pin direction is configured in the Pins tool.
Attached you can find patch with hot fix of the issue. To apply the patch, please copy the content of the archive into the tool's data folder:
This issue will be fixed in the next MCUXpresso Configuration Tools release.
Thank you for reporting this issue and we are sorry for the inconvenience!
Regards,
Lukas
Hi Jon.
For QN9080, PIN config tool and Clock config tool are supported. But Peripheral config tool are not.
I tested Pin config update from my side, I didn't see any build error. Can you please refer it ?
Thanks.
Have a great day,
Jun Zhang
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------