SJ2 Development Environment
There are two major components of the development environment:
- Compile a program for the ARM processor (such as the SJ2 board)
- Compile a program for your host machine (your laptop)
Get started with the development environment by either:
- Download and install Git and then clone the SJ2-C repository
- Go to the SJ2-C repository and download the zip file
Compile the SJ2 project
Most of the documentation related to the ARM compiler is captured in a few README files that you can read here. We will not repeat the details here so please read the linked article.
After setting up the SJ2-C development environment, try the following:
- Compile the FreeRTOS sample project (
- Load it onto the processor
- Modify the program (maybe printf statement), and load/run it again
- Use a serial terminal program or Google Chrome browser based terminal program
- Type "help" at the terminal window. Also try "help <command name>"
- Use all of the possible commands, and briefly skim through the code at
handlers_general.cto get an idea of how the code works for each command.
Compile x86 project
x86 stands for instruction set for your laptop, which means that the project can be compiled and run on your machine without having to compile, load, and run it on your hex project. Being able to compile a project for your x86 host machine also provides the platform for being able to run unit-tests.
SJ2 Board Startup
- The real boot location is actually at
- Initial values of RAM are copied from Flash memory's
- ARM core's floating point unit, and interrupts are initialized
- Clock and a timer API is initialized
- Peripherals and sensors are initialized
- Finally, call to
The development environment contains built-in code formatting tool. Each time you compile, it will first reformat the source code according to preset Google coding format.