Menu

#734 stm32 dac bug when using only channel 2 in direct mode

16.1.5
closed
dac (1)
HAL
High
16.1.4
True
2016-07-02
2016-04-24
alex_31
No

the problem is in dac_lld_put_channel function.
the dataoffset is not added in case of use of channel 2 only.
with the hal abstraction model, in case of only channel 2 used, the driver is DACD2 with only one channel (0),
but for the real hardware, the channel is channel 2 and offset has to be add.

adding the offset resolve the problem.

proposal patch is attached

1 Attachments

Discussion

  • Giovanni Di Sirio

    • assigned_to: Giovanni Di Sirio
     
  • Giovanni Di Sirio

    Patch applied, thanks.

     
  • Giovanni Di Sirio

    • Fixed in Repository: False --> True
     
  • Giovanni Di Sirio

    • status: open --> closed
     

Log in to post a comment.