News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

CB and Arduino 1.6.x

Started by AZ, June 17, 2016, 08:44:09 PM

Previous topic - Next topic

oBFusCATed

Quote from: stahta01 on June 29, 2016, 12:25:36 PM
In doing my solution I had to edit an header search path in the Wizard created project
from "$(ARDUINO_DIR)/hardware/arduino/avr/libraries/HID/src"
to "$(ARDUINO_DIR)/hardware/arduino/avr/libraries/HID"

What version of Arduino do you have?

p.s. the new readme has info about the global variable.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

AZ

>ln -s ~/devel/open_source_code/version_control/arduino_ide-git/build/linux/work ~/.codeblocks/arduino
you created a link to the arduino's IDE as opposite to the wizard?

// I'm just trying to make sense of the differences and what i maybe doing wrong. Looks like Teodor got the wizard to work and it is me struggling with fat fingers here.
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

oBFusCATed

Quote from: AZ on June 30, 2016, 05:46:17 AM
>ln -s ~/devel/open_source_code/version_control/arduino_ide-git/build/linux/work ~/.codeblocks/arduino
you created a link to the arduino's IDE as opposite to the wizard?
This command is no longer needed. Just point the arduino global variable to point to your arduino installation's root. (Settings -> Global variable -> arduino -> set base).
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

AZ

Quote from: oBFusCATed on June 30, 2016, 09:35:42 AM
Quote from: AZ on June 30, 2016, 05:46:17 AM
>ln -s ~/devel/open_source_code/version_control/arduino_ide-git/build/linux/work ~/.codeblocks/arduino
you created a link to the arduino's IDE as opposite to the wizard?
This command is no longer needed. Just point the arduino global variable to point to your arduino installation's root. (Settings -> Global variable -> arduino -> set base).

right, that is what i was doing. Any idea why i'm getting that dilalog created few dozen times?
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

AZ

aha! i think i might be onto something.

I'm not getting "global dialog" nightmare anymore - what did i do?

1. Update to the latest codeblocks.x86_64 16.01.svn.10869-1.fc22
2. instead of setting global variable to the "the path to the root of the Arduino project." (https://github.com/obfuscated/cb_arduino_template) , i set it to the arduino install directory. In my case it is  ~/bin/arduino-1.6.9/.

I was able to build a few elementary projects. I'll do more testing today just to be sure.

The "XRC" error is still present when create a new arduino project.
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

stahta01

Quote from: oBFusCATed on June 29, 2016, 09:26:32 PM
Quote from: stahta01 on June 29, 2016, 12:25:36 PM
In doing my solution I had to edit an header search path in the Wizard created project
from "$(ARDUINO_DIR)/hardware/arduino/avr/libraries/HID/src"
to "$(ARDUINO_DIR)/hardware/arduino/avr/libraries/HID"

What version of Arduino do you have?

p.s. the new readme has info about the global variable.


self built 1.6.8 from git repo branch ide-1.5.x.

Edit: https://github.com/arduino/Arduino.git

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

Quote from: AZ on June 30, 2016, 07:09:51 PM
The "XRC" error is still present when create a new arduino project.
It seems like a bug in wx2.8, but as far as I see this is just a message box and the wizard works just fine.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

AZ

Quote from: oBFusCATed on July 04, 2016, 01:54:34 AM
Quote from: AZ on June 30, 2016, 07:09:51 PM
The "XRC" error is still present when create a new arduino project.
It seems like a bug in wx2.8, but as far as I see this is just a message box and the wizard works just fine.
Yes.  Great job.
I created a pull request to update the doc. Hope you find it useful.
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

DanRR

Hi,
I've install cb_arduino_template, created a test project and compiled it with no errors. When I attempted uploading it (I pressed 'Run', is that the way to do it?) I got a terminal window with the following error:
/home/.../cb_arduino_wizard_test/bin/uno/cb_arduino_wizard_test.elf: 1: /home/.../cb_arduino_wizard_test/bin/uno/cb_arduino_wizard_test.elf: Syntax error: "(" unexpected

System info:
Xubuntu 16.04
CB 16.01
Arduino 1.6.9

Thanks

oBFusCATed

No, uploading happens as post-build step.
Do you have the UPLOAD_PORT variable set?
And keep in mind that uploading is not very reliable on atmega32u4 based arduinos.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

DanRR

Thanks oBFusCATed,
I've tried setting UPLOAD_PORT and rebuild with no change, I can't see any upload attempt.
I'm using Uno board.

stahta01

Quote from: DanRR on July 15, 2016, 02:45:53 AM
Thanks oBFusCATed,
I've tried setting UPLOAD_PORT and rebuild with no change, I can't see any upload attempt.
I'm using Uno board.

Do you have "avrdude" installed?
If not, try installing it.

Tim S.


C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

Quote from: DanRR on July 15, 2016, 02:45:53 AM
Thanks oBFusCATed,
I've tried setting UPLOAD_PORT and rebuild with no change, I can't see any upload attempt.
I'm using Uno board.
You have to rebuild and make sure the arduino is connected to the usb.
Can you please post a full rebuild log?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]