Other Parts Discussed in Thread: C2000WARE
Dear experts,
I am trying to run a program on a custom board in standalone mode without success.I am using the CCS v. 12.2 and a USB 200 JTAG emulator. The board has two 48 pin F280037 chips and use the two pin JTAG header configuration, with the TMS inputs of the two chips selectable separately. Both chips are running ok with the debugger connected, but neither does not boot when the emulator is detached. The XRSN pins remain high. I am using the default flash boot configuration without any modifications to the OTP boot mode configuration bits. The standard boot pins GPIO24 and GPIO32 are tied to the 3.3V VDDIO which should direct the boot to flash. I checked some earlier directions and thought it is necessary to incorporate the gel file initializations to be executed after main(), but before that I checked where the PC was stuck by connecting the emulator after power on. Due to some earlier problems with a daisy chain connection between the two chips, I now have a mechanical switch that allows connecting the TMS signal selectively to one or the other of the two chips when power is on, and I have only "halt when connecting" set in CCS, so assumably the code location stays where it is stuck on power on (?). It seems to stay in the wait boot mode program memory area, but is it forced there by the emulator connection action, even though the connection does not cause the device reset? If not, adding the gel code after main() would not help, because the PC does not ever reach the user flash code beginning address.
But if the emulator connection always forces the CPU to the wait boot mode, and in fact, standalone boot without the emulator connected would try to branch to the code start, then I have a question about the necessary gel functions needed. I am using the C2000Ware 4.03.00.00 examples' f28003x_sysctrl.c as the initialization code, and it seems to have some redundant functions with some of the gel functions, so which gel functions would be required in addition for successful boot?
An earlier thread had concerns that the flash memory code beginning locations in OTP were different in different versions of the F28003x, but it seemed only apply to the 280034, not to 280037, but are there differences in different pinout versions? Mine are 48 pin.
Best regards,
Jouko