4ms / stm32mp1-baremetal

Baremetal framework and example projects for the STM32MP15x Cortex-A7 based MPU
Other
148 stars 28 forks source link

README should also describe debugging on Discovery board. #7

Closed karelfv closed 2 years ago

karelfv commented 2 years ago

Hello, thanks a lot for this project! I'll test that once the board is here, but to be honest I'm a bit confused by your highlighting of debug capability on the Octavo based board. Not sure if I read README correctly, but it feels like you completely ignore debug capability built into the STM32mp1 discovery board. Please let me know, have you used builtin ST-Link interface for A7 debugging on the board? Do you know about this capability? If it's new to you, then perhaps you can enhance the README. If for whatever reason it's not so great and have bugs, then this may also be mentioned there. Thanks!

danngreen commented 2 years ago

Yes, the ST-LINK on the Discovery board is a viable way to debug. The README does talk about it, in Step 6: Debug Application (starting with “If you use OpenOCD with a USB cable connected to the ST-LINK micro-USB jack of the Discovery board…”) Does anything seem missing from that section? But there are a few places earlier in the README that mention SWD on the OSD32 board, but not the built-in ST-LINK on the Discovery board. I can edit it to mention ST-LINK in those places. Thanks for bringing it to my attention, and good luck when your board arrives!

karelfv commented 2 years ago

Indeed, hmm, I have to confess I just skimmed over the text quickly and described my feeling about. IMHO it was caused by requirements:

Optionally, a J-link or ST-LINK debugger (only if you use the OSD32 board)

No mention that ST-LINK is built into the DISCO already and by details below it which in length mention cheaper board debugging capability but is completely silent about disco. Anyway, just nitpicks. Thanks for sharing of the great project!

danngreen commented 2 years ago

I made some changes and pushed them to the main branch. Let me know what you think, I'll close this issue if you approve.

Feel free to share any tips you come up with as you use the on-board ST-LINK at any time. I've used it a little but most of my experience is with a direct SWD connection.

karelfv commented 2 years ago

Great stuff IMHO! I've just reviewed all 4 patches and their context, but it looks much improved and more clear. Yes, I'll use ST-Link solely and probably also with ST-link gdb server as I don't have any 3rd part debugger hardware here. I've bookmarked your project so it'll be the first one I'll try when getting some free time and then I'll let you know if there is anything serious to add. Please close the issue. Thanks!