- Notifications
You must be signed in to change notification settings - Fork1k
MP1 update#774
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
MP1 update#774
Changes fromall commits
Commits
Show all changes
6 commits Select commitHold shift + click to select a range
eeebca2 [STM32MP157_DK] Comment unused ADC
fpistm2130494 [MP1] Update analog
fpistm76383da [STM32MP157_DK] Add missing clock configuration
fpistmd1911cc [STM32MP157_DK] Update README.md
fpistmfeef74c [MP1] Append sketch name to run_arduino helper script
fpistm4b361fd [MP1] Update OpenAMP to v1.0.3
fpistmFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
7 changes: 4 additions & 3 deletionscores/arduino/stm32/analog.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletionplatform.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletionsystem/Middlewares/OpenAMP/libmetal/lib/include/metal/system/generic/condition.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletionssystem/Middlewares/OpenAMP/libmetal/lib/include/metal/system/generic/sys.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletionssystem/Middlewares/OpenAMP/libmetal/st_readme.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletionsystem/Middlewares/OpenAMP/mw_if/app_if/openamp_conf_template.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletionssystem/Middlewares/OpenAMP/mw_if/platform_if/rsc_table_template.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletionssystem/Middlewares/OpenAMP/mw_if/st_readme.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletionssystem/Middlewares/OpenAMP/open-amp/lib/include/openamp/rpmsg.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletionsystem/Middlewares/OpenAMP/open-amp/lib/rpmsg/rpmsg.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -9,7 +9,6 @@ | ||
| #include <openamp/rpmsg.h> | ||
| #include <metal/alloc.h> | ||
| #include "rpmsg_internal.h" | ||
8 changes: 8 additions & 0 deletionssystem/Middlewares/OpenAMP/open-amp/st_readme.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
76 changes: 38 additions & 38 deletionsvariants/STM32MP157_DK/PeripheralPins.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
50 changes: 33 additions & 17 deletionsvariants/STM32MP157_DK/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -13,49 +13,65 @@ Because every OS may have different software configurations (especially Device T | ||
| * [STM32 MPU OpenSTLinux Distribution] | ||
| * [Balena OS] | ||
| #### Note | ||
| * Other distributions not listed here may run Arduino firmware but they are not tested. | ||
| * __The first two OSes should select `stm32mp157c-dk2-m4-examples-sdcard` boot mode (or device tree configuration) on boot time.__ | ||
| * `stm32mp157c-dk2-sdcard` boot mode is also known to work but it is not guaranteed. See [ST Wiki page on boot mode] for more detail. If you are using it for your own OS, see the [Linux Device Tree considerations](#Linux-Device-Tree-considerations) section. | ||
| ## How to use | ||
| After Verify and Upload, you will see a message similar to the following in Arduino IDE: | ||
| <Arduino build output path>/run_arduino_<sketch name>.sh generated successfully. | ||
| This file should be uploaded manually by SCP, SFTP, Kermit, or etc. | ||
| Then run "sh ./run_arduino_<sketch name>.sh start" command in the board's console. | ||
| For detailed instructions, please visit: | ||
| https://github.com/stm32duino/Arduino_Core_STM32/tree/master/variants/STM32MP157_DK/README.md | ||
| `<Arduino build output path>/run_arduino_<sketch name>.sh`looks like this for *Blink* example: | ||
| * Windows: | ||
| `C:/Users/%USERNAME%/AppData/Local/Temp/arduino_build_668148/run_arduino.Blink.sh` | ||
| * Linux/macOS: | ||
| `/tmp/arduino_build_668148/run_arduino_Blink.sh` | ||
| In this example, the user **must** upload `<Arduino build output path>/run_arduino_<sketch name>.sh` file manually. Uploading instruction is described later in the [Uploading](#Uploading) section. | ||
fpistm marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| After uploading the user can use `sh run_arduino_<sketch name>.sh start` in the console of host Linux via either SSH or Serial Console, to run the Arduino firmware. | ||
| #### Note | ||
| * `sh run_arduino_<sketch name>.sh start` is a one-shot command, the Arduino firmware only runs for the current boot. If you want to make it run after reboot, you need to use `sh run_arduino_<sketch name>.sh install` command. | ||
| `run_arduino_<sketch name>.sh` help page summary: | ||
| Usage: sh run_arduino_<sketch name>.sh [start|stop|restart|generate|install|uninstall] | ||
| run_arduino_<sketch name>.sh is a helper script that helps managing an Arduino binary | ||
| file for the coprocessor using remoteproc framework. | ||
| shrun_arduino_<sketch name>.sh start | ||
| Upload the binary to the coprocessor then start it. | ||
| This command must be executed while the script contains the binary | ||
| after generate command is run. | ||
| shrun_arduino_<sketch name>.sh install | ||
| Run the binary on boot automatically by installing a systemd service. | ||
| shrun_arduino_<sketch name>.sh uninstall | ||
| Uninstall the autostart service. | ||
| shrun_arduino_<sketch name>.sh stop | ||
| Stop the coprocessor. | ||
| shrun_arduino_<sketch name>.sh restart | ||
| Restart the coprocessor. | ||
| See the source code [run_arduino_gen.sh] for the full help page and the more details about the `run_arduino_<sketch name>.sh` generated. | ||
| [run_arduino_gen.sh] is the shell script that produces a copy of the script called `run_arduino_<sketch name>.sh` but with the sketch binary self-contained. | ||
| ## Pin mapping | ||
| @@ -96,7 +112,7 @@ There are additional pins for LEDs and buttons. | ||
| ## Uploading | ||
| As mentioned above `run_arduino_<sketch name>.sh` filehave tobe uploaded manuallyfrom the PC to the board's Linux file systemin order tobe executed on the board directly through the board's Linux console. There are many ways to upload the file. | ||
| ### Over Network | ||
| @@ -152,7 +168,7 @@ And then the Device Tree should enable TIM1 for the coprocessor, although this d | ||
| [Balena OS]: https://github.com/kbumsik/balena-st-stm32mp | ||
| [ST Wiki page on boot mode]: https://wiki.st.com/stm32mpu/wiki/STM32CubeMP1_Package#Getting_started_with_STM32CubeMP1_Package | ||
| [run_arduino_gen.sh]: https://github.com/stm32duino/Arduino_Tools/blob/master/run_arduino_gen.sh | ||
| [The ST Wiki page on C-Kermit]: https://wiki.st.com/stm32mpu/wiki/How_to_transfer_a_file_over_serial_console | ||
| [a bug in OpenSTLinux]: https://community.st.com/s/question/0D50X0000B9vHa4/cannot-get-download-a-file-using-kermit | ||
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.