Skip to main content
BT.1
Associate II
Dec 19, 2019 1:00 PM UTC
Question

I need to enable DAC in B-072 LRWAN1 in End Node example. I've included the HAL drivers and initalised the DAC . But I can't get the DAC Output on PA4 .

..

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
Dec 19, 2019 2:03 PM UTC

See if you can drive it high/low as a GPIO

Seem to recall it potentially conflicting as a pin on the SX1276, or configured as an ADC elsewhere.

https://community.st.com/s/feed/0D50X00009bLS7uSAG

You'd probably want to use a debugger, and decompose the RCC, GPIO and DAC settings to confirm the mode the pin is in

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
BT.1
BT.1Author
Associate II
Dec 19, 2019 2:44 PM UTC

Thanks... I figured out I hadn't included the dac_ex.c file.. It works now