Part Number: TMDSICE3359
Other Parts Discussed in Thread: PROFIBUS, AM3359
Application Behavior: The Profibus DB Slave application functions correctly when loaded via JTAG/CCS in Debug mode. However, it fails to execute autonomously when deployed to a microSD card for Release operation.
What i've tried:
1. SPI Flash Erase Procedure
A. Hardware Preparation and Connection
-
- Jumper Configuration: Connected pins 1 and 2 of jumper J5 (Sysboot) to set the initial configuration mode.
- Data Connection: Connected the TI board to my pc via a micro-USB cable to port J13.
- Power Supply: Provided 24V DC power to the board via the power jack.
B. CCS Environment Setup
-
- Target Creation: Generated a target configuration file named AM3359-ice-v2.ccxml.
- Parameter Definition: Selected the Texas Instruments XDS100v2 USB Debug Probe connection and the ICE_AM3359 device.
C. Loading the Flash Programmer
-
- Session Launch: Launched the configuration from the Target Configurations view to switch CCS to the Debug perspective.
- Core Connection: Established a direct link with the CortexA8 core using the Connect Target command.
- Binary Load: Loaded the utility software spi_flash_writer_AM335X.out (found in the StarterWare tools) into the processor's RAM.
D. SPI Flash Erase Execution
-
- Start Application: Pressed Resume to run the flasher on the board.
- Erase Commands: Selected option 2 (Erase).
- Parameters: Set the size to 64 KB (10000 in HEX).
- Verification: Confirmed the process once the message "Erase complete. Exiting" appeared.
2. Release Deployment (Boot from SD)
Using a microSD card (capacity <= 8 GB) formatted in FAT32.
A. Generate the Application File (app)
-
- In command promp:
C:\ti\pdk_am335x_1_0_17\packages\ti\starterware\tools\ti_image
-
- To set the entry point to DDR3 memory (0x80000000):
tiimage.exe 0x80000000 NONE C:\ti\PRU-ICSS-Profibus_Slave_01.00.02.01\...\profibus_slave_AM335x_arm.bin app
-
- Copied the resulting app file to the root of the microSD card.
B. Preparing the Bootloader (MLO)
-
- Navigate to:
C:\ti\pdk_am335x_1_0_17\packages\ti\starterware\binary\bootloader\bin\am335x-evm\gcc
-
- Copid the file "bootloader_boot_mmcsd_a8host_release_ti.bin" to the root of the microSD card and renamed it exactly MLO (case-sensitive, no extension).
3. Final Hardware Configuration and Boot
-
- Reconfigure J5: Powered down the board and moveed jumper J5 to pins 2 and 3 to prioritize MMC/SD booting.
- Industrial Mode: Connected pins 2 and 3 for the jumpers J18/J19.
- Insertion and Power: Insert the card into slot J16. Upon connecting the 24V power, the system did not connect via profibus as it does when using debbug.