https://docs.zephyrproject.org/latest/develop/getting_started/index.html
west init -m https://github.com/msp-ti/zephyr.git --mr mspm0_cleanup ~/zephyrproject
~/zephyrproject/zephyr
directory, open the west.yml
file and update the hal_ti
section. You need to add url
property to point to the hal_ti project (https://github.com/msp-ti/hal_ti) and change the revision to point to the branch mspm0_support
:It should look like this:
- name: hal_ti revision: mspm0_support url: https://github.com/msp-ti/hal_ti path: modules/hal/ti groups: - hal
west update
This will update the modules (e.g. clones hal_ti and other modules)
ZEPHYR_BASE
to point to the zephyr installation:export ZEPHYR_BASE=~/zephyrproject/zephyr/
zephyr.txt
file, you need to set the environment variable CCS_BASE
to point to CCS directory. A Kconfig variable CONFIG_MSPM0_IMAGE_OUTPUT_TI_TXT
will use it to generate the TI_TXT file once you build the project:export CCS_BASE=~/ti/ccs1250
src/
(if you are using a virtual environment make sure to enable it first):./build.sh
There's a known issue where the TI TXT file produced by the tool may not be 8-byte aligned, to fix the file:
@address
or q
statement, make sure that the line contains either 8 or 16 hex characters.00
until the file is 8 or 16 hex charaters long.Flash the zephyr.txt