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

How do I compile this for STM32F103CBT6? #59

Open
Alfrederson opened this issue Nov 7, 2018 · 3 comments
Open

How do I compile this for STM32F103CBT6? #59

Alfrederson opened this issue Nov 7, 2018 · 3 comments

Comments

@Alfrederson
Copy link

I got it to run just fine on STM32F103C8T6 (bluepill), but when I change the device to STM32F103CBT6 (Maple Mini) and compile it, nothing seems to happen. Blue pill shows up as a STM32 Virtual Com Port, but Maple Mini doesn't seem to do anything. It doesn't even show up as an unidentified USB device.
What do I need to do?

@robomechs
Copy link

robomechs commented Nov 7, 2018

try to use UART+ch340(or ftdi ft232) instead of USB by removing the definition USEUSB)))

@siy
Copy link

siy commented Nov 19, 2018

Maple Mini has dedicated hardware for manipulating USB pull-up. This logic is necessary to perform re-initialization of the USB connection with host after flashing new firmware without need to perform physical disconnect/connect of USB cable. This logic might conflict with raw Bluepill firmware and leave USB in the state which does not allow host to perform proper USB initialization. Take a look into Maple booltoader code for all relevant details. My guess that it will be enough to make small update to Grbl code and leave pull-up in some predictable state. I don't remember exact value out of top of my head, but in worst case it will take only two experiments to find correct value.
Another thing which need to be changed is the size of the ROM in linker script, but this should not be a problem.

@robomechs
Copy link

Yes, maple mini use PB9 to control USB 1.5k pull-up resistor.
And in addition PB8 is connected to BOOT0.
So I suppose it's not a good idea to use maple mini as GRBL usbcnc controller.
Is it really necessary?

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

3 participants