TI E2E Community
startup.c and boot.c
I am trying to re-create a simple sys BIOS project just like lab3 from the OMAP-L138 sys Bios workshop but being used in a custom built board using C6746. I do have all my peripherals tested and working with non BIOS project. I added my own Gpio.c and Gpio.h that has a toggleLED function. I removed the evmomapL138_bsl.lib since I figured we don't need them and instead added an enmc6748.h that has all the device system controllers, GPIO control SPI...etc (this is the same used for the non BIOS) The goal is to register the toggleLED thread as an idle task, everything compiles ok however when I load the .out it never goes to main which tells me it is still stuck in initialization part I get an error message:
Can't find a source file at "/db/rtree/install/trees/products/xdcprod/xdcprod-o27/product/Linux/xdctools_3_22_02_27/packages/xdc/runtime/Startup.c" Locate the file or edit the source lookup path to include its location.
Sometimes the error talk about about a boot.c.
I am using: CCS5.2.1.00018. Please see attached for the RTSC settings. What am I doing wrong ?
I appreciate the help.
Can you set a breakpoint at _xdc_runtime_Startup_startMods__I and turn off the automatic running to main() (Tools->Debugger Options->Generic Debugger options).
I'm confused by the toggleLED. Is this an SYS/BIOS idle function or a task?
I did set a breakpoint at the location you mentioned as shown in that attached picture, disabled run to main, the program runs to the breakpoint. Please see attached.
toggle LED is an Idle function.
sorry I am attaching a better picture
Can you add a breakpoint at xdc_runtime_System_lastFxn__I also. I've attached a picture of the general startup sequence to help show where these breakpoints are at. As you can tell, I'm just trying to help narrow down where the problem is.
Are you enabling interrupts yourself before main? At the lastFxn breakpoint, can you look at ROV to see if anything is fishy. It would good to look at Task, Hwi, and BIOS.
I would like to correct what I told you I think I was looking at the wrong place.
I did put a breakpoint in: xdc_runtime_System_lastFxn__I: and xdc_runtime_Startup_startMods__I disabled "go to main", reloaded to c_int_00 when I hit ran it never stopped at either places.
Sorry, this fell off my radar. Did this get resolved?
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.