Skip to content
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

Information about [email protected] #6

Closed
TheThomasD opened this issue May 15, 2022 · 4 comments
Closed

Information about [email protected] #6

TheThomasD opened this issue May 15, 2022 · 4 comments

Comments

@TheThomasD
Copy link

Hi,

I wanted to port the settings to a newer version of Marlin. However, the included [email protected] seems to be required for now. Can you provide some information on how this differs from the official version? Is is changed to include some required changes for the Mini Delta V2?

I'd like to be able to build the version on Linux and for now this does not seem possible with the supplied framework. Any hint would be appreciated.

Thanks
Thomas

@TheThomasD
Copy link
Author

From my first finding, the library seems to be copied somewhere between May 23, 2018 and Jun 29, 2019. The file STM32F1/libraries/Wire/utility/WireBase.h was changed at those dates, but the framework used here uses the version from May 23, 2018.

@TheThomasD
Copy link
Author

I've tried to use the newest version of the framework, but it did not work. The firmware compiles, but the printer does not respond anymore if I flash the generated firmware. Luckily I can restore the original firmware without trouble.

After that, I've done some more digging. If anyone is interested: the contained version of the framework seems to be based on this commit. You can checkout it out and compare it to the folder of the framework. The main changes seem to be:

  • usart DMA RX support
  • changed usart buffer sizes
  • support for boards having only one SPI (Serial Peripheral Interface; not sure if this is relevant)
  • changes to pin PB9 of the used generic_stm32f103r variant
  • some other changes of which I think they are not relevant (but I'll update this if I am wrong)

Next step: checking if applying the changes to the original framework will yield positive results.

@TheThomasD
Copy link
Author

Wohoo! That worked. I did the following steps:

  • changed STM32F1\cores\maple\libmaple\usart.c image
  • changed STM32F1\system\libmaple\include\libmaple\usart.h image image
  • changed STM32F1\variants\generic_stm32f103r\board.cpp image

All other changes were not applied. That seems to do the trick and all functionalities seem to work.

@TheThomasD
Copy link
Author

TheThomasD commented Nov 24, 2022

You can find a fork of the framework for easier access here. The link points to the commit, but you can just check out the whole repo on that branch to get the changed files together with everything else. Copy it to your home folder under .platformio\packages\[email protected].

TheThomasD/Arduino_STM32_MPMDv2@a74f20c

TheThomasD referenced this issue in TheThomasD/Arduino_STM32_MPMDv2 Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant