Full question(s):
I need to make a change to the default pin mapping, and I am trying to rebuild the am_bsp_pins.c and .h files for Apollo3 in the SDK 2.1.0 release. However, after I make my changes in the bsp_pins.src file and I try to rebuild with the existing makefile I get an error message saying “no such file or directory”. Why?
Answer(s):
The BSP makefile for the Apollo3 EVB in boards\apollo3_evb\bsp in both SDK 2.1.0 and 2.2.0 is missing the reference to the MCU which is used in the path for the HAL’s am_hal_pin.h file. To fix this, the makedefs\am_bsp.mk needs to be edited as follows. The red text has been removed from the file.
Change from:
# Make "all" the default target.
all: bsp_pins.src am_bsp_pins.c am_bsp_pins.h $(SWROOT)/mcu/$(FAMILY)/hal/am_hal_pin.h
am_bsp_pins.c: bsp_pins.src
$(SWROOT)/tools/bsp_generator/pinconfig.py bsp_pins.src C >am_bsp_pins.c
am_bsp_pins.h: bsp_pins.src
$(SWROOT)/tools/bsp_generator/pinconfig.py bsp_pins.src H >am_bsp_pins.h
$(SWROOT)/mcu/apollo3/hal/am_hal_pin.h:
$(MAKE) -C $(SWROOT)/mcu/apollo3/hal am_hal_pin.h
# All makefiles use this to find the top level directory.
SWROOT?=..
include $(SWROOT)/makedefs/subdirs.mk
Change to:
# Make "all" the default target.
all: bsp_pins.src am_bsp_pins.c am_bsp_pins.h
am_bsp_pins.c: bsp_pins.src
$(SWROOT)/tools/bsp_generator/pinconfig.py bsp_pins.src C >am_bsp_pins.c
am_bsp_pins.h: bsp_pins.src
$(SWROOT)/tools/bsp_generator/pinconfig.py bsp_pins.src H >am_bsp_pins.h
# All makefiles use this to find the top level directory.
SWROOT?=..
include $(SWROOT)/makedefs/subdirs.mk
This issue has been corrected in the currently posted release of the SDK.
Comments
0 comments
Article is closed for comments.