This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

UART boot for biosusb example usbdevhid



     I made change on the biosusb keyboard hid dev example for sending  and receiving 32 bytes data with PC.  The memory need is reduced so the program can run on internal memory of c6745.  The program run ok on evmomapL137 and can exchange data with a hid application on PC.  But it do not work when I tried UART boot by the DSUB-9 connector on evmomapL137 board. UART boot process seems end fine but it do not respond to my hid application on PC.      I used genAIS and UARTboot on other programs before and had no problem.  I already add Setup_System_config() & Setup_Psc_All_on() .   Do I need to set timer1 for ticking tasks?  (usbdevhid have many threads  _DevHidAppMan, jungo_thread0......5,  timer1 is used to tick tasks )

  • I guess you probably already seen the page:

    http://tiexpressdsp.com/index.php/Flashing_the_C6747_EVM

    Have you tested your UART boot with a simple application? You could try booting a simple example (like the ones provided in the BSL tests) and see if the problem is something in the UART boot process or in the application it self. Usually when it works with the emulator and it does not work with the boot loader it is an initialization that the GEL file is doing that your code is not, bit you seem to have already taken care of it. That is why I suggest trying the UART boot with another application to try to debug and isolate the problem.

     

  • Hi Mariana,

        I read Flashing_the_C6747_EVM and tried gpio example on pspdrivers_01_20_00_07\packages\ti\pspiom\examples\evm6747\   

        I add Setup_System_Config() & Setup_Psc_All_On()  in gpioSample_main.c   compile it without error

       then use AISgen to generate UART2 boot file    .bin and boot the emulator.\ by UartHost program   

       It did not work. I check several times have no ideal what's wrong?????

       I also tried the led example on bios_5_33_05\board\evmc6747_v1\tests still not work

     

      

  • Hi Mariana,

      Thanks for your help.    I have the led and dip_switch example work now.    http://e2e.ti.com/forums/p/2421/9140.aspx  Yan mentioned : "the initialization routines, setup_pll() in particular should not be compiled with optimization flag on"   so I set the compiler opt level --  none  and the two example work  though I do not include setup_pll() in main function

  • Hi Mike,

    Thanks for the feedback. I tested my LED project and it works with optimization up to o1. o2 and o3 do not work. I will add an observation on the Flashing the EVM wiki page.

    You can use optimization in your project, and you can put just the initialization functions in a separate source file and with optimization "none" just for that file. To do that, right click on the source file and select "File Specific Options...". This way all the other files can have the optimization you want, and you can still boot.