IDE generates broken board.h file when using new versions of the config tools

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

IDE generates broken board.h file when using new versions of the config tools

687 Views
bartoc
Contributor I

I notice the project wizard generates a board.h with macros containing symbols that the config generators (pins) no longer define, the macros in question are LED_RED_INIT, LED_BLUE_INIT, LED_GREEN_INIT and the macros are the IOCON_PIO_* macros.

 

This is for an lpcxpresso55s69 board.

0 Kudos
3 Replies

655 Views
bartoc
Contributor I

oh, it looks like the relevant defines might be in fsl_iocon.h, I did have a board.h at one point that I think used the IOCON_PIO defines, but I can't reproduce it anymore. Feel free to consider this resolved.

0 Kudos

660 Views
bartoc
Contributor I

I'm using Version 11.3.1 Some photos are attached.

 

The first is from the pins configuration window, after enabling a new pin, and you can see that it's generated quite different code that for the pins that were enabled in the project template.

 

The second is board.h, and we can see the macro LED_RED_INIT refer to IOCON_DIGITAL_EN, which, while it's defined in this project because the project template had some pins enabled, if you disable all the pins, save, then enable some that macro will no longer be defined, since pinmux doesn't use it anymore with the new style.

Screenshot 2021-05-27 004117.pngScreenshot 2021-05-27 004232.png

0 Kudos

679 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello bartoc,

Could you please take a picture about the error , also tell us which version of IDE do you used? 

 

BR

Alice

 

0 Kudos