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.

question about example adc display in Halcogen 4.0.5

Other Parts Discussed in Thread: HALCOGEN, TMS570LC4357

Dear ti.

I follow steps about  "example_adcDisplay.c" in halcogen 4.0.5. it don't run.(example giob0 pin don't toggle)

What is the code problem in project?

4338.example_adcDisplay_giob0_sci3_adc1_r00.zip

  • Hi,

    On looking on to the project I assume you are using "TMS570LC4357", can you pls confirm the same ?

    Also on what pin are you looking at to monitor GPIOB[0], as well as the code waiting for ADC1 conversion complete loop ?

    It would be good if you help us with these details before I go try this on my setup. Thanks

  • Dear TI

    I find a answer.

    I set serial ports below condition(i am a korean. sometimes you see korean langugage)

    teraterm is telnet and serial port program. if you connect TMS570LC4357 , pc get two serial ports. you select xds110 class apllication / user uart(com xx).

    and then run like below image.

     

     

    i use halcogen 4.0.5 and ccs 6.1.0

    and ccs 6.1.xxx

     

     

    step1. if you see halcogen example manual for adc display . c, you think it is not efficient manual. i explain addition information for adcdisplay.c. you set GIO driver, SCI1 Driver , ADC1 driver. halcogen manual don’t explain serial channel number(Ex SCI1) and i confuse adcdisplay.c use SCI3 Channel because tms570 circuit pdf don’t have a information about sci1 signal and connected component. TMS570LC4357 is same circuit RM570 but RM570 circuit pdf don’t have full circuit(without xds100 v2 circuit and connected signals) maybe sci1 channel is default channel and it connected usb serial ports in Launchpad.

     

    step2

    you don’t set [all pinmux] for adcdisplay.c sci1. (maybe sci1 is default) because i don’t understand about TMS570LC4357(cortex M series) structure , i think [halcogen pinmux tap windows]  can  control additional pins(except default pins)

     

     

    step3

    i don’t understand why halcogen manual explain setting for GIOB[0]. you set [portb dir check box ] in [GIO.]

     

    step3

    you select sci1 tap widnows. it has three menu , sci global , sci data format , sci port.

    [sci global] has default status below.

     

    [sci data format] has default status below

    [sci port] has default status. you change [ tx pin and rx pin dir check box.]

     

    step4

    you select [ adc1 menu]. you use [adc1 general default status].

     

     

    you select [adc group1]. you check [Enable Channel ld in Conversion Results]. and change ADC1 Group 1 Triiger options, [GIOB0 , Rising Edge , hardware] and check [Enable Pin 0, Enable Pin 1] in ADC! Group Channel Selection.

     

    step5

    you make new project in ccs.

    %recently , TI update usb driver of TMS570LC4357. you must update usb driver. when i do usb driver for TMS570LC4357, flash download do well without fails.

    i use compile options of project properties. in image

     

    i use linker options of project properties in image. i set [project include options].

    i set program/memory load of debug option in image. (%i used no verification before usb driver update)

     

    i use flash setting of debug option in image (i don’t change anything)

     

    step 6

    you presss F11. ccs run flash erasing

     

    you wait for some minutes.

     

    ok download done. you click run button. you can see uart tx operation and check GIOB0 signal.

     

     

    if you check GIOB0 signal with oscilloscope, you set wide time of x axis.  GIOB0 signal is very narrow. then i fixed codes. easy check.

     

    GIOB[0] signal is here in J8.8. check with oscilloscope.

     

    SCI1 TX signal is here in J5.4. check with oscilloscope

     

    Good luck with you and your TMS570LC4357.

    and i hope

    -TI support a full circuit pdf for TMS570LC4357 with xds100v2 (it is very useful for everyone.)

    -TI support additional  multiday workshop docs with labs, ppt for TMS570.(lack of TMS570 workshop docs)

    -------------------------------------------------------------------------------------------------------------------------------------------------

    4314.example_adcDisplay_giob0_sci1_adc1_r01_ok.zip