docs: a step-by-step first program on EmbSim's micro:bit board
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 82/100
- Type d'issue
- Documentation
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- c, markdown
- Domaine
- documentation
Piste de recherche
Read the Cortex-M3 walkthrough in docs/manual/getting-started.md, the board table, and tests/harness/thumb-m0/boot.c and io.c; build the toolchain and run the documented program with embsim --board microbit --stats. Capture the commands and output as printed, including the librt.a link step for __aeabi_uidivmod, and explain the ARMv6-M instruction set difference. Finish when a fresh clone can follow the walkthrough and make embdoc && ./embdoc check passes.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Context. Getting started walks through a first program on a Cortex-M3, step by step. The roadmap asks for a getting-started page for each EmbSim board. The BBC micro:bit (a Cortex-M0) is a good next one. Its row in the boards table already gives the target (thumbv6m-none-eabi), the harness (tests/harness/thumb-m0) and the link flags (-e reset -Ttext 0x0 -Tdata 0x20000000), but there is no walkthrough.
Where.
docs/manual/getting-started.md: the "Cortex-M3, step by step" section is the model, and the board table is around line 491. Add a "micro:bit (Cortex-M0), step by step" section next to it, or a page underdocs/manual/linked from there; ask in the comments if unsure which.tests/harness/thumb-m0/: itsboot.candio.care the start-up code and the output functions.embsim --board microbit: runs the image.
Steps.
- Write the same small program as the Cortex-M3 section, then compile, link and run it with
embcc,embldandembsim --board microbit --stats. - One difference you will meet: ARMv6-M has no divide instruction, so the harness's
io.ccalls__aeabi_uidivmod, and the link fails withundefined symbol '__aeabi_uidivmod'until the compiler runtime is linked. Build it withmake rt-embedded(orsh tools/build-rt.sh thumbv6m-none-eabi build/libc/thumbv6m-none-eabifor this target alone), putbuild/libc/thumbv6m-none-eabi/librt.alast on theembldline, and explain this in the section. - Paste the commands and the output exactly as printed. Do not edit the output.
- Say what else differs from the Cortex-M3 version: ARMv6-M's smaller, mostly 16-bit instruction set.
- Run
make embdoc && ./embdoc check.
Done when a reader with a fresh clone can follow the section from make embcc embld embsim to the program's output on EmbSim's micro:bit, the output shown is the real one, and ./embdoc check passes.
Before you start: the contributor's guide has the rules. A new test counts only after it has failed against the code before your change, and a commit subject reads area: summary. Questions are welcome in the comments or in Discussions.
- Langage dominant
- C
- Étoiles
- 1
- Forks
- 2
- Merge moyen
- 20 h 55 min
- PR mergées (30 j)
- 73
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de EmbLinkOs/EmbCC
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
documentation good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour
-
enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 50/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de EmbLinkOs/EmbCC
Issues similaires
-
Signed/unsigned mix in the EOCD backward scan rejects valid archives with a 65535-byte commentOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
bug game: 01008BA02525A000 ios
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour
-
area/ysql kind/bug priority/medium status/awaiting-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
yugabyte/yugabyte-db#37523 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
Les mainteneurs répondent en général sous 3 jours