Skip to content

upload does not work at all for STM32F407ZET6 on linux 64bit #1

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

Closed
uzi18 opened this issue Sep 3, 2018 · 16 comments
Closed

upload does not work at all for STM32F407ZET6 on linux 64bit #1

uzi18 opened this issue Sep 3, 2018 · 16 comments

Comments

@uzi18
Copy link

uzi18 commented Sep 3, 2018

I'm trying to use this bootloader but upload always stops on sending first 1024bytes:


> Searching for 1209:BEBA HID device...
#
> 1209:BEBA device is found !
> Sending <reset pages> command...
> Flashing firmware...
. 1024 Bytes
^C

any idea what is wrong?

@uzi18 uzi18 changed the title upload does not work at all on STM32F407ZET6 upload does not work at all for STM32F407ZET6 on linux 64bit Sep 3, 2018
@Serasidis
Copy link
Owner

Hello uzi18. What OS do you use (mint, ubuntu, etc) ?

@uzi18
Copy link
Author

uzi18 commented Sep 6, 2018

it is nothing you know - PLD Linux, but I dont think it is OS problem.
need to debug if any data are realy received by hid bootloader

also found bug in cli program but this is for another issue

@uzi18
Copy link
Author

uzi18 commented Sep 12, 2018

did some checks, program is waiting for acknowledgement from bootloader, about 1kB already flashed

page reset raport is sent by hid-flash and received by bootloader - this works

next step: hid-flash sends 1024B block but not receive info to send next block

@Serasidis any idea?

@Serasidis
Copy link
Owner

Serasidis commented Sep 15, 2018

@uzi18 I suppose:

  1. you use the Arduino_STM32 repository (...arduino_folder/hardware/Arduino_STM32)
  2. You have applied the patch
  3. You have the BOOT-0 and BOOT-1 pins connected to the GND

I have successfully tested the HID-BL 2.0 to 2 Diymore STM32F4 Discovery board (407VGT6) and ArchMAX 1.1 (407VET6)

Which STM32F4 board do you use ?

@uzi18
Copy link
Author

uzi18 commented Sep 15, 2018

this board: https://www.solidrop.net/product/stm32f407zet6-development-board-m4-stm32f4-core-board-arm-development-board-cortex-m4.html

have bypassed any check to go into bootloader flash mode directly, but it does not work as I expected.
sending reports from cpu to os hid-flash works but some data packets from hid-flash are lost.
need to check on another module or/and if usb/cpu is correctly soldered.

@uzi18
Copy link
Author

uzi18 commented Sep 15, 2018

I think it is needed to add some sync every 64B received, if timeout reached resend it one more time.

@uzi18
Copy link
Author

uzi18 commented Sep 15, 2018

@Serasidis changed board and have some progress here, will test it one more time without my modifications. Also need to find what is wrong with other board.

@Serasidis
Copy link
Owner

@uzi18 is there any progress ?

@BennehBoy
Copy link

BennehBoy commented Jan 20, 2019

@Serasidis shout if this needs a separate issue, but on Black407VET6 (and presumably f4xx) first upload works fine, but upon system reset the board is in perpetual bootloader until the reset key is hit, am I doing something wrong?

@BennehBoy
Copy link

Oops - had BOOT0 set high, removed jumper and now working.

Have you tested against a blackZET6 board?

@uzi18
Copy link
Author

uzi18 commented Jan 21, 2019

Will try later and give you feedback

@BennehBoy
Copy link

Actually I think BOOT0 may be a red herring, it only occasionally goes directly to sketch execution - perhaps due to it floating?

@BennehBoy
Copy link

OK, so got to the root of the issue, the code, although it has a comment in saying 407VET6, has the incorrect GPIO's set for BOOT1 & the LED.

After setting this up correctly for Black407VET6 & ZET6, with BOOT1 high & BOOT0 low, both cards boot straight into the sketch. Sorry for all the noise in here, but got there in the end.

@uzi18
Copy link
Author

uzi18 commented Jan 21, 2019

@BennehBoy did you get ZET6?

@BennehBoy
Copy link

@uzi18 Yes. Tested and working with my PR over at STM's core -> stm32duino/Arduino_Core_STM32#415 It's still WIP however, needs tweaking for @Serasidis latest changes (BL 3.0 compliance).

@Serasidis
Copy link
Owner

The STM32 HID Bootloader is available on the Official Arduino_Core_STM32 Core

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