We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, there,
I am new to ARM and just downloaded MDK3.70 demo to try to get Blinky to run on lpc2106.
I set up uvision3, and wired up the schematic in Proteus (7.1), since I already downloaded an almost identical program there - with a .hex file. the program is to flash LEDs linked to P0.0-P0.7. The Proteus simulation, with the pre-made .hex file, worked well.
so I decided to produce my own .hex file in uvision3, see below.
=========code=========== #include <LPC210x.H> /* LPC210x definitions */
void wait (void) { /* wait function */ ; /* only to delay for LED flashes */ }
int main (void) { // unsigned int i; /* Delay var */ // unsigned int j; /* LED var */
PINSEL0=0x00; IODIR = 0xFF; // P0.0..7 defined as Outputs */
while (1) { IOSET=0xff; //?? IOCLR=0xff; } }
========end of code==============
I didn't put the wait() function there for simplicity.
well, uvision did produce a .hex file. I loaded the file to the proteus simulation, and replaced the pre-made .hex. no go. all ports are in high impedance mode and nothing happened.
I would appreciate very much if you can point me in the right direction. I am thinking the problem is likely caused by my uvision not producing the right .hex file (wrong settings somewhere?) but I am not sure where to start.
your help is greatly appreciated. Thanks.
problem resolved!
I still don't know what happened but I went through a couple uninstall / install cycles and now the same program produces the right .hex file that flashes those lovely LEDs!
Thanks everyone for your help.
this is KILLING me!!!!!!!!!!!!!!!!!!!!!!!
so I had some issues with my mdk3.70 demo not producing the right .hex file. I solved that by uninstalling and reinstalling it a few times.
and the program worked beautifully until I used it today. it would produce a .hex file but that .hex file wouldn't change any of the pins, as it did before.
uninstalling / reinstalling doesn't solve the problem this time.
I understand that the demo version has code size limitations. But does it also have a time limitation as well - the keil website isn't exactly clear on that.
any solutions?
Thanks.