Arduino IDE in to add a custom board

Arduino IDE in to add a custom board

Arduino for the average user not involve custom boards. Most of them are adding a new card can be, and these new board SDK is already packaged others. We just need to copy the link to the Arduino json Preferences -> URL Manager add-on development board in just fine. Here Insert Picture Description
Then we can see we just added json link corresponding to a development board development board manager.
Here Insert Picture Description
Then install, and then wait for the installation to complete it, you can see where we have the Arduino board just by json added that the selection board.
Here Insert Picture Description
This completes the process of adding new Arduino development board, usually the player to this end. However, this is only the beginning. We want our own Arduino board supports custom.
Arduino development board is to identify new links through json we just added, download to a local post, to parse json file in the content, we have the first option by clicking on the preferences.txt quick to jump to the path Arduino download json file . Here Insert Picture Description
After opening we can see that we just downloaded json file
Here Insert Picture Description
and then we open the json file, you can see something like the following figure. Arduino on the adoption url, put on your own server SDK and compiler programming toolkit download to ... / staging / packages / path down. After the download is complete, put the archive into the ... / packages / down. We can see what files under their own two paths.

Here Insert Picture Description
Then let's put this bag into our own. First, we entered into ... / Arduino15 / packages / TinkerNode_NB- IoT / hardware / esp32 / directory we changed 1.0.0 1.0.1, then add a compressed file DFRobot_TinkerNode-NB-IoT-1.0.1.zip. First copy out. The archive is our packaged SDK.
We enter into this open github archive directory, use ** sha256sum .zip compression command can get this package sha256 checksum yards.
Here Insert Picture Description
Look at the specific compressed packet size, recorded
Here Insert Picture Description
us before then download a good
copy .json file out, and then we want to change the json file, let Arduino download our own json file, and download the SDK package of our own play. We put a copy of the original V1.0.0 copy of the platform in front of it, and to change the new information coming
Here Insert Picture Description
in order to facilitate testing, we can not first put on the SDK archive server can be placed on the unit. HFS open the archive into it
Here Insert Picture Description
you can see our SDK archive download path, and then change the path to go inside json file

Here Insert Picture Description
Then we put a good change in the json file can also drag HFS. And copy the downloaded file paths json down.
Here Insert Picture Description
Then open the Add manager of the development board, delete the original, into our own json.
Here Insert Picture Description
We re-open after saving development board manager. You can then download the version 1.0.1 update our.
Here Insert Picture Description
This will add to the Arduino into our own compression SDK package. Now you can go and change any of the contents of the SDK, and want it to achieve what it has played with you. Little friends can go to other places to change to change json file inside, the place to see what changes can cause. This also helps you to better understand the meaning json file content, so that you more clearly Arduino15 this folder structure and content of the.
Finally, the shots is not easy, give praise. hfs download link pending the adoption attached. . .

Released two original articles · won praise 4 · Views 3377

Guess you like

Origin blog.csdn.net/qq_28738985/article/details/104279346