7 years, 4 months ago.

MBED LPC1768 to LPC1758 copper

I need help. I've developed code for a servo loop. All works well for the MBED module on a PCB for signal interface / drivers (hardware). Now I want to just blink a LED on one output pin (LPC1758 chip). I used NXP's Flash-magic with the ISP protocol. The boot loader mode loaded the intel hex file which went well. After reset the programmed LED to blink and did not blink.

Are there any examples of how to compile LPC1768 code to target LPC1758 code. My feelings are something is missing. examples: MBED LPC1768 MBED PwmOut Q3(p22); MBED PwmOut Q4(p21);

Target LPC1758 (80 pin copper) PwmOut Q3(P2_4); PwmOut Q4(P2_5);

So far what I am doing doesn't reveal it self in the current documentation.

1 Answer

7 years, 4 months ago.

Dennis have you dug into the workings of mbed? There is a pin map file that needs to match the target. If the online compiler does not have the specific target then you can import mbed-dev into your project and edit an existing target...or you can build a completely new target using offline tools.

It's fairly straightforward to do but not easy to give quick how-to from this forum interface. I thought there was a customization guide but can't find a link.

Accepted Answer

Thanks Bill. It makes sense. I thought the compiler automatically did this by the pin nomenclature - (p22) to (p2_4). Makes sense. It just wasn't mentioned. Dennis

posted by Dennis Anttila 08 Dec 2016