-
Notifications
You must be signed in to change notification settings - Fork 0
Embedded Software Development
JTAG: JTAG Debugger and programmer is used for flashing the firmware on to the board through a 10-pin connector.
The software, documentation, and workspace required for software setup and use are all open source and free to download (see the References section).
C-code files must be compiled to generate the firmware (the binary file) with which the microcontroller max32626 on ADI BMCU Board is flashed.
BMCU Software | Name | Function |
---|---|---|
Maxim’s Software Toolchain | ARMCortexToolchain | This tool chain install’s maxim’s Eclipse IDE with required plugins |
Integrated Development Environment | Eclipse | This component is used for compiling the whole project consisting of C/C++ files |
Table 1. BMCU System Software Components
Installation of Eclipse IDE.
- Download & install ARM Cortex Toolchain from “ARMCortexToolchain.exe ” and the version is 1.2.0 or above.
- Run the above downloaded ARM Cortex Toolchain.
- While installing it will ask to select the plugins. select all. It consists of Eclipse CDT, GNU Tools etc.., which are required for the project.
- After Installation is done, in the installed folder under Maxim directory eclipse bat script will be available, run that script for using eclipse IDE.
For building the project, follow the steps mentioned below.
- Download the BMS Firmware (see the Reference Section).
- Run Eclipse IDE.
- Create a folder for workspace and select it as workspace location in Eclipse IDE.
- Import the extracted project.
- Build the project
For programming the BMCU board, follow the steps mentioned below:
- Connect the JTAG debugger(MAX32625PICO#) betwwen 10Pin connector and Host through USB cable. This should map USB drive on the Host PC.
- To program the executable onto the BMCU board, drag and drop the executable from "build\BMS_Master.elf" to MAX32625PICO# programmer folder/drive
- After flashing the executable, “Status LED” on BMCU board will glow with a stedy green color.
For debugging the project, follow the steps mentioned below:
- Add a run configuration in Eclipse IDE with required details such as elf location(“build\BMS_Master.elf”) in C/C++ applicationfield of Main tab, set the executable field with “openocd”, config options with “-s ${env_var:TOOLCHAIN_PATH}/share/openocd/scripts -f interface/cmsis-dap.cfg -f target/MAX32625.cfg” of Debugger tab.
- Run the project on IDE.
- After running the project, “Status LED” on BMCU board will glow with a stedy green color.
BMCU Board Unit Software:
When shipped, the BMCU Board Unit already has programmed flash and is already prepared for demonstrating the evalution platform.
By default the Interface direction is selected as forward, to change the direction of interface modify the below mentioned code.
In File : BMS_Master/Drivers/bms_dura_frc_spi.c , at Line 30
static dura_frc_direction spi_direction = FORWARD;
• select FORWARD/REVERSE as per the the requirement
• Then compile and re flash the image to board
- If you have not already downloaded the repository, go here: https://github.com/ArrowElectronics/BMCU/tree/Development
- Download and unzip the zip file
- Navigate to BMCU-Development\Source\BMS_Master