Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/08/00 09:09
Read: times


 
#3105 - Ljmp of main()
Hi there,

I'm a newbie. I started to write a very simple code in C to verify the operationality of a prototype board. As usual, I burned the hex code into Flash ROM, and run. Unfortunately, nothing positive had happened.

In hex code, I found that the Ljump instruction actually jumped to address 0x408D, but the actual code starts at address 0x4000. As I was using C to code, I have no access to at what address I should start my main() routine. Would someone tell me how to work around this problem in C or its configuration. FYI, I had manually edit the hex code to 0x4000.

Something that I don't understand is what still the program works in simulator.

Another question is, I wanted to ensure the prototype board works by togglling P1 on and off. Somehow, my program works on simulator but fail on actual board. Should I have extra resistors connected to each P1 pins. Should I put is high?

Appreciate for any pointers and suggestions.

Thanks in advance
nixien

No replies in thread

Back to Subject List