Part Number: AM3358
Hello,
I'm evaluating the following program of Processor SDK RTOS v3_02_00_05.
C:\ti\pdk_am335x_1_0_5\packages\ti\starterware\examples\gpio\led_blink
When changing program area from DDR to SRAM, I think it's necessary to change Makefile.
C:\ti\pdk_am335x_1_0_5\packages\ti\starterware\examples\gpio\led_blink\Makefile
I referred to the following Makefile.
C:\ti\pdk_am335x_1_0_5\packages\ti\starterware\bootloader\Makefile
I made the following changes into Makefile, is it correct? In the map file, it was changed to SRAM placement.
#LNKCMD_FILE = $(ROOTDIR)/examples/$(TOOLCHAIN)/$(SOCFAMILY)_ddr.lds
LNKCMD_FILE = $(ROOTDIR)/examples/$(TOOLCHAIN)/$(SOCFAMILY)_boot_ccs.lds
Do I also need the following additions?
ifeq ($(PLATFORM),am335x-evm)
IMG_LOAD_ADDR = 0x402F0400
endif #($(PLATFORM),am335x-evm)
The program size does not exceed the SRAM size, but when I download the program, the following message is displayed on the console of CCS.
"CortxA8: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map."
While executing the MMUConfigAndEnable function in main function, it leads to a program runaway. It looks like initalizing pageTable array is cause.
When I comment out this function, the program runs correctly. However, because the cache is not enabled, the LED blinking interval is long.
Please give me some advice.
Regards,
Kazu