In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to build a CRAB rapid development platform environment, the content is very detailed, interested friends can refer to, hope to be helpful to you.
A brief introduction to the characteristics of Bigfoot crab:
The separation of hardware and software allows the front-end software engineer to put aside the cumbersome underlying hardware development and use an easy-to-use development method, allowing him to focus on the development of front-end applications.
Providing a special hardware API interface format not only makes it no longer difficult for applications to control the hardware, but also allows hardware manufacturers to provide only hardware driver interfaces when developing core modules, so as to prevent core hardware drivers from being directly exposed to beginners, thus protecting the stability of hardware drivers.
It is compatible with most grammars of C#/Java and greatly reduces the difficulty of language learning. Many basic grammars can be learned directly from the learning website.
In the firmware storage of the hardware driver, the physical isolation of the application and the driver can not only avoid the accidental loss of the hardware driver, but also use hard encryption to protect the application.
CRAB language features:
Compatible with most of the C # / Java syntax.
Keywords and identifiers are not case-sensitive.
Strings are easy to use and support a variety of writing methods.
A unique date and time format.
There is a dedicated interface and format for software and hardware communication.
A unique event function.
IF syntax and Switch/Case syntax are more powerful and easy to use.
Support Class and Property, easy to use.
There are other features that speed up development.
I. hardware preparation
1) you need a Bigfoot crab development board (standard CR4101 or Qingke CM3166). If you don't have either, you can use open source schematics and build your own development board (the main chip is STM32F411/412/405/407). The sample programs in this series of tutorials are suitable for the standard version of CR4101 and the Qingke version of CM3166. If there are differences in functions, they will be explained separately.
(Qingke version of CM3166)
2) prepare a CR4101 cable, if it is a USB development board, please use MicroUSB cable (commonly known as mobile data line). If it is a CM3166 board, use the USB-B line (commonly known as the print line). A lot of important data of Bigfoot crab needs to be connected to work through USB, so be sure to make sure that the USB cable is intact.
3) optional: a RS232 serial line, or USB to RS232 line, for serial data communication or CM3166 underlying debug log monitoring.
4) optional: a USB to DC4.0 power cord, or a 5V/1A power supply using a DC4.0 plug for additional power supply. When you use a motor, the power provided by the USB cable may not be enough to provide the operation of the motor, so additional power is needed.
5) A small motor for motor sample program and relay sample program.
Note: if your development board is officially provided, then the above three wires (2, 3, 4) will be provided to you by the official.
6) Advanced player options: if you are an advanced player and are ready to download and update the Bigfoot Crab firmware yourself, or if your firmware is broken, you need to prepare a firmware download tool, such as Jmelink, Strelink, etc.
II. Software preparation
1) Bigfoot Crab Development Environment: download the address http://www.wisearm.com/crab and select "Development Kit". After downloading, extract it and put it on your hard drive. It is recommended to put it in the D:\ Crab directory (or E:\ Crab directory).
2) text editor: it is recommended to use SublimeText 3.0. download address: http://www.sublimetext.com/3. It is recommended to download the portable package version (Portable). Choose 32-bit or 64-bit according to the Windows version.
3) Advanced player options: please select and install J-Link or ST-Link tools according to your firmware development tools.
J-Link download address: https://www.segger.com/downloads/jlink
ST-Link download address: http://www.st.com/zh/embedded-software/stsw-link004.html
III. Directory structure
1) Bin: Bigfoot compilation tool catalog
2) Doc: document directory
3) Demo: sample program source code directory
4) Drivers: Bigfoot USB driver directory, including 32-bit and 64-bit, supporting WindowsXP/Visia/7
5) Imports: Bigfoot hardware interface program source code directory
6) Lang: multilingual catalogue of development tools
7) Sublime: CRAB language syntax support package for text compiler SublimeText 3.0
8) Tutorial:CRAB language syntax sample program directory
9) VirtualBoard: the host computer program on the PC end of the virtual development board.
IV. Driver installation
1) insert one end of the USB cable into the development board and the other end into the USB port of the computer, and the computer will prompt to find new hardware.
2) then Windows may prompt "failed to install the device driver", as shown in the following figure.
3) in my computer, open the device Manager, and you will find a new device in the list of other devices, as shown in the figure below.
4) right-click "WiseArm UsbGap Device", select "Update driver Software" in the menu item, and in the next dialog box, select "Browse computer for driver Software".
5) next, select the driver directory in the Bigfoot development tools directory, and then click next.
6) next, the following dialog box may appear, and choose to click "always install this driver software".
7) after the driver is successfully installed, the device manager will appear "WiseArm USB-GAP Device-Compliant". This indicates that the driver was installed successfully.
Note: if your hardware is your own DIY, you need to download the firmware to the development board and power it up again before the computer will recognize the new hardware.
5. CrabStudio interface
1) Connect / disconnect: connect the development board, or disconnect the current connection.
2) console: hardware internal debugging mode will be activated. This feature is only available to hardware driver developers and advanced players.
3) Wizard: directly open the last opened file
4) Open: open the CRAB source program or compiled object file.
5) compile: if the open file is a CRAB source program, this function is activated, click to compile the source program.
6) configuration: configure some compilation methods of the CRAB source program, see "Advanced Compiler" for details.
7) download: download the target program after compilation to the development board.
8) low grid: if the development board is used for the first time, or if there is a problem with the memory, you need to lower the grid first.
9) run: command the development board to start running the application, and if the application is paused, you can resume it with this command.
10) pause: commands the development board to pause running applications.
11) stop: command the development board to stop running applications, and the development board will automatically close some open devices.
12) reset: the command development board resets the running application, which means that the application will start all over again.
13) clear screen: clear the information of the command window and the online window.
VI. Source code editor
It is recommended that you use SublimeText 3.0 (Build 3126), which not only has a clean and beautiful interface, but also is powerful and easy to use.
About the use of SublimeText, please refer to the learning resources on the Internet, here is only to introduce how to add CRAB syntax.
1) Open the Bigfoot Crab development tools directory and find the Sublime directory.
2) copy the Crab.sublime-package file
3) Open the SublimeText directory and find the Packages directory.
4) paste the Crab.sublime-package file into this directory.
5) re-open SublimeText, and open EX01_HelloWorld.crab, if the previous steps are successful, you will see the color syntax shown in the figure above. If you fail, all you will see will be a white font.
On how to build the CRAB rapid development platform environment to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.