Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
5b8f8868
Verified
Commit
5b8f8868
authored
5 years ago
by
rahix
Browse files
Options
Downloads
Patches
Plain Diff
WIP: Update README
parent
62d9f530
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+11
-1
11 additions, 1 deletion
README.md
ports/card10/README.md
+0
-47
0 additions, 47 deletions
ports/card10/README.md
with
11 additions
and
48 deletions
README.md
+
11
−
1
View file @
5b8f8868
micropython fork with card10 support
------------------------------------
Original README in
[
`README-OLD.md`
](
./README-OLD.md
)
Original README in
[
`README-OLD.md`
](
./README-OLD.md
)
.
`card10`
specific code is in
[
`ports/card10`
](
./ports/card10
)
.
## Building
Build the card10 port using
```
bash
cd
ports/card10
make
SDK_LOCATION
=
/path/to/firmware/sdk
```
If everything goes well, you'll end up with a file
`ports/card10/build/firmware.elf`
.
This diff is collapsed.
Click to expand it.
ports/card10/README.md
deleted
100644 → 0
+
0
−
47
View file @
62d9f530
# The minimal port
This port is intended to be a minimal MicroPython port that actually runs.
It can run under Linux (or similar) and on any STM32F4xx MCU (eg the pyboard).
## Building and running Linux version
By default the port will be built for the host machine:
$ make
To run the executable and get a basic working REPL do:
$ make run
## Building for an STM32 MCU
The Makefile has the ability to build for a Cortex-M CPU, and by default
includes some start-up code for an STM32F4xx MCU and also enables a UART
for communication. To build:
$ make CROSS=1
If you previously built the Linux version, you will need to first run
`make clean`
to get rid of incompatible object files.
Building will produce the build/firmware.dfu file which can be programmed
to an MCU using:
$ make CROSS=1 deploy
This version of the build will work out-of-the-box on a pyboard (and
anything similar), and will give you a MicroPython REPL on UART1 at 9600
baud. Pin PA13 will also be driven high, and this turns on the red LED on
the pyboard.
## Building without the built-in MicroPython compiler
This minimal port can be built with the built-in MicroPython compiler
disabled. This will reduce the firmware by about 20k on a Thumb2 machine,
and by about 40k on 32-bit x86. Without the compiler the REPL will be
disabled, but pre-compiled scripts can still be executed.
To test out this feature, change the
`MICROPY_ENABLE_COMPILER`
config
option to "0" in the mpconfigport.h file in this directory. Then
recompile and run the firmware and it will execute the frozentest.py
file.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment