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

[BUG] Compile error if default_envs = mks_robin_nano_v3_usb_flash_drive_msc #22491

Closed
McDAK33 opened this issue Aug 2, 2021 · 7 comments · Fixed by #22515
Closed

[BUG] Compile error if default_envs = mks_robin_nano_v3_usb_flash_drive_msc #22491

McDAK33 opened this issue Aug 2, 2021 · 7 comments · Fixed by #22515
Labels

Comments

@McDAK33
Copy link

McDAK33 commented Aug 2, 2021

Did you test the latest bugfix-2.0.x code?

Yes, and the problem still exists.

Bug Description

In fact, the essence of the error is in the title. For several weeks I can not compile the firmware for MKS Robin NANO V3 in msc configuration.
Error

Bug Timeline

Several weeks.

Expected behavior

No response

Actual behavior

No response

Steps to Reproduce

In platformio.ini, define default_envs = mks_robin_nano_v3_usb_flash_drive_msc.

Version of Marlin Firmware

bugfix-2.0.x (2021-08-02)

Printer model

No response

Electronics

MKS Robin NANO V3

Add-ons

No response

Your Slicer

No response

Host Software

No response

Additional information & file uploads

No response

@ellensp
Copy link
Contributor

ellensp commented Aug 3, 2021

The error messages you list is normally because you have a serial port set to 0 (or another invalid number). Further up is the message
"error: #error "SERIAL_PORT must be from 1 to 6. You can also use -1 if the board supports Native USB."

@McDAK33
Copy link
Author

McDAK33 commented Aug 3, 2021

Сообщения об ошибках, которые вы перечисляете, обычно связаны с тем, что для последовательного порта установлено значение 0 (или другой недопустимый номер). Далее идет сообщение
«error: #error» SERIAL_PORT должен быть от 1 до 6. Вы также можете использовать -1, если плата поддерживает Native USB ».

I have been using the MKS Robin nano v3 board for over half a year and have always used SERIAL_PORT -1. Now I have the firmware 2.0.9.1 from "2021-06-27" working. The problem appeared in the latest versions.

@ellensp
Copy link
Contributor

ellensp commented Aug 3, 2021

No Configs so having to guess at what you may or may not have set.

@ellensp
Copy link
Contributor

ellensp commented Aug 3, 2021

Give this new build env a try in ini/stm32f4.ini (replaces current env:mks_robin_nano_v3_usb_flash_drive_msc )
It compiles. but cant test at present.

[env:mks_robin_nano_v3_usb_flash_drive_msc]
platform          = ${common_stm32.platform}
extends           = env:mks_robin_nano_v3_usb_flash_drive
build_flags       = ${env:mks_robin_nano_v3_usb_flash_drive.build_flags}
                    -DUSBD_USE_CDC_MSC
build_unflags     = -DUSBD_USE_CDC

My test Configs
Configuration.zip

@McDAK33
Copy link
Author

McDAK33 commented Aug 3, 2021

I did not attach the configuration files because the error occurred with minimal changes to the base configuration, concerning only the board type.
After making the changes you suggested in the stm32f4.ini file, the compilation finished without errors. I will try the firmware on my printer soon.
Thank you very much.

@alexandremstf
Copy link

alexandremstf commented Aug 5, 2021

I had the same problem, after making the changes @ellensp suggested, i could compile without error and my printer is working properly, many thanks.

@github-actions
Copy link

github-actions bot commented Oct 6, 2021

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.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants