Ray Liu
/
NuMaker-mbed-NuBrick-example
Modify the file main.cpp for M487
README.md@0:a67fc999dd68, 2017-09-29 (annotated)
- Committer:
- shliu1
- Date:
- Fri Sep 29 05:44:02 2017 +0000
- Revision:
- 0:a67fc999dd68
main.cpp adds the setting of TARGET_NUMAKER_PFM_M487 for M487
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shliu1 | 0:a67fc999dd68 | 1 | # Getting started sample with I2C slave device on mbed OS |
shliu1 | 0:a67fc999dd68 | 2 | |
shliu1 | 0:a67fc999dd68 | 3 | |
shliu1 | 0:a67fc999dd68 | 4 | ### Import NuMaker-mbed-NuBrick-example from on-line IDE |
shliu1 | 0:a67fc999dd68 | 5 | 1. Please choose Nuvoton NuMaker-PFM-XXX as your target platform. |
shliu1 | 0:a67fc999dd68 | 6 | 2. Please press the left-up icon "New", then choose "NuMaker Brick I2C slave devices" from the template list. |
shliu1 | 0:a67fc999dd68 | 7 | 3. Your NuMaker-mbed-NuBrick-example program is existed. |
shliu1 | 0:a67fc999dd68 | 8 | |
shliu1 | 0:a67fc999dd68 | 9 | #### Now compile |
shliu1 | 0:a67fc999dd68 | 10 | Please press compile icon. |
shliu1 | 0:a67fc999dd68 | 11 | |
shliu1 | 0:a67fc999dd68 | 12 | #### Burn Code & Execute |
shliu1 | 0:a67fc999dd68 | 13 | 1. Connect the board NuMaker-PFM-XXX with your PC by USB cable, then there will be one "mbed" disk. |
shliu1 | 0:a67fc999dd68 | 14 | 2. Copy the built binary file into "mbed" disk on you PC. |
shliu1 | 0:a67fc999dd68 | 15 | 3. Press device's reset button to execute, user could test I2C slave devices. |
shliu1 | 0:a67fc999dd68 | 16 |