Comments (2)
This sounds like a good idea to me. I think we may only be able to implement this in a "best effort" manner though rather than as something with 100% accuracy.
Impl notes from the top of my head:
-
look into the
core_type
field of thisprobe_rs::Target
Line 127 in 5fe5ed4
-
try to extract the compilation target (e.g.
thumbv6m-none-eabi
) from this path. Note that probe-run can be invoked like this:probe-run ./my-elf
; in that case there's no target information in the path (theNone
case)Line 122 in 5fe5ed4
-
compare (1) and (2) and emit a suggestion or not
- for
M0
, target MUST bethumbv6m-none-eabi
- for
M3
, target SHOULD bethumbv7m-none-eabi
- for
M4
andM7
, target SHOULD bethumbv7em-none-eabi
. (thumbv7em-none-eabihf
may also be OK but probe-rs has no information about FPU support) - for
Riscv
, I don't think we can give any suggestion as we don't have any info about instruction set support from probe-rs (I vs IMAC vs IMC)
- for
from probe-run.
Which compilation should it be in case of CoreType::Armv8m
which is Cortex M23 M33?
In the "Platform Support" (link) list I can find thumbv8m.base-none-eabi
, thumbv8m.main-none-eabi
and thumbv8m.main-none-eabihf
. Can it be any of them?
from probe-run.
Related Issues (20)
- `probe-run` fails to build due to yanked dependency HOT 8
- Probe run error points to old trouble shooting section
- CMSIS_DAP is not recognised (fix available link to PR)
- probe-run fails with `thread 'main' panicked at 'no entry found for key'` on heavy traffic and (maybe) buggy global logger. HOT 2
- The erase-all flag erases entire chip unnecessarily on nrf5340 which affects performance HOT 7
- Allow single line log output HOT 6
- Feature request: Timestamps on RTT messages HOT 1
- probe-run cannot detect pico HOT 4
- println! unexpectedly prints the statement's location before the formatted string
- probe-run assumes stack fits within a memory region
- Add an optional flag to halt once Ctrl+C is pressed
- Cannot install probe-run on Mac M1 HOT 5
- Running app on STM32F4 crashes core with unrecoverable exception HOT 8
- --log-format is inconvenient when only timestamp must be added HOT 1
- Cannot execute binary file HOT 2
- Issues using `probe-run` with an fe310g002 microcontroller HOT 5
- RP 2040: "ARM specific error" HOT 2
- Wrong SRAM regions for STM32L4 HOT 3
- Using app-template - Timeout occurred during operation HOT 2
- release final version with deprecation notice
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from probe-run.