uv4 more teething problems solved
































**************************************************************************
Program development log 
**************************************************************************

**************************************************************************
Program - Blink LED
Description - Blink LED
Author - TL Fong
Version - 0.32
Date - 2013jul10hkt1123
License - No copyright, free for everybody
Hardware - Somy ARM Cortex M0 LPC1114 Learning Board 
Software - Keil uVision 4.71.2.0 ARM compiler toolchain
Hardware configuration notes
  1. LED1 is connected to PIO1-8 
**************************************************************************

*** 2013jul09 ************************************************************
1. This is the very first program I am writing for the LPC1114 learning 
   board.
2. LED1 is connection to PIO1-8
3. The program has built without errors, but I have no confidence it will 
   run the first time.  There is a risk that this program might corrupt 
   the auto start self test LED display program stored in the flash. So I 
   dare not to download and run it.  I guess I need to first make sure a 
   couple of things. 
   (a) If I upload this program, will the old program in flash got 
       replaced?
   (b) Can I upload this program in a spare space in flash, so not to 
       overwrite the original program there?
4. I remember that when I played with Arduino, there is no such worry, 
   because there is no self test LED display message in Arduino.
5. Since I am new to this PLC1114 learning board, I think I better play 
   safe and read more about flash downloading etc before running this first 
   program.
   Another think I should also do is to first run this program in simulation 
   mode, to check out if the PIO1-8 pin is indeed going high and low.
6. One more thing I need to find out the the time delay function.  I wonder
   if Keil C has any delay function like delayMilliseconds()
7. For Raspberry Pi Python I can easily google the Python to give answers 
   for the above questions.  But for this Keil C, I have no idea where to 
   start.  Perhaps I should try the uVision Help first.
8. Rebuild target 'Blinky' results
   Program Size: Code=1376 RO-data=284 RW-data=4 ZI-data=612  
   "blinky.axf" - 0 Error(s), 0 Warning(s).

*** 2013jul10 ************************************************************
1. Removed the following lines.
void enableGpioClock()
{
 LPC_SYSCON->SYSAHBCLKCTRL |= (1UL <<  6);
 LPC_SYSCON->SYSAHBCLKCTRL |= (1UL <<  16);
 }
2. Teething problems took me 2 hours to solve.  Problem included the 
   following.
   a. No end of line character in source and header file.  I needed to
      use EditPlus to add 1 extra blank line to get around.
   b. Could not find system files like LPC11xx.h etc.  To get around
      I just blindly copy one while folder from the NXP example program.
      but I still could not locate the .h files.  I tried to use Windows
      built in search and also third party file locators but still no 
      luck.
3. After another rebuidling, then I found why I could not locate the 
   header files.  Actually they are automatically generated during the 
   build process.  So problem solved.

****************************************************************************
End of program development log 
****************************************************************************

No comments:

Post a Comment