6 years, 7 months ago.

2A Motor Shield code for DC Motor


I am working on a program to control my 12V DC motor for my FRDM-KL25Z board. As I am newbie to this platform I would appreciate if anyone can share their codes.


1 Answer

6 years, 7 months ago.

Have a look at this, https://developer.mbed.org/users/littlexc/code/Motordriver/ and see if it is of any use.

hi chris. thanks for your help. when i try compiling the codes, it shows Error: Undefined symbol $Super$$main (referred from retarget.o) error. any idea what is the issue?

posted by Piravin Seventhilingam 11 Feb 2015

At the moment I have no idea. The best guess is that it is written for the LPC1768, which may not compile for the FRDM-KL25Z. Try copying the code into a new .cpp and .h file.

posted by Christopher Hasler 19 Feb 2015