It's not a secret anymore!*
The moose likes Arduino and the fly likes TI LaunchPad Hercules - hardware interrupts and using them to control a circuit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Arduino
Bookmark "TI LaunchPad Hercules - hardware interrupts and using them to control a circuit" Watch "TI LaunchPad Hercules - hardware interrupts and using them to control a circuit" New topic
Author

TI LaunchPad Hercules - hardware interrupts and using them to control a circuit

Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2491
    
    8

I spent the best part of a Sunday to figure out how to generate a hardware interupt from a button and how to catch the event and do something with it.

I used HALCoGen to visually configure interrupt and input/output ports .
It took a while for me to find out that interrupts only work after you enable them in you code. I assumed that configuring them was all that's needed.



OCUP UML fundamental and ITIL foundation
youtube channel
Richard Tookey
Ranch Hand

Joined: Aug 27, 2012
Posts: 1035
    
  10

Jan Cumps wrote:I spent the best part of a Sunday to figure out how to generate a hardware interupt from a button


I have spent the best part of the last 24 hours trying to upload a simple LED blink example to my new Hercules RM42x LaunchPad. I don't know what I am doing and don't understand many of the esoteric terms being used in the documentation. My biggest problem is knowing what "Connection" I need to configure. I have tried using CCS on both Linux and Windows and though on Windows I seem to get closer to uploading a program on both OS regardless of what I set the "Connection" to be I get a


On both Windows and Linux the Hercules registers a USB connection so I know the computers can see the Hercules but that is about the limit of my success!

I'm not a dumbo and have managed to upload programs to Arduinos, PICS, 8051s and the Raspberry PI but it looks like the Hercules has defeated me! I only bought the Hercules on a whim (effectively half price through postage saving from Farnell) but I'm very close to the point of chucking it in the bin!

I would be grateful for any advice on connection configuration.
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2491
    
    8

It might be related to the drivers. When you don't install CCSV5 as admin/root (both windows and linux) it doesn't install the drivers.
It is mentioned in small print in one of the installation dialog boxes (that text also mentions where to find the driver installers, for linux ["where you installed"]/ccsv5/install_scripts folder, and run the “install_drivers.sh” script as root. )

If that is not it, post a message on the e2e.ti.com forum, under the Hercules safety µControllers area.

I don't have to configure a connection ever (I'm using both Ubuntu 12x and Windows 8.1). CCSV5 picks it up automaticaly if I select the correct JTAG emulator in the project options (Properties -> General -> Connection -> TI XDS 100v2 USB...)
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2491
    
    8

(Also check if you have repositioned any jumpers/switches)
Richard Tookey
Ranch Hand

Joined: Aug 27, 2012
Posts: 1035
    
  10

Jan Cumps wrote:f I select the correct JTAG emulator in the project options (Properties -> General -> Connection -> TI XDS 100v2 USB...)


Thanks Jan. I obviously have something more fundamental miss-configured because i don't have "TI XDS 100v2 USB..." in the connections drop down !

Time to start a new project and configure from scratch.
Richard Tookey
Ranch Hand

Joined: Aug 27, 2012
Posts: 1035
    
  10

My 'connection' drop down list has only

Data Snashot Viewer
TI MSP430 USB1 [Default]
TI MSP430 USB2
TI MSP430 USB3
UARTConnection

Looks like I am specifying the wrong processor.
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2491
    
    8

Strange number of options you have. What license did you select when starting CCSv5?

Have you tried the step-by-step Project0 exercises?
http://processors.wiki.ti.com/index.php/Hercules_LaunchPad:_Project_0




[Thumbnail for Screenshot from 2014-01-03 15:46:55.png]

Richard Tookey
Ranch Hand

Joined: Aug 27, 2012
Posts: 1035
    
  10

Jan Cumps wrote:Strange number of options you have. What license did you select when starting CCSv5?

Have you tried the step-by-step Project0 exercises?
http://processors.wiki.ti.com/index.php/Hercules_LaunchPad:_Project_0



In my efforts to get a valid configuration I have installed ccs several times using different licences but using your previous post has allowed me to move forwards a little. Mid yesterday I worked with "Project 0" but had problems with the import producing invalid links to both the source files and H files and this is obviously where things went badly wrong. I tried various approaches to deal with the bad links and still don't have a good solution but I now do have the correct interface. Tomorrow I will start again with "Project 0".

Thanks for your help.
 
Consider Paul's rocket mass heater.
 
subject: TI LaunchPad Hercules - hardware interrupts and using them to control a circuit
 
Similar Threads
JNI + interrupts handling
InterruptedException
Java Interrupts vs OS Interrupts
XML to Java object using JAXB
How do I use youtube tag ?