-
Notifications
You must be signed in to change notification settings - Fork 40
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
Updated the Ox64 flashing guide #32
Conversation
Also general formatting cleanups and clarifications.
Debian will pull in those other packages by itself.
i suggest to replace all the path recurrencies from " |
regarding appendix about non-pico uart devices is a great idea. i was trying to use stm32xxx + black magic. it's very cheap, but unfurtunately i'm stuck with flashing instructions, and i need some help. do you have any tip? |
As per @giorez 's suggestion.
As you mentioned, that appendix section should cover most of it. Where are you getting stuck? |
at the moment I cant check the step i did until now, but i will post here more infos in next days. thanks |
do you know how to program a stm32 as blackmagic? i have a FT232RL and i m trying to prepare a Uart adaptor to flash linux on ox64. no guides on the web are working for me. thanks |
FT232RL apparently won't work for flashing the Ox64 itself. (Although you can try playing with baud rates to see if it helps.) Re: STM32, what hardware do you have? |
I have stm32f103c8t6 know also as bluepill, it's a compatible UART adaptor in the list of ox64. I tryed to put blackmagic on to stm32f103c8t6 throught FT232RL. I'm not using FT232RL to flash ox64, sorry for misunderstanding. |
I haven't used blackmagicdebug before. But in any case you'll have to be more specific regarding where you got stuck. The general flow should be something like:
Edit: it might expose USART2 (PA2/PA3) instead. Resources: |
ciao Pavlos1, these are the steps i followed. First, download BlackMagic firmware that allows it to act as a serial adapter (more info on https://github.com/koendv/blackmagic-firmware/blob/master/INSTALL.md) cd ~/ox64 Set boot jumpers of STM32f103c8t6 board for boot from rom: Boot0=1, Boot1=0. == Put the Stm32f103c8t6 board into programming mode. Apply power by plugging the USB cable to PC. Press the Reset button. Check the USB-serial adapter to be /dev/ttyUSB0 Upload the firmware: After upload, set boot jumpers for boot from flash: Boot0=0, Boot1=0. Connect Stm32f103c8t6 to usb. After flashing, verify that you have two serial interfaces (when the STM32f103c8t6 is connected to your PC): ls /dev/ttyACM* Expected result: Next, connect the Ox64 board to the STM32f103c8t6 according to the following wiring diagram: OX64 STM32 Rxd_GPIO17_pin31 <-> ???? [for serial console] Regarding ox64 flashing both DevCube and CLI method are reported as succesfull. Now if I do I have ACM1: [I][MBOX] Mailbox IRQ Stats: I cant see ACM0 for serial console Any help is appreciated. thanks. PS on dmesg I have: |
You seem to be getting the expected results. The blackmagicdebug firmware only gives you one exposed serial port ( The other device ( If you want it to behave like your Pico does, you'd have to write your own firmware for it. EDIT: you might not have to write your own: https://github.com/r2axz/bluepill-serial-monster |
It's because you guys are still working on it and discussing it. You can turn it into a draft and then when it's finished as "ready for review" as explained under https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request so that I know when I can merge it. |
Technical content looks correct. I have some formatting/wording changes I would make, but I'll do those in a separate PR if/when #38 is merged in some form. |
Many small changes and rearrangements. Includes a new section on using non-Pico UART adapters.
Quick formatting note. I have changed some of the code listings to a different style to allow for blank lines, i.e.
It may be worth considering adopting this style more broadly for the sake of consistency. We can even do syntax highlighting as follows, but it looks a bit strange with the current CSS /
rouge
configuration.