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

Is your F4 a F401CCU6? How much Mhz crystal is he? Your firmware usb doesn't work #171

Closed
hankecnc opened this issue Apr 22, 2022 · 20 comments

Comments

@hankecnc
Copy link

The program seems to be running? The PC13 light is on, but it is an unknown USB device. It is certain that there is no problem with my usb virtual serial port (I have tried grblhal's f401 firmware and he has no problem)

@hankecnc
Copy link
Author

IMG_20220422_160712

@hankecnc
Copy link
Author

I don't have the f103c8t6 board to test anymore

@Paciente8159
Copy link
Owner

Paciente8159 commented Apr 22, 2022

How did you compiled it?
Arduino IDE, makefile or PlatformIO or used the precompiled file?
I don't have my board with me right now but I will confirm it in couple of hours.

By the way... have you tried grounding PIN B5? That's the Emergency stop. If left unconnected it will lock the firmware for safety reasons. That can be modified via config file.

@hankecnc
Copy link
Author

How did you compiled it? Arduino IDE, makefile or PlatformIO or used the precompiled file? I don't have my board with me right now but I will confirm it in couple of hours.

By the way... have you tried grounding PIN B5? That's the Emergency stop. If left unconnected it will lock the firmware for safety reasons. That can be modified via config file.

The problem is that the usb is not correctly recognized, is your crystal 25MHZ? Tried the precompiled v1.4.2 uCNC-USB-STM32F4-Blackpill.bin you posted in git, and PB5 grounded, and compiled with vscode, and enabled DISABLE_ALL_CONTROLS

@Paciente8159
Copy link
Owner

In about an hour I'll be able to test it and let you know. I think it is 25Mhz.

@Paciente8159
Copy link
Owner

Paciente8159 commented Apr 22, 2022

I've just uploaded the bin that is precompiled in github and it's working. Even without Pin B5 grounded. The led (PC13) should be blinking at a 1sec rate (this is a visual hint that the firmware is running).
I used st-link to upload the firmware. What did you use?
Here is a pic. I confirm it's a 401cdu6 at 25mhz
IMG_20220422_165320

Also a print of a status query ? and reply by the board on a terminal
termite

@Paciente8159
Copy link
Owner

Also tried with STM32CubeProgrammer in DFU mode and again all worked.

@hankecnc
Copy link
Author

The led of PC13 is only on, not flashing, I try to burn the grblhal version again, his usb virtual serial port works fine, you have noticed that your chip is CDU6 instead of CCU6, I don't know what will be the difference, just flash capacity
ccc
?

@hankecnc
Copy link
Author

ccc

@hankecnc
Copy link
Author

I bought a f103c8t6 today, it's on the way, it will arrive the day after tomorrow

@Paciente8159
Copy link
Owner

Paciente8159 commented Apr 23, 2022

what did you use to upload the firmware?
If the led is not blinking that is an indication that the firmware is not running somehow.

@hankecnc
Copy link
Author

what did you use to upload the firmware? If the led is not blinking that is an indication that the firmware is not running somehow.

Tried both with usb dfu and serial port with STM32CubeProgrammer

@hankecnc
Copy link
Author

what did you use to upload the firmware? If the led is not blinking that is an indication that the firmware is not running somehow.

I have a little knowledge of microcontrollers, the PC13 LED is on means it is indeed running

@hankecnc
Copy link
Author

what did you use to upload the firmware? If the led is not blinking that is an indication that the firmware is not running somehow.

In your program, does the PC13 LED light flash as long as it is plugged in without any communication?

@Paciente8159
Copy link
Owner

Paciente8159 commented Apr 23, 2022

The PC13 blinks because there is an internal function that runs every millisecond. Among other things (depending on the board) it makes a status LED blink every second.

Can you try the alternative method via Arduino IDE?
arduino-ide
arduino-ide2

@Paciente8159
Copy link
Owner

Paciente8159 commented Apr 23, 2022

If you don't have the STM32duino installed for Arduino IDE please read the wiki tutorial

@hankecnc
Copy link
Author

If you don't have the STM32duino installed for Arduino IDE please read the wiki tutorial

Thanks, I will try again when my C8T6 arrives

@hankecnc
Copy link
Author

How did you compiled it? Arduino IDE, makefile or PlatformIO or used the precompiled file? I don't have my board with me right now but I will confirm it in couple of hours.

By the way... have you tried grounding PIN B5? That's the Emergency stop. If left unconnected it will lock the firmware for safety reasons. That can be modified via config file.

Hello, after experiments, the firmware burning of the F103c8t6 version I purchased works normally

@hankecnc
Copy link
Author

I'll try him on my machine and see how he performs

@Paciente8159
Copy link
Owner

Paciente8159 commented Apr 26, 2022

I'll try him on my machine and see how he performs

Thanks let me know if you find something off or bugged and I'll try to fix it ASAP.

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

2 participants