Hello all,
I have a TMDXICE 3359 hardware , CCS 5.1.1.00031 and SYSBIOS Industrial SDK
My first try is using the I2C_LED example from SDK , modify the LED rotation speed and LOAD / RUN the I2C_LED.OUT. no problem , works
First problem , no BIN file was generates. reinstall CSS with CORTEX M MCU support solves this problem.
Now i want to put the new I2C_LED.BIN in SPI Memory and boot from SPI.
Getting Started guide says : write bootloader and application to SPI and reboot the device
start SPI_flashing_tool and enter the filename to flash when promted.
But when i LOAD / RUN SPI_flashing_tool.out no promt appears ?
And where can i found the bootloader.bin
The command:
post_build.bin "C:\ti\ccsv5" "C:\ti\ccsv5\tools\compiler\tms470" "C:\ti\am335x_sysbios_ind_sdk_1.0.0.2\sdk\starterware\starterware-starterware-src\binary\armv7a\cgttms470_ccs\am335x\evmAM335x\bootloader" "boot" "C:\ti\am335x_sysbios_ind_sdk_1.0.0.2\sdk\starterware\starterware-starterware-src\tools\ti_image\cgttms470_ccs\ti_image.exe" "0" "0" "Bootloader"
The script can not find a .bin file, i think it is temporary, because i has always an other name like this: appl_24648_21875_17451.bin
When the script is runnung, there is a line set tmpbin=C:\appl_24648_21875_17451.bin
I am having the same issue, although I am trying to generate a bootloader binary to be stored in SPI Flash. Is something wrong with my post-build command? Here is the output of my console:
'Finished building target: ecat_appl.out'
' '
C:/TI/ccsv5/utils/bin/gmake --no-print-directory post-build
"../../../../tools/post_build/post_build.bat" "C:/TI/ccsv5" "C:/TI/ccsv5/tools/compiler/tms470" "C:\TI\am335x_sysbios_ind_sdk_1.0.0.2\sdk\protocols\ethercat\ecat_appl\Debug" "ecat_appl" "C:\TI\am335x_sysbios_ind_sdk_1.0.0.2\sdk\starterware\starterware-starterware-src\tools\ti_image\cgttms470_ccs\ti_image.exe" "1" "0" "ecat_appl_SPI.bin"
Binary file does not exist in path
Could Not Find C:\appl_28005_1872_14729.bin
finished
ok.. so the issue is your CCS installation doesn't have tiobj2bin.bat , in the expected location.
post_build.bat internally calls other batch files and exes to convert the .out file to .bin file. In your case, the above mentioned batch file must be missing..
Can you check whether you have tiobj2bin.bat and mkhex4bin.exe in ccsv5\utils\tiobj2bin folder? if not present there, can you search for these files in your ccsv5 folder? if you can find those files in your ccs installation folder, please copy them to ccsv5\utils\tiobj2bin and try again.
Regards,
Shahid
Hello Jonathan
i had the same problem, the CCSV5/UTILS/TIOBJ2BIN folder is missing.
reinstall CCS and add the CORTEX M MCU support this solved the problem in my system
Actually, the folder C:\TI\ccsv5\utils\tiobj2bin does exist, and I can see the two files in there: mkhex4bin.exe and tiobj2bin.bat
Is there something else that could be causing this issue?
I have even these folders and the files and even the descreibed problem.
I'm having the same problem, and I've tracked it down to something to do with Windows 7 and not being able to create a file at the root directory (C:\) when UAC is turned on (even if you're an administrator on the computer). post_build.bat tries to make a file via the statement set bintmp="C:\appl_%random%_%random%_%random%.bin" (at the root of C:\ drive). Windows 7 won't allow this and for some reason no error is generated: the .BIN file just isn't created. Even if you run the tiobj2bin command manually via a command prompt, it appears to execute without error, but the .BIN file is not created. If you change the "bintmp" location to be somewhere else (like the CWD or C:\temp or something like that), then all is good. So it seems to be a Windows anomaly? I know this "condition" exists in Vista and Windows 7, but I don't know if it occurs in Windows XP?
It would appear to be advisable for TI to change post_build.bat to use a different bintmp location?
As Darrin Hansen pointed out, this seems to be an issue on Windows Vista and 7.
For now, as a workaround, you may create a temporary folder some where and update the post-build script to use that folder for temporary binary file. Please ensure that the full path for the temporary folder doesn't contain any spaces.
for eg :- create a folder named temp_isdk_post_build in C: and update the post_build.bat statement set bintmp="C:\appl_%random%_%random%_%random%.bin" to set bintmp="C:\temp_isdk_post_build\appl_%random%_%random%_%random%.bin"
postbuild.bat can be found in $(SDK_INSTALL_PATH)\tools\post_build directory.
This will be fixed in next sdk release.
Thanks,
Hello,
I've a similar problem: with a ICE, the first time I switch on the board the led correctly blinks.
I've tried to download the UartEcho prebuilt app. I follow the instructions found in "Industrial SDK Getting Started Guide" in the "Flashing Binaries to SPI Flash on ICE Using CCS" section. It seems to download the bin file correctly because at the end of operations Verify...Success appears. But the UART doesn't works.
I then tried to download the i2c_led example again but nothing blinks. I then tried to download the SPI bootloader (always prebuilt files by now) and the i2c_led.bin app again but nothing blinks.
These are the steps I execute:
Enter the file name (full path without spaces)
Enter the offset (0x0 for the boot_SPI.bin file and 0x20000 for the i2c_led_SPI.bin)
Press 0 to confirm
All is ok until verify...success
Disconnect the debugger
Turn on and on the board
but I see only the red led on
I'm using Windows 7 32 bit, CCS 5.1.1.00031, SysBios SDK 01.00.00.03
What I'm wrong? Is there a way to see if the correct booloader and app is flashed correctly in SPI?
Thanks in advance.
Hello LucaM,
I think you missed to load the binary file to memory before entering '0' to confirm. Please go through the below link to know how to load file to memory.
http://processors.wiki.ti.com/index.php/AM335x_SYSBIOS_Industrial_SDK_Getting_Started_Guide#Running_Application_from_SPI_Flash
Here are the instructions to load binary to memory.
Load binary file to Memory - Using LoadMemory
Open Memory window in CCS ('View->Memory Browser) Select "Tools->'Load Memory". Browse and select the .bin file to be loaded and Click 'Next'. (File should be named as *.bin) Enter 0x80100000 in "Start Address' field. Select '32 bits' for 'Type-size' field
Keep the swap tick box un-checked.
click 'Finish'
Hi,
I'am stupid...Problem solved.
Wish you have a fun day
Jupiter.