Skip to content
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

Using GDBREMOTE to do remote debug and upload freeloader #9

Open
fanghuaqi opened this issue Nov 22, 2022 · 1 comment
Open

Using GDBREMOTE to do remote debug and upload freeloader #9

fanghuaqi opened this issue Nov 22, 2022 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@fanghuaqi
Copy link
Member

See https://github.com/Nuclei-Software/nuclei-linux-sdk/blob/dev_nuclei_next/Makefile#L172-L179.

If you are do linux sdk development in remote machine, and your board is connect to your local PC, and you want to upload or debug freeloader to your local PC, you can do the following steps:

Assume your are using SOC=evalsoc CORE=ux900fd

  1. run openocd -f conf/evalsoc/openocd.cfg in your local pc, make sure bindto 0.0.0.0 in openocd.cfg is uncommented
  2. get your local pc ip, such as 192.168.43.120
  3. In remote pc, you can do following command to upload or debug freeloader
    a) upload freeloader: make SOC=evalsoc CORE=ux900fd GDBREMOTE="192.168.43.120:3333" upload_freeloader
    b) debug freeloader: make SOC=evalsoc CORE=ux900fd GDBREMOTE="192.168.43.120:3333" debug_freeloader
@fanghuaqi fanghuaqi self-assigned this Nov 22, 2022
@fanghuaqi fanghuaqi added the documentation Improvements or additions to documentation label Nov 22, 2022
@fanghuaqi
Copy link
Member Author

You can also check how to debug in Nuclei Studio in https://github.com/Nuclei-Software/nuclei-linux-sdk/wiki/Debug-Linuxsdk-using-NucleiStudio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant