This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to convert LPC1768 mbed program code to LPC1769 code

Note: This was originally posted on 7th March 2013 at http://forums.arm.com

I need to use an existing program code in lpc1768 mbed to load & use it in lpc1769...how do i do this??
  • Note: This was originally posted on 7th March 2013 at http://forums.arm.com

    You may export the project into MDK as described here: http://mbed.org/handbook/Exporting-to-uVision

    Once you did the export, you may change the device using uVision.  Just select the LPC1769 under Project - Options - Device.
  • Note: This was originally posted on 19th June 2013 at http://forums.arm.com

    I had developed some C++ code in the mBed compiler for the LPC1768 and exported it to a Keil uVision project.  After doing this and testing my software and coming up with working code for the 1768 mBed dev board I had a prototype board built with the 1769 and compiled the hex file in uVision after chaning the target micro to the LPC 1769 but when I install it does not work at all.  So then I developed a simple program that would flash the LED on the dev board on the 1768 and that worked.  I exported it to uVision and changed the GPIO to a different pin to control the LED and changed the project to the target 1769 micro and that does not work either.  If I use the standard C library, the Keil LPC17xx_startup.s script, and the 17xx header file I can get the heartbeat to work with no issues.  I think there is something in the mbed library that causes the 1769 register mapping to be off because I can't get anything to work on the 1769 with the mbed library.
  • Note: This was originally posted on 23rd June 2013 at http://forums.arm.com


    I had developed some C++ code in the mBed compiler for the LPC1768 and exported it to a Keil uVision project.  After doing this and testing my software and coming up with working code for the 1768 mBed dev board I had a prototype board built with the 1769 and compiled the hex file in uVision after chaning the target micro to the LPC 1769 but when I install it does not work at all.  So then I developed a simple program that would flash the LED on the dev board on the 1768 and that worked.  I exported it to uVision and changed the GPIO to a different pin to control the LED and changed the project to the target 1769 micro and that does not work either.  If I use the standard C library, the Keil LPC17xx_startup.s script, and the 17xx header file I can get the heartbeat to work with no issues.  I think there is something in the mbed library that causes the 1769 register mapping to be off because I can't get anything to work on the 1769 with the mbed library.


    You can refer following topic:
    https://mbed.org/forum/mbed/topic/1079/