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.

LAUNCHXL2-570LC43: How to turn on/off on-board LED(s)

Part Number: LAUNCHXL2-570LC43
Other Parts Discussed in Thread: HALCOGEN

Does anyone have a code example of how to do this on the XL2-570LC43 board?

Unfortunately, the method shown here, for the 570LS32, does not apply to the XL2-570LC43.  For instance, the "het.h" file does not exist.

https://www.youtube.com/watch?v=tsVmpH6Pm2U

Thanks.

  • Hi Peter,

    https://software-dl.ti.com/hercules/hercules_docs/latest/hercules/Examples/Examples.html

    project0 is to toggle 2 GIO pins to turn on/off 2 user leds on launchpad.

  • You did point me to project0 already, but I got caught up on building project1, and forgot to look back.

    I saw this piece of code...

    gioInit();
    gioSetDirection(gioPORTA, giobDIR); // Set GIOA port pin direction to all output
    gioSetBit(gioPORTA, 0, 0); // Clear the GIOA0 pin
    gioSetBit(gioPORTA, 1, 0); // Clear the GIOA1 pin

    and used...

    gioSetBit(gioPORTB, 6, (myunit >> 1) & 0x1); // LED2
    gioSetBit(gioPORTB, 7, myunit & 0x1); // LED3

    to set the LEDs, after configuring pins 6 and 7 for output via Halcogen.

    But project0 shows me another way, with toggling.

    Thank you so much.

    BTW, project1 uses Hercules SafeTI Diagnostic Library 2.4.0 but my set-up only has 2.3.1.  How do I download the missing piece?  Thanks.

  • Thanks.

    Installed the package, but the .lib file is not included...

    Building target: "RM57x_LaunchPad_Project1.out"
    Invoking: ARM Linker
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/bin/armcl" -mv7R5 --code_state=32 --float_support=VFPv3D16 -me --define=_RM57Lx_ -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --abi=eabi -z -m"RM57x_LaunchPad_Project1.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/lib" -i"C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-arm_20.2.0.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --ecc=on --xml_link_info="RM57x_LaunchPad_Project1_linkInfo.xml" --rom_model -o "RM57x_LaunchPad_Project1.out" "./demoapp/source/adc_demos.obj" "./demoapp/source/app_main_NoOS.obj" "./demoapp/source/esm_application_callback.obj" "./demoapp/source/misc.obj" "./demoapp/source/support_functions.obj" "./halcogen/source/HL_adc.obj" "./halcogen/source/HL_epc.obj" "./halcogen/source/HL_errata.obj" "./halcogen/source/HL_errata_SSWF021_45.obj" "./halcogen/source/HL_esm.obj" "./halcogen/source/HL_gio.obj" "./halcogen/source/HL_nmpu.obj" "./halcogen/source/HL_notification.obj" "./halcogen/source/HL_pinmux.obj" "./halcogen/source/HL_rti.obj" "./halcogen/source/HL_sci.obj" "./halcogen/source/HL_sys_core.obj" "./halcogen/source/HL_sys_dma.obj" "./halcogen/source/HL_sys_intvecs.obj" "./halcogen/source/HL_sys_mpu.obj" "./halcogen/source/HL_sys_pcr.obj" "./halcogen/source/HL_sys_phantom.obj" "./halcogen/source/HL_sys_pmm.obj" "./halcogen/source/HL_sys_pmu.obj" "./halcogen/source/HL_sys_startup.obj" "./halcogen/source/HL_sys_vim.obj" "./halcogen/source/HL_system.obj" "../halcogen/source/HL_sys_link.cmd" -llibc.a -l"C:/ti/Hercules/SafeTI Diagnostic Library/2.4.0/libs/SafeTILib_RM57L_LE.lib"
    <Linking>
    error #10008-D: cannot find file "C:/ti/Hercules/SafeTI Diagnostic Library/2.4.0/libs/SafeTILib_RM57L_LE.lib"

  • Hi Peter,

    When you install the library, did you check "component group ..."?

  • I rushed through the installation and just did the default selection.  Thank you!