-
Notifications
You must be signed in to change notification settings - Fork 0
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
STM32 flashing not working on Debian Buster #12
Comments
Correction: it is stm32flash v0.4 on <=v26.1 |
Changelog from the authors of stm32flash: stm32flash 0.7 was released 2022-03-26
stm32flash 0.6 was released 2021-02-12
stm32flash 0.5 was released 2016-02-11
stm32flash 0.4 was released 2014-10-04 |
I'm trying to get a hold of a copy of v0.4 to see if it will get better results. |
It turns out that the pins 8 and 10 (miniUART) are remapped to /dev/ttyS0 instead of /dev/ttyAMA0 if bluetooth is enabled. That explains why it is disabled, but I am reusing the /boot/config.txt so that shouldn't effect the results I'm getting. I tried switching "dtoverlay=pi3-disable-bt" to "dtoverlay=disable-bt" (matches what people are doing online). The results are the same. I don't know if there is a difference between the overlays other than maybe age. I don't think this is related to the problem at this point. But as of writing this I'm not even sure where to look next. There must be a driver or bootstrapping process I didn't know about in the old images. The STM32 writes just fine with the old images and the same error occurs on different Wombats so it is likely not a hardware issue. The main thing that sucks about this is that there is limited testing I can do when I can't test running programs due to DMA de-sync errors |
Not sure what is happening here as disable-bt is a remapping (include) of pi3-disable-bt. Will look into the setup trace when I can get a chance to see why the mapping comes out different. One thing you could try: in wallaby_flash change 'DEV=/dev/ttyAMA0' to 'DEV=/dev/ttyS0' In theory, that should work. |
I saw comments saying to replace it with ttyS0 but I thought that it would require changing pins so I disregarded it. I tried it but it just gave a failed to open error.
Thanks for the help! |
There must be a driver that we are missing as part of the setup.
I bet there was something modified to make it work back in development rather than something specific to jessie.
The error "unexpected reply" is not always the error, it also throws ACK errors, NACK errors, and "failed to init device". It seems to be random so it's possible there is something in the background of <=v26.1 that is activating the STM32.
I've tried using the installation that I saved in kipr-update and the one that is pulled from aptitude package manager.
They are both v0.5 for me, and that would be the same as found on <=v26.1
I've tested it with two different Wombats so it is unlikely to be faulty hardware.
The text was updated successfully, but these errors were encountered: