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.
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.
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. )
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...)
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".