-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] DAC steppers and 32 bits MCU #16285
Comments
@dagorel is this still a problem? |
Hi @boelle , Yes it is. I don't find any fix for now. |
Hi again @boelle , It seems there is an issue in the arduino fmk for lpc176x regarding the missing macros (discussed with @p3p ). I will send a PR to the appropriate github repo. Fixing this part doesn' fix the whole stuff. As said in the first message there is no voltage on mcp chip outputs... still investigating. |
Hi @boelle, Looks like the main issue is on choosing the I2C master address at the platform level. That's why i close the issue for now. Regards, |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi all,
Bug Description
There are issues when using both DAC steppers feature and any 32 bits MCU.
My Configurations
You can find an example configuration in the attached archive file : dac+32bits.zip.
Steps to Reproduce
I just changed the board to BOARD_SMOOTHIEBOARD and add stuff to enable DAC features in the smoothisboard pins file. Then i tried to compile: It fails as three avr arduino core macros are not defined for lpc1769: word, highByte, lowByte.
I naively tried to define them in dac_mcp4728.cpp as I2C communication is based on 8 bits blocks:
Then the compilation succeeds but it doesn't work as expected as there absolutely no voltage on the DAC (MCP4728) outputs.
Expected behavior: DAC steppers feature must work on any 32 bits MCUs.
Actual behavior: Compilation failure or no voltage on DAC outputs.
Additional Information
I am aware there is a built-in DAC on the lpc1769 but i don't use if for now (use of a separate MCP4728).
Feel free to ask for more information. I would be glad to answer.
The text was updated successfully, but these errors were encountered: