adamgreen / mri

MRI - Monitor for Remote Inspection. The gdb compatible debug monitor for Cortex-M devices.
Apache License 2.0
155 stars 58 forks source link

Supporting STM32F429i-Discovery #3

Closed TibaChang closed 8 years ago

TibaChang commented 8 years ago

Supporting STM32F429i-Discovery

adamgreen commented 8 years ago

Cool!

I have a few comments based on my initial scan through the new sources:

TibaChang commented 8 years ago

Thank you for your comment!

adamgreen commented 8 years ago

The copyright comment updates and other changes look good! I have added a few comments above. Once those are addressed, I will merge. I only noted one place where you used tabs instead of expanding to spaces but there are others that you should find and change as well.

Thanks again!

TibaChang commented 8 years ago

(Sorry,I couldn't find your public email,so I use the reply.) (My email address:jaredcjr.tw@gmail.com) Hello,Adam I am Jared(JaredCJR), a university student in Taiwan,interested in your project including CrashDebug,CrashCatcher and mri. Therefore,I try to let the CrashCatcher works on the STM32F429i-Discovery.It seems to be works properly(?). However, I have some question about the CrashDebug.I list them as below,hoping that it will dismiss my confuse and will not take you too much time!

Due to I don't know what should I implement for the "dumpfile". I use the follow command to run the mri successfully.

(Please ignore the path) arm-none-eabi-gdb ./CrashingApp_StdIO.elf --baud 115200 -ex "set target-charset ASCII" -ex "set print pretty on" -ex "set remotelogfile mri.log" -ex "target remote /dev/ttyUSB0"

And I think the following command might be work.But it seems to failed,if the CrashDump.txt doesn't exists.

(Please ignore the path) arm-none-eabi-gdb ./CrashingApp_StdIO.elf --baud 115200 -ex "set target-charset ASCII" -ex "set print pretty on" -ex "set remotelogfile mri.log" -ex "target remote | /CrashDebug/CrashDebug --elf ./CrashingApp_StdIO.elf --dump CrashDump.txt"

and it enter the gdb seems to be good when the "CrashDump.txt" exists. However,I am not sure what should be the "contains the contents of RAM and the CPU registers." https://github.com/adamgreen/CrashDebug#crashdebug-parameters

Could you able to provide me some example about the "dumpfile"?

In the sample,I could see the prompt for user input when I connect with gdb,but I just seen garbled without gdb.I have already tested the StdIO sample in gcc4mbed doesn't work for STM32F429. Is the problem happened due to this problem? Meaning that I need to use my own implementation to communicate with the application. I connect between mri and gdb using USART1,and USART3 for the CrashCatcher.

CrashCatcher are able to output the dump information during hardfault. And,MRI are used to communicate with gdb. I am wondering what could CrashDebug do ?

Thank you very much! Also for the advices in the pull request. I will fix them maybe next week,maybe try to find someone to help me let the code be better them now!

Best wishes,JaredCJR

2015-11-26 5:43 GMT+08:00 Adam Green notifications@github.com:

The copyright comment updates and other changes look good! I have added a few comments above. Once those are addressed, I will merge. I only noted one place where you used tabs instead of expanding to spaces but there are others that you should find and change as well.

Thanks again!

— Reply to this email directly or view it on GitHub https://github.com/adamgreen/mri/pull/3#issuecomment-159737766.

adamgreen commented 8 years ago

I look forward to your PR updates.

I have responded to your CrashCatcher/CrashDebug questions in a separate e-mail.

TibaChang commented 8 years ago

Your advices really let me learn a lot! Thank you for your reply!!!

adamgreen commented 8 years ago

I have made a few more code style changes and pushed them up into my https://github.com/adamgreen/mri/tree/JaredCJR-master branch. The specific commit is 5406bfe270e5df16a2b0fec05a6198fe978b74ed

Please review and if you like it then I will merge it all into master.

Thanks again!

TibaChang commented 8 years ago

I think the change is great! Thank you for your efforts,I learn a lot again!

adamgreen commented 8 years ago

I have merged into my master branch a snapshot of your branch from early yesterday. I will close this PR since that accepts the bulk of your changes. It appears that you amended one of the most recent commits after I pulled and added in my changes and those haven't been merged into master. Please re-submit whatever those changes were in a new PR after merging/rebasing my latest master branch. I know that a recent comment you added to makefile is missing from what I just merged into master.

adamgreen commented 8 years ago

I have also added a Devices Supported list and included this STM device in the list.

Thanks again!