Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build with Launchpad MSP430FR2746 #26

Open
kmkaczor opened this issue Mar 10, 2022 · 2 comments
Open

Unable to build with Launchpad MSP430FR2746 #26

kmkaczor opened this issue Mar 10, 2022 · 2 comments

Comments

@kmkaczor
Copy link

kmkaczor commented Mar 10, 2022

Getting the errors:

/home/korey/.platformio/packages/toolchain-timsp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:1802:2: error: #error "Failed to match a default include file"

/home/korey/.platformio/packages/framework-energiamsp430/cores/msp430/Energia.h:366:26: fatal error: pins_energia.h: No such file or directory

This suggests that the msp430.h include file does not have the proper definition passed for this board. I do notice that this board is called:

lpmsp430g2476 in the files and documentation

However, it is an FRAM chip and the proper model name is with FR and not G. I.e. it should be lpmsp430fr2476 to match the other boards like this. There does not seem to be a MSP430G2476, I suppose someone mistook this chip for being a member of the G2 series.

Adding a proper JSON file for the board (in the boards directory, ~/.platformio/platforms/timsp430*/boards), replacing the MSP430G2476 with MSP430FR2476, allows compilation, and this applies both to stable and the current git development version. HOWEVER, a new error pops up:

/home/korey/.platformio/packages/toolchain-timsp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/lib/mcpu-430x/mmpy-16/libc.a(puts.o): In function `puts':
/home/robertinant/mspgcc/msp430-libc-20120224/src/./stdlib/puts.c:38: undefined reference to `putchar'
/home/robertinant/mspgcc/msp430-libc-20120224/src/./stdlib/puts.c:42: undefined reference to `putchar'

The robertinant part is, obviously, not me and suggests a precompiled static library with debug symbols. I am not heavily experienced in C programming -- perhaps the static library was not linked properly to stdio.h?

@kmkaczor
Copy link
Author

It appears that the putchar errors is an Energia issue and not platformio. However, the incorrect model problem still remains.

@fpedd
Copy link
Contributor

fpedd commented Apr 13, 2022

I second the spelling mistake of the MSP430FR2476 platformio/platformio-docs#239

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants