Show Posts
Pages: [1] 2 3
1  Products / Arduino Due / Can't compile/build recent GIT 1.5.x IDE on: January 07, 2013, 08:25:21 am
Hi, don't know what started hapenning but after a few last git pull updates I can´t build anymore the IDE.

I allways get this error:

.........
test:
    [mkdir] Created dir: D:\Git Projects\Arduino\app\test-bin
    [javac] Compiling 2 source files to D:\Git Projects\Arduino\app\test-bin
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] 1 warning
     [copy] Copying 5 files to D:\Git Projects\Arduino\app\test-bin
     [copy] Copying D:\Git Projects\Arduino\app\test\Keypad_mac.zip to D:\Git Projects\Arduino\app\t
est-bin\Keypad_mac.zip
     [copy] Copying D:\Git Projects\Arduino\app\test\Keypad_with_hidden_files.zip to D:\Git Projects
\Arduino\app\test-bin\Keypad_with_hidden_files.zip
     [copy] Copying D:\Git Projects\Arduino\app\test\Test.zip to D:\Git Projects\Arduino\app\test-bi
n\Test.zip
     [copy] Copying D:\Git Projects\Arduino\app\test\Test2.zip to D:\Git Projects\Arduino\app\test-b
in\Test2.zip
     [copy] Copying D:\Git Projects\Arduino\app\test\processing\app\tools\test_partial_boards.txt to
 D:\Git Projects\Arduino\app\test-bin\processing\app\tools\test_partial_boards.txt
    [junit] Running processing.app.tools.MapWithSubkeysTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.188 sec
    [junit] Running processing.app.tools.ZipDeflaterTest
    [junit] Tests run: 4, Failures: 0, Errors: 4, Time elapsed: 0.203 sec

BUILD FAILED
D:\Git Projects\Arduino\build\build.xml:35: The following error occurred while executing this line:
D:\Git Projects\Arduino\build\build.xml:68: The following error occurred while executing this line:
D:\Git Projects\Arduino\app\build.xml:79: Test processing.app.tools.ZipDeflaterTest failed

Anyone facing this problem? Solutions?

Thanks.
2  Products / Arduino Due / Re: TFT library compatible with Due? on: December 10, 2012, 05:33:10 pm
Me and alvesjc already ported UTFT from Henning Karlsen last month and send it to him as his the original author so he can do what feels like with that DUE version of UTFT library.

Anyway the basic info regarding the ports to change is on this post again from alvesjc:
http://arduino.cc/forum/index.php/topic,130714.msg1013319.html#msg1013319
3  Products / Arduino Due / Re: SPI or SD library problem? on: November 06, 2012, 02:03:43 pm
Yes I'm using the USB port near the power plug.

It's easy if someone can to do the test I said, like that I can confirm that is not only my problem and is really a general fault do the libraries or else.
4  Products / Arduino Due / Re: SPI or SD library problem? on: November 06, 2012, 10:53:22 am
Hi, I think I did not explain it correctly, the problem is not the SS pin for using the SD or any SPI comunication.

What I want to say is if apart your normal working code for SPI/SD by some extra need on your sketch you use those pins (53 or 52) on a pinMode comand those problems show up.

Just do the test or anyone else to understand better, open the "listfiles" example from SD library, them see it working, upload it again and still working ok? Them put on void setup this pinMode(53, OUTPUT); and upload again, stiill working right? Now reupload again the same code and you will get a "No device found on COMx" erro and couldn't upload any further sketch without power out the DUO first, thats it.
5  Products / Arduino Due / Re: Problems if Sketchbook folder changed from default on preferences on: November 06, 2012, 10:06:37 am
Ok sorry It wasn't my intension, only since nobody replyed or mension this somewhere else and also on this last IDE version the problem still exists I didn't know if was take in consideration or could be only a problem here on my setup, but like this I know that will be solved sometime.

Thanks.
6  Products / Arduino Due / Re: portOutputRegister and portInputRegister are useless on: November 06, 2012, 09:59:46 am
Ok sorry I just realised now that alvesjc allready reported the same.

Yes you should check it, but I think for keeping compatibility with most of the code out there since for normal Arduinos the macros get someting that can be used straight without the need of further comands and that should be good with users thinking that doesn't work as there is nothing documented anyware related this specifc cases.
7  Products / Arduino Due / SPI or SD library problem? on: November 06, 2012, 09:50:41 am
Could figureout if the problem is related with the SPI or the SD library, but using the example sketch "listfiles" if a pinMode(53, OUTPUT); comand is on the code next time I try to upload any sketch I get this error:

No device found on COMx

I have to take the power from DUO out and in again so the upload works ok and all came back to normal.

If I have pinMode(52, OUTPUT); insted, them anything related to SD fails, so this example sketch gives me:

"Initializing SD card...initialization failed!"

Didn't try with further more pins to see what hapends.
8  Products / Arduino Due / portOutputRegister and portInputRegister are useless on: November 06, 2012, 09:29:43 am
This macros are useless or they don't do nothing as pinMode(pinX,OUTPUT); comand does not turn on the PIO_OWER register need for operations on PIO_ODSR and PIO_PDSR.

I think some sort of code like this inside the pinMode void on OUTPUT case will solve that:

Code:
g_APinDescription[ulPin].pPort -> PIO_OWER = g_APinDescription[ulPin].ulPin;
9  Products / Arduino Due / Re: IDE 1.5.1 on: November 06, 2012, 09:23:26 am
Still not fixed the load examples problem from certain libraries I reported before if on preferences the default path to sketchbook is changed !!!

This is really anoying as I could load directly all my sketchs from the sketchbook menu insted of having to do "Open", browsing to whatever directory to load them.
10  Products / Arduino Due / Re: Arduino.h and wiring_digital.c problem. on: November 05, 2012, 09:42:43 am
Thanks again cmaglie, your fix on the Arduino.h puts everything working on the right spot.  smiley
I hope it will sent to GIT so the last version comes out fixed with that.

Now all code works like a charme, I wonder now if we still can not optimize it a bit more since we are still using on the ports writing routines the REG_PIOD_SODR register, do you think this can also be changed for ODSR?

The problem with ODSR is when you write something there what was before gets cleared, so I think I need to do the proper logic just to change what´s new and maintain what was previous, no?
11  Products / Arduino Due / Re: Arduino.h and wiring_digital.c problem. on: November 04, 2012, 08:12:26 pm
stimmer , but using that inside de sbi macro works and the led on pin 13 blinks on/off alternating, only does not work if I pass the P_LED.
12  Products / Arduino Due / Re: Arduino.h and wiring_digital.c problem. on: November 04, 2012, 07:46:31 pm
Thanks cmaglie, but we (me and alvesjc) allready had that included on the changed pinMode version.

The problem is like I said, using directly like this works:

Code:
#define sbi(reg, bitmask) portOutputRegister(digitalPinToPort(13)) = 0xffffffff & bitmask

B_LED = digitalPinToBitMask(13);
sbi(P_LED,B_LED);

passing the reg var not !

Here is the not working code code:

Code:
#define sbi(reg, bitmask) reg = 0xffffffff & bitmask

P_LED = portOutputRegister(digitalPinToPort(13));
B_LED = digitalPinToBitMask(13);
sbi(P_LED,B_LED);

13  Products / Arduino Due / Re: Arduino.h and wiring_digital.c problem. on: November 04, 2012, 06:00:02 pm
Yes, I also had see that on Arduino.h, but the problem now is on the portOutputRegister and portInputRegister, since I can't use what it returns if this is correct.


I have this definition as a test sketch:

#define sbi(reg, bitmask) reg = 0xffffffff & bitmask

and the folowing vars:

volatile RwReg P_LED;
uint32_t B_LED;
P_LED = portOutputRegister(digitalPinToPort(13));
B_LED = digitalPinToBitMask(13);

using this test sketch to light the led on the pin 13 is not working:


  sbi(P_LED,B_LED);
  delay(1000);
  cbi(P_LED,B_LED);
  delay(1000);

Only if I go directly like this it works:

  portOutputRegister(digitalPinToPort(13)) = 0xffffffff & digitalPinToBitMask(13);
  delay(1000);
  portOutputRegister(digitalPinToPort(13)) = 0x0 & digitalPinToBitMask(13);
  delay(1000);
 
 
  Looks like thar reg on sbi or cbi is not passed correct, any help, coments on this?
 
  What sort of var should I declared so it works?
14  Products / Arduino Due / Problems if Sketchbook folder changed from default on preferences on: November 03, 2012, 02:05:16 pm
As I reported before if this is changed the auto include examples from libraries fails and not working ok.

I just compiled the lasted version on GIT HUB and the problem still exists.

I'm runnig Windows XP Pro by the away.
15  Products / Arduino Due / Re: Port manipulation PINx commands with Arduino Due ? on: October 31, 2012, 07:58:50 am
Read here there some more info (all the way to the end): http://arduino.cc/forum/index.php/topic,129407.0.html

I'm also trying to do port manipulation.
Pages: [1] 2 3