⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
mon2
Offline
Last seen:4 months 2 weeks ago
Joined:2018-09-04 19:16
使用P0_6用户code

Hi. Thanks for the continued support on the use of this neat module. We are close to customizing the use of this product in our first design.

We appear to be able to remap the SPI port pins to our external device using the AT+IOCFG commands with the exception of P0_6.

The module datasheet, figure 11 shows that P0_6 as one of the recommended port pins for custom SPI use as the SPI_SCK function.

Is there a work around to allow us to make use of P0_6? In a pinch, we will not use this port pin.

ATI
无代码DA14531 v_6.380.12.6
OK
AT+IOCFG
00 00 00 00 00 12 11 00 00 00 00 00
OK
AT+IOCFG=6,4
EC12: Invalid gpio function requested
ERROR

Keywords:
PM_Dialog
Offline
Last seen:2 days 22 hours ago
Staff
Joined:2018-02-08 11:03
Hi mom2,

Hi mom2,

Please check user_periph_setup.h. The P05 and P06 are used for the UART RX and Tx accordingly. You will need to remap that pins to other gpios and rebuild the project. However, the P06 is a GPIO – it is not detected as SPI pin, so you could you the SPI_CLK to another available GPIO. Figure 11 from the datasheet is just an example.

Thanks, PM_Dialog

mon2
Offline
Last seen:4 months 2 weeks ago
Joined:2018-09-04 19:16
Makes sense (now) :) Will do

Makes sense (now) :) Will do as you recommended. We have enough free pins to proceed with live hardware. Thanks again.

PM_Dialog
Offline
Last seen:2 days 22 hours ago
Staff
Joined:2018-02-08 11:03
Hi mom2,

Hi mom2,

Thanks for accepting my answer – if you have any follow up question please create a new forum thread.

Thanks, PM_Dialog