I faced some wierd buid issue while porting circuitpython to LPC55S28.
NXP offers https://github.com/NXPmicro/mcux-sdk. There are two files in the same directory where handlers of exception vectors are bundled:
devices/LPC5528/mcuxpresso/startup_lpc5528.c
devices/LPC5528/mcuxpresso/startup_lpc5528.cpp
The issue is that despite of explicitly adding startup_lpc5528.c to SRC_C variable, make is guessing which file to built due to built-in rules.
As result make tool to compiles C++ version startup_lpc5528.cpp instead of startup_lpc5528.c and fails on linkage stage due to missing C declaration;
I don't have better idea rather than creating own copy of startup code.
Any hints and recommendations in this respect are welcome!
Builtin makefile rules in circuitpython
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- EmergReanimator
- Posts: 8
- Joined: Tue May 18, 2021 8:26 am
- tannewt
- Posts: 3304
- Joined: Thu Oct 06, 2016 8:48 pm
Re: Builtin makefile rules in circuitpython
Ya, the makefile rules are weird. The simplest thing is to copy the file elsewhere and target it instead.
The discord is a good place to ask questions like this. We have a #circuitpython-dev channel on https://adafru.it/discord
The discord is a good place to ask questions like this. We have a #circuitpython-dev channel on https://adafru.it/discord
Please be positive and constructive with your questions and comments.