AnsweredAssumed Answered

Cannot resolve the error during compilation - "Error: Identifier "SIM" is undefined in "main.cpp""

Question asked by Shobit Sharma on Aug 2, 2019
Latest reply on Aug 2, 2019 by Shobit Sharma

I just started learning about ARM Cortex-M Microcontrollers and I am following this book - "Embedded Systems Fundamentals with Arm Cortex M Based Microcontrollers: A Practical Approach (ISBN-13: 978-1911531036) by Alexander Dean".

I tried to compile the code given in the book to flash different colors on onboard RGB LED (file attached with name Main.cpp and also the header file I used MKL25Z4.h). I tried to create a .bin file using online Mbed IDE ( but I am getting the following error - "Error: Identifier "SIM" is undefined in "main.cpp", Line: 12, Col: 4" and I am not able to figure out why.