8 years, 2 months ago.

How can I find target definition?

Hi,

I've been trying to write program(s), which can work on multiple boards.
I want to take advantage of "TARGET_xxx" definition to decide which pin(s) to assign.
So far, I found
FRDM-KL25Z TARGET_KL25Z
FRDM-KL46Z TARGET_KL46Z
FRDM-KL22F TARGET_K22F
FRDM-KL05Z TARGET_KL05Z
NUCLEO-F411RE TARGET_F411RE
LPC800-MAX TARGET_LPC812

But some boards are difficult to "guess" the target string.
Would someone teach me where I can find such string definition for a particular board?

14-Jan-2015
moto

1 Answer

8 years, 2 months ago.

Hello Tanaka-san. Perhaps this webpage will help:

https://developer.mbed.org/handbook/mbed-SDK-porting

but specifically:

https://github.com/mbedmicro/mbed/blob/master/workspace_tools/targets.py

Accepted Answer

Dear Sanjiv-san,
Thank you very much for your information!
Yes, targets.py showed me the whole picture.
Best Regards,
14-Jan-2016
Motoo Tanaka

posted by Motoo Tanaka 14 Jan 2016