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

dist/tools/openocd: add OPENOCD_SERVER_ADDRESS variable #19724

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

fabian18
Copy link
Contributor

@fabian18 fabian18 commented Jun 9, 2023

Contribution description

We have a test setup with some boards connected to a Raspberry Pi. To do remote debugging, not from the Pi, we must tell OpenOCD not just to bind to localhost. This PR adds an OPENOCD_BIND_ADDRESS OPENOCD_SERVER_ADDRESS¸ variable.

Testing procedure

export OPENOCD_BIND_ADDRESS=192.168.0.231 && PROGRAMMER=openocd BOARD=same54-xpro make debug

### Starting Debugging ###
Open On-Chip Debugger 0.12.0-rc3-00999-gfcb40f49b (2023-05-12-10:54)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Reading symbols from /home/[email protected]/RIOT/examples/gnrc_networking/bin/same54-xpro/gnrc_networking.elf...
Remote debugging using 192.168.0.231:3333
__set_PRIMASK (priMask=1) at /home/[email protected]/RIOT/build/pkg/cmsis/CMSIS/Core/Include/cmsis_gcc.h:1236
1236      __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory");
(gdb)

Issues/PRs references

@github-actions github-actions bot added Area: build system Area: Build system Area: tools Area: Supplementary tools labels Jun 9, 2023
@benpicco
Copy link
Contributor

Is this also used for the client side? Then OPENOCD_SERVER_ADDRESS would probably be a better name that can be used for both client and server.

@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Jun 12, 2023
@riot-ci
Copy link

riot-ci commented Jun 12, 2023

Murdock results

✔️ PASSED

17d0e58 dist/tools/openocd: add OPENOCD_SERVER_ADDRESS variable

Success Failures Total Runtime
6934 0 6934 10m:57s

Artifacts

@fabian18
Copy link
Contributor Author

bors merge

@benpicco benpicco changed the title dist/tools/openocd: add OPENOCD_BIND_ADDRESS variable dist/tools/openocd: add OPENOCD_SERVER_ADDRESS variable Jun 13, 2023
bors bot added a commit that referenced this pull request Jun 13, 2023
19724: dist/tools/openocd: add OPENOCD_SERVER_ADDRESS variable r=fabian18 a=fabian18



Co-authored-by: Fabian Hüßler <[email protected]>
@maribu
Copy link
Member

maribu commented Jun 13, 2023

bors cancel
bors merge

Let's create a merge train

@bors
Copy link
Contributor

bors bot commented Jun 13, 2023

Canceled.

bors bot added a commit that referenced this pull request Jun 13, 2023
19724: dist/tools/openocd: add OPENOCD_SERVER_ADDRESS variable r=maribu a=fabian18



19729: cpu/qn908x/periph_i2c: allow internal pull-up on SCL r=maribu a=maribu

### Contribution description

Allow the board config to specify use of external or external pull-up resistor on the SCL up. Default to the internal pull-up, two weak pull ups in parallel are preferable over no pull-up.


Co-authored-by: Fabian Hüßler <[email protected]>
Co-authored-by: Marian Buschsieweke <[email protected]>
@bors
Copy link
Contributor

bors bot commented Jun 13, 2023

Canceled.

@fabian18
Copy link
Contributor Author

sorry I forgot to change the name in the commit message

@benpicco
Copy link
Contributor

bors merge

bors bot added a commit that referenced this pull request Jun 14, 2023
19703: cpu/sam0_eth: interrupt based link detection/auto-negotiation r=benpicco a=benpicco



19724: dist/tools/openocd: add OPENOCD_SERVER_ADDRESS variable r=benpicco a=fabian18



19735: nrf5x_common: Clear I2C periph shorts r=benpicco a=bergzand

### Contribution description

The I2C peripheral's shortcuts are used with the read and write register to automatically stop the I2C transaction or to continue with the next stage.

With simple I2C read and write bytes these shorts are not used, but are also not cleared by the function in all cases, causing it to use the shortcut configuration set by a previous function call. This patch ensures that the shorts are always set by the read and write functions

### Testing procedure

Should be possible to spot with a logic analyzer and the I2C periph test. Maybe the HIL test can also detect it :)

### Issues/PRs references

None

Co-authored-by: Benjamin Valentin <[email protected]>
Co-authored-by: Fabian Hüßler <[email protected]>
Co-authored-by: Koen Zandberg <[email protected]>
@bors
Copy link
Contributor

bors bot commented Jun 14, 2023

Build failed (retrying...):

@bors
Copy link
Contributor

bors bot commented Jun 14, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit 829af7c into RIOT-OS:master Jun 14, 2023
@benpicco benpicco added this to the Release 2023.07 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: build system Area: Build system Area: tools Area: Supplementary tools CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants