Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 22051

RTOS/MSP432P401R: Rebuilding Simplelink 1.4

$
0
0

Part Number:MSP432P401R

Tool/software: TI-RTOS

Hi all,

This question relates to two of my earlier posts - this and this.

I'm using SimpleLink 1.4 for the moment and I'm aware of a bug in the Timer.c driver.  I know the fix (see links above) but I need to rebuild Simplelink in order to get that fix into my project.

For some files (like PowerMSP432.c - see links above), it seems sufficient to put a copy of that file into my project, then that file is build and linked instead of the existing object file from SimpleLink.  Unfortunately that doesn't seem to work with Timer.c (compiler can't find Timer.xdc.h - copying this file into my project, or fulling qualifying the path in the Timer.c #include doesn't resolve this) so I'm back to needing to rebuild SimpleLink under windows. 

How do I do this?  The documentation that comes with SimpleLink v1.4 (SPRUEX3T AppA) describes rebuilding the RTOS, but it refers to files that don't exist so I'm guessing that section of the manual hasn't been updated.

My approach so far has been

1. Add XDCTools to the my path so I can get gmake

path c:\ti\ccs740\xdctools_3_50_04_43_core;%path%

2. Change to the Simplelink install directory

cd \ti\simplelink_msp432_sdk_1_40_01_00

3. Previously created a makefile in this directory with the following contents

all:
    $(MAKE) -C kernel/tirtos/packages all

clean:
    $(MAKE) -C kernel/tirtos/packages clean

4. Setup a path for XCDTOOLS_JAVA_HOME

set XDCTOOLS_JAVA_HOME="C:\Program Files\Java\jre1.8.0_161\"

5. Run the make fully specifying all the variables used by the make file

gmake CCS_ARMCOMPILER=C:/ti/ccs740/ccsv7/tools/compiler/ti-cgt-msp430_16.9.7.LTS  XDC_INSTALL_DIR=c:/ti/ccs740/xdctools_3_50_04_43_core CORESDK_INSTALL_DIR=C:/ti/simplelink_msp432_sdk_1_40_01_00

6. I get the following error

gmake -C kernel/tirtos/packages all
gmake[1]: Entering directory `C:/ti/simplelink_msp432_sdk_1_40_01_00/kernel/tirtos/packages'
building packages ...
making .interfaces: Wed May 23 16:35:16 EAST 2018 ...
======== .interfaces [gnu/targets/] ========
making package.mak (because of package.bld) ...
c:\ti\ccs740\xdctools_3_50_04_43_core\xs.exe: error: can't create session manager: can't find a JVM; the environment var
iable 'XDCTOOLS_JAVA_HOME' is set, but does not appear to be a directory containing a 32-bit Java Runtime Environment (1
.7 or greater); e.g., 'C:\Program Files (x86)\Java\jre7'.
gmake[1]: *** No rule to make target `package.mak', needed by `.interfaces'.  Stop.
xdctools_3_50_04_43_core\gmake.exe: *** [gnu/targets/,.interfaces] Error 2
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `C:/ti/simplelink_msp432_sdk_1_40_01_00/kernel/tirtos/packages'
gmake: *** [all] Error 2

Can anyone assist in resolving this error, or provide specific instructions on how to rebuild the part of the RTOS that needs updating.

Cheers

Julian


Viewing all articles
Browse latest Browse all 22051

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>