Skip to main content

Subsection 12.5.2 Part 3: Verify the Wiring, Stage the Project

Activity 12.5.2. Verify Tuesday’s wiring, then stage the project.

(a)

Run Tuesday’s whoami_test.c, unchanged, and confirm it still prints Accelerometer initialized! If it does not, re-seat the wiring against Figure 12.2.4 before you continue.

(c)

Exclude whoami_test.c from the build: right-click it, choose Resource Configurations → Exclude from Build, click Select All so both Debug and Release exclude the file, then click OK (Figure 12.5.6). lsm303agr_partial.c is not finished yet, so the build will still show errors, just not the multiple definition of 'main' one.
Figure 12.5.6. The Exclude from build dialog. Click Select All so both Debug and Release exclude the file, then click OK.
If your build fails with multiple definition of 'main', or of lsm303_AccelRegisterRead, which both files define, you skipped the exclude step.