[STM32F429] DAC support

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
flindt
Posts: 11
Joined: Tue Jun 20, 2017 8:51 am

[STM32F429] DAC support

Post by flindt » Mon Jul 24, 2017 8:58 am

Hi Guys

Sorry for the noice - it works just fine. Just had to do it all one more time... I will chalk this one up to not enough coffee :)
If anyone can find the delete post button...

Does anyone know if DAC support is supposed to work on the STM32F429 builds?
It is disabled by default and enabling it fails to build

Code: Select all

In file included from ../py/mpstate.h:35:0,
                 from ../py/runtime.h:29,
                 from dac.c:34:
dac.c:490:19: error: 'MP_QSTR_noise' undeclared here (not in a function)
     { MP_ROM_QSTR(MP_QSTR_noise), MP_ROM_PTR(&pyb_dac_noise_obj) },
[/color]
cheers
flindt
Last edited by flindt on Mon Jul 24, 2017 11:22 am, edited 1 time in total.

flindt
Posts: 11
Joined: Tue Jun 20, 2017 8:51 am

Re: [STM32F429] DAC support

Post by flindt » Mon Jul 24, 2017 9:41 am

Update.
Managed to build the latest version with DAC enabled. All it took was a pull and a clean build.

However, the DAC module does not show up in the REPL. Besides enabling it in "mpconfigboard.h" is any thing else needed to use the DAC?

Cheers

Post Reply