single compilation problem | Arduino Compatible Compiler for LabVIEW Discussions | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 4 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
single compilation problem
April 8, 2015
5:04 pm
Avatar
LuI
Member
Forum Posts: 4
Member Since:
April 2, 2015
sp_UserOfflineSmall Offline

Hi all,

I've got a Mega2560 with a Multi-function shield, which contains amoung others a buzzer that is controlled by Pin D3 via a small transistor. I tested your example 'Tone - Play Song.vi' successfully. But due to the inversion by the transistor, the buzzer continues beeping when the code is finished (which is quite disturbing!).

I added 'Tone Stop.vi' and ACCL.lvlib: Digital Write.vi with True after the for loop in order to stop that beep. Saved the code, than compiled & downloaded it. Got an error, which I sent. Afterwards I just compiled the very same code OK and again compiled & downloaded it OK.

Now the code runs as expected.

But why did I got that error, which went away by 'just' compiling? Can I trust the code?

April 8, 2015
5:25 pm
Avatar
Steffan
Admin
Forum Posts: 304
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Thanks for sending your error report.  The error you received seems to be within the Arduino toolchain.

c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/lib/avr6/crtm2560.o:(.init9+0x0): undefined reference to `main'

 We have never seen this before but there are several Arduino posts related to something like this.  What version of the Arduino IDE are you using?  Yes, I would expect you can "trust" the code.  This was a simple linking issue.

Forum Timezone: UTC 0

Most Users Ever Online: 33

Currently Online:
5 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

John: 18

RTSLVU: 15

Dan6077: 11

Member Stats:

Guest Posters: 0

Members: 80

Moderators: 0

Admins: 3

Forum Stats:

Groups: 1

Forums: 2

Topics: 58

Posts: 289

Newest Members: Geraldkix, ThomasSoogs, Angelvor, AngelaMuh, Nsneilohone

Administrators: geadmin: 5, filipealtoe: 35, Steffan: 89