Compiling for STM32F446ZET6 (BTT Ocotpus 1.1) #166
-
Hello, currently I am trying to bring my BTT Octopus V1.1 to live. Unfortunately, after flashing the firmware it just does nothing ... . I already tried to change the clock config as discussed here. Till now, I was not able to connect to the board via USB. Is there any possibility to debug the code? I have a Nucleo Board with a ST-Link Debugger at home and even connected it to the BTT Octopus. However, I was not able to start a debug session via PlatformIO. Can anyone help me with this? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 22 replies
-
Update: I just played around with the settings and removed all the code in the function SystemClock_Config (because I thought maybe the bootloader will set everything correctly in order to use the USB). However, I had no luck on that. Then, I just added the code from here, but I had no luck with this as well. I also wiped the board with the ST-Link and rewrote the bootloader. (I don't know what i was expecting from that, but I am kinda desperate right now ... :D) In addition, I was not able to start a debug session with PlatformIO and the ST-Link debugger ... Any help is appreciated :) |
Beta Was this translation helpful? Give feedback.
-
When I did it I had trouble with the order of the clock settings, something
to do with the bootloader presetting stuff I think.
…On Thu, 28 Mar 2024, 6:41 am Michael Atzmueller, ***@***.***> wrote:
@yoft <https://github.com/yoft> that would be great!
However, your clock settings + your linker script seem like to do the
trick ;)
But I am still investigating on that one :D
—
Reply to this email directly, view it on GitHub
<#166 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFZCKL3L2LGVHCVL4ZYJO3Y2MHFTAVCNFSM6AAAAABFJXLNTGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DSMZSHEYDE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Ok so the device now shows up in Device Manager and when calling "lsusb" from Linux. However, I am not able to interact with it via the ioSender ... |
Beta Was this translation helpful? Give feedback.
-
@yoft I just added some changes and pushed them to my fork repo. Now, there is a common map file for the BTT Octopus Boards with a F446 chip. In my opinion it makes customization easier. I added the board file for the BTT Octopus 1.1 and updated the board file for the BTT Octopus Pro (taken from your fork). Unfortunately, I was not able to compile with the SD Card stuff, there are always errors showing up ... You can find my changes here. |
Beta Was this translation helpful? Give feedback.
Here are the changes I made to get everything working:
yoft/STM32F4xx@master...yoft:STM32F4xx:new-octo
If you question why anything is there, it probably doesn't need to be and is left over from testing.
In the changes to main there is a section that sets clocks a second time, from memory I diagnosed that the bootloader was changing a clock, then the MCU disallowed changes straight to the desired settings, so a bit of a step around,
Good luck!