Skip to main content
Visitor II
December 11, 2019
Question

ADC common registers inaccessible?

  • December 11, 2019
  • 4 replies
  • 1036 views

Hello,

i have a problem. I cant write any values into ADC12 common configuration register CCR. It is not possible if ADCs are disabled (as recomended in ref.man.) either they are enabled. I tried to change it using LL functions or CMSIS registers access (ADC12_COMMON->CCR = .... ) and both methods are not success.

Do you have any advice?

Tahnk you so much.

George

    This topic has been closed for replies.

    4 replies

    JCtibAuthor
    Visitor II
    December 11, 2019

    Either in SFRs view it is not possible to change them as in another registers.

    0690X00000BuVb9QAF.png

    Graduate II
    December 22, 2019

    I seem to recall finding address errors in the .svd file for the common registers. I don't have my notes handy at the moment, but try comparing the debugger's address for the registers with those of the data sheet. Good luck!

    Dave

    Graduate II
    December 23, 2019

    Notes located:

    ADC12_Common is 0x50000200 in .svd, should be 0x50000300

    ADC5 is 0x50000600 in .svd, should be 0x50000200

    Please verify before using.

    Regards,

    Dave

    JCtibAuthor
    Visitor II
    January 8, 2020

    Hello,

    I dont know which files i should compare, but nevermind.

    I can confirm, that this issue is caused only by debugger problems, dual DMA transfer is working properly.

    Thank you for your advice, in case i need debug this, i will check .svd file.

    Best regards,

    George