改变销功能During Code Execution (DA14583)

3文章/ 0
Last post
Kostakis
Offline
Last seen:3 years 1 month ago
Joined:2015-01-20 16:15
改变销功能During Code Execution (DA14583)

Hi. I am using DA14583. First of all i want the chip to boot from internal flash memory. Then i want to use P0 as SPI to read some sensor data. During the code execution i would like to write some data to the internal flash memory so i would like use P2 as SPI. Is that possible using the GPIO_ConfigurePin function inside my code? Will that cause any other trouble i cannot imagine?

PS. Connect my sensors to P2 SPI could be a solution but the other way makes the layout of the board much easier.

Device:
MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Kostakis,

Hi Kostakis,

Yes you can reconfigure your pins during code execution, and its not necessary to set the pin configuration during the peripheral initialization, you can use the function GPIO_ConfigurePin.

Thanks MT_dialog

Kostakis
Offline
Last seen:3 years 1 month ago
Joined:2015-01-20 16:15
Thank You MT!

Thank You MT!