`otp get`: device selection given after the row/field selector is silently ignored

Aperta Adatta ai principianti
#371 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
cli

Direzione di ricerca

Inizia leggendo l’analisi degli argomenti del comando otp get e confrontala con gli esempi di otp load, otp white-label e otp set menzionati nell’issue. Riproduci il problema con due dispositivi RP2350 in modalità BOOTSEL, poi verifica che le opzioni di selezione inserite dopo il selettore di riga o di campo vengano rispettate o rifiutate chiaramente. Il lavoro è completato quando sia --bus/--address sia --ser si comportano in modo coerente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Title

otp get: device selection given after the row/field selector is silently ignored

Body

Environment

picotool v2.3.1 (Linux), two RP2350s in BOOTSEL on the same host.

Steps to reproduce
$ picotool otp get --raw OTP_DATA_BOOTKEY0_0 --bus 1 --address 49
ERROR: Command requires a single RP-series device to be targeted.        # exit 248

$ picotool otp get --raw --bus 1 --address 49 OTP_DATA_BOOTKEY0_0
    VALUE 0x2cd845                                                       # works

$ picotool otp get -n OTP_DATA_BOOT_FLAGS1.KEY_VALID --bus 1 --address 49
ERROR: Command requires a single RP-series device to be targeted.

--ser behaves the same way.

Expected

Either the selection is honoured wherever it appears, as it is for otp load FILE --ser …, otp white-label … --ser … and otp set ROW VALUE --ser …, or the command rejects the stray options.

Actual

The device-selection options after the selector are dropped without a warning. That only shows up once a second device is connected: the same command line works with one device and fails with two. Scripts that ran fine on a single-board bench break in the field.

Lingua principale
C++
Stelle
1k
Fork
194
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di raspberrypi/picotool

Tutte le issue di raspberrypi/picotool

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.