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.

I tried to use Iar embedded workbench IDE to turn on LED of my TM4C123G board but it doesn't work.

I think the problem is the fact that my computer does not detect the board. I followed the installation guide online. I have the drivers downloaded, but it seems my computer cannot detect the board at all. 

More info: 

So I connect my TM4C123G to my computer via a USB port. In my PC I check the device manager tab to see whether there's a change, none. I repeatedly pull/plug the board -> refresh. Still there's no change under the device manager -> usb.

In the guide it ask me to search under device manager -> other device. However, I do not see "other device". Also, the board is not defected, when I connect the board to my computer, the lights are blinking. The print screen of my device manager -> usb is shown in this post. Please help, I really want this to work. Thanks

The code I am using to blink the led is also shown in this post. The simulator version works, but when I change project->optoins->debugger->setup->driver to TI stellaris and on the download tab I chekced verified download and use flash loader(s) and run the code. I got

" Fatal error: ***error**. Unable to open device 0x00000002 session aborted"

and 

"fail to load flash loader c:\program files\IAR system\embedded workbench\......\LM4Fxxxhxxx.flash. 

To confirm my hypothesis that the computer did indeed fail to detect the board, I got the same error as above when I run the code without the board being connected to my PC. 

  • My code is shown here. It works perfectly fine on the simulator. The code is exactly the same as my instructor so I don't think it's the code's fault but just in case. 

  • There are two USB connections on the board.  One is labled DBG, and is on the "end" of the board.  The other is labled "DEVICE" and is on the side, near the row of header pins.  Which one is connected to your computer?

    --Bobby

  • Hi Bobby,

    I have the same problem. ICDI installed. I was able to upload a program from the board to the hard drive just for trying that system can see the board. However, when I tried to download my small program from IAR Kickstart recommended by TI site, I got the same error message as the topicstarter. Cable definitely connected to the top USB connector (DBG)

    All the Debugger setting are as same as shown in spmu354.pdf for TI Stellaris Driver

    Windows 7 x64 Professional (if it matters)

  • Haven't time/strength to review spmu354.pdf now - here are "known good" IAR settings when "not" using J-Link:
     
    First - insure you've chosen proper target MCU.  (Note - we don't use Tiva - you must enter your MCU)
     
    Then - under Debugger insure you're not using J-Link (use as shown)
     
     
    and then (note that 500HKz may be too high - dial down to perhaps 5KHz to start - then increase)
     
    Many of the IAR projects may "default" to J-Link Debugger which appears outside of your needs...
    Should this have been covered w/in ref .pdf - 1000 pardons - faster/easier to post than search now...
  • cb1_mobile,

    Thanks.

    Tried to set 10 kHz. Downloaded once. Then tried increase the speed up to 100, 50, 20 kHz - did not work. After that could not load neither on 10 or 5 kHz. Started to work at 2 kHz

    Update. Downloaded the code @ 2 kHz and stopped at main. However, trying to make a step stopped IDE to work :(

  • @ Igor,

    Glad that suggestions led to some success.  Many (most/all) such issues resolve w/use of begged, borrowed, "stolen" J-Link.  (vastly superior to ICDI - our group/clients find/report)

    Just a guess - but if you've tried to "step" @ "SysCtlClockSet()" that may have wreaked havoc.  (that function is massive - involves many critical MCU manipulations - suggest that you not "step" thru it.)

    Always wise to confirm that your board's xtal is duplicated w/in the mated parameter w/in "SysCtlClockSet" - and it may be that a failed "step" here caused/contributed to your present problem.

    If your issue persists - likely wise to attempt LM Flash Programmer utility, "Unlock."  (check Blizzard MCU)

  • cb1_mobile

    Sorry for the late response. Tried to work with it. There was no a good success and finally switched to the Code Composer. There is no problem at all with this IDE. Downloaded the program without any problems and could go step by step.