MCUXPRESSO SAME CODE ONLY WORKING ON EXAMPLE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCUXPRESSO SAME CODE ONLY WORKING ON EXAMPLE

930 Views
eduardabelló
Contributor II

I'm getting started with MCUXpresso IDE with the FRDM KL82Z board and I've been able to debug the GPIO blinking example on the board, but when I generate my own project with the project wizard and I create a main file and I copy the example it should work but it does nothing, apparently the instructions are executed because I can see come printf on the console but the LED does nothing.

0 Kudos
4 Replies

715 Views
lpcxpresso_supp
NXP Employee
NXP Employee

Sounds like when you created your new project, you had "Empty board files" selected, rather than "Default board files".  If you make sure "Default... " is selected, this should pull in the appropriate files for your FRDM board when you create the new project.

See section 5.1.1, "SDK New Project Wizard: Basic Project Creation and Settings", of the MCUXpresso IDE v10.0.2 User Guide for more details.

Regards,

MCUXpresso IDE Support

0 Kudos

715 Views
eduardabelló
Contributor II

Yesterday finally I was able to make it work, it seemed to be that the board, and pin config files were different in the example than in my project. It's my first time working with nxp boards some one knows where I can find any example on how to configure the board.c file?

0 Kudos

715 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Eduard,

Please check the register of GPIO , you can also share your project here.

BR

Alice

0 Kudos

715 Views
converse
Senior Contributor V

Check the startup code. This gets run befor main()

0 Kudos