[NUCLEO-L476RG/STM32L476RGT6]Pin Association and DAC Error
Posted: Thu May 03, 2018 8:04 am
Hello.
I am a Japanese living in Japan.
Posted while being helped by Google translation.
I purchased NUCLEO-L476RG.
I downloaded the dfu file from the following URL.
http://micropython.org/resources/firmwa ... v1.9.3.dfu
After converting to hex file with DfuFileMgr.exe, we have written hex file to NUCLEO-L476RG with STM32 ST-LINK Utility.exe.
I connected the NUCLEO-L476RG to a PC via USB, and confirmed that the following code works correctly.
-----
>>> MicroPython v1.9.3 on 2017-11-01; NUCLEO-L476RG with STM32L476RG
Type "help()" for more information.
>>> print('hello')
hello
>>>
-----
I tried trying ADC and DAC as the next step, but I faced several problems.
1.I do not know the association between the name of the pin and the pin on the actual board. Is there a list or image somewhere?
2.An error occurred when trying to use the DAC. In this case, do I need to activate the DAC and recompile the dfu file?
In that case, which part should be changed?
-----
>>> import DAC
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'DAC'
>>>
>>> from pyb import DAC
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name DAC
>>>
----
I looked at various Web sites, but I could not find useful information.
(Although I am not good at English, it is one of the causes)
If the place to post is incorrect, please tell me the right place.
If I violate the forum rules, please tell me the bad things.
Thank you.
I am a Japanese living in Japan.
Posted while being helped by Google translation.
I purchased NUCLEO-L476RG.
I downloaded the dfu file from the following URL.
http://micropython.org/resources/firmwa ... v1.9.3.dfu
After converting to hex file with DfuFileMgr.exe, we have written hex file to NUCLEO-L476RG with STM32 ST-LINK Utility.exe.
I connected the NUCLEO-L476RG to a PC via USB, and confirmed that the following code works correctly.
-----
>>> MicroPython v1.9.3 on 2017-11-01; NUCLEO-L476RG with STM32L476RG
Type "help()" for more information.
>>> print('hello')
hello
>>>
-----
I tried trying ADC and DAC as the next step, but I faced several problems.
1.I do not know the association between the name of the pin and the pin on the actual board. Is there a list or image somewhere?
2.An error occurred when trying to use the DAC. In this case, do I need to activate the DAC and recompile the dfu file?
In that case, which part should be changed?
-----
>>> import DAC
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'DAC'
>>>
>>> from pyb import DAC
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name DAC
>>>
----
I looked at various Web sites, but I could not find useful information.
(Although I am not good at English, it is one of the causes)
If the place to post is incorrect, please tell me the right place.
If I violate the forum rules, please tell me the bad things.
Thank you.