Hi,
I want to blink LED on hercules RM46 developement kit by timer based delay, i want some code for it .
is there any ready sample for it. It seems complected to use Halcogen as i tried for it.
please help.
thanks.
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.
Hi,
I want to blink LED on hercules RM46 developement kit by timer based delay, i want some code for it .
is there any ready sample for it. It seems complected to use Halcogen as i tried for it.
please help.
thanks.
Hi,
Thanks for your reply.
I have done setting for IAR only but RTI counter is not getting started.
Please help.
thanks.
Neha,
I will prepare a project using Halcogen and IAR and send it to you to demonstrate the RTI blinky.
Neha,
I was able to create a blinky project using Halcogen for RM46 and targeting IAR workbench.
At first try, the project was not working, and the LED was not blinking.
Here are the reasons:
1] By default, IAR is using the simulator to debug your code. That means, the code does not run on the target device.
Under the project properties, can you check the Debugger Tab and configure as following:
In my case, I'm using a J-link pod to connect to the target. Please select the appropriate driver matching your environment. If you are using one of our HDK board with the on-board XDS100, than select "XDS100/200/ICDI"
2] Under project properties, check the Linker Tab.
IAR by default is using their own startup code (__iar_program_start) as visible in the following screen shoot.
Halcogen creates a startup routine named _c_int00. This is the one to be used in your project. Here is the way it should be defined:
3] The generated file "sys_intvecs.asm" has a syntax in the section name:
It should be:
At that point, you can rebuild your project and start the debug.
IAR will download (erase, program, verify) the code and run it up to main().
Please try these instructions and let me know the result.
Thanks for your reply,
I have done all the setting as u have instructed above now I am facing new problem while debug with Hercules safety MCU Development kit RM46 and i am using J-link emulator and IDE is IAR.
Here I am attaching my project file.
also I am using
thanks and regards,
Neha,
It's good to ear that your project is now working.
For your information, please have a look to this information post:
http://e2e.ti.com/support/microcontrollers/hercules/f/312/t/365243.aspx