Show Posts
Pages: 1 [2] 3 4 ... 11
16  Products / Arduino Due / Re: wakeup from wait mode through Serial on: November 21, 2013, 04:51:37 am
is there anyone who can post some pseudocode? i looked at the datasheet but the code i wrote didnt work
 
17  Products / Arduino Due / Re: serial.available() from polling to interrupt on: November 20, 2013, 01:16:16 pm
'and How do i call a serial event in the loop()?
18  Products / Arduino Due / Re: serial.available() from polling to interrupt on: November 20, 2013, 12:58:04 pm
what DO you think  about connecting RX serial pin to a KNOWN pin, let's say pin P. and than i should attach an interrupt on pin P?
19  Products / Arduino Due / Re: Arduino due in low power mode on: November 20, 2013, 10:38:03 am
could you post the code please?
i'm working on a similar application, (arduino due on wait mode until some serial data arrive)
this is the code i wrote, it enters the wait mode but does not exit. did you find any solution?
Code:
boolean flag;
void setup()
{
  interrupts();
Serial.begin(9600);
pmc_enable_waitmode();
PMC -> PMC_FSMR |= PMC_FSMR_FSTT4; //Set FSTT4 = 1
}

void loop()
{
  if(flag)
  {
    interrupts();
    Serial.println("cci tua");
  } 
}

ISR(URXD_vect)
{
  flag = 1;
  noInterrupts();
}
20  Products / Arduino Due / Re: wakeup from wait mode through Serial on: November 20, 2013, 10:28:34 am
sorry but bump
21  Products / Arduino Due / Re: wakeup from wait mode through Serial on: November 19, 2013, 12:39:30 pm
which datasheet are referring to?
the 10.1 section on the SAM3X datasheet i have, is about system controllers and peripheral mapping
22  Products / Arduino Due / wakeup from wait mode through Serial on: November 19, 2013, 11:53:22 am
Hi everyone,
i'm working on a mobile application in which i need to keep low power as much as i can.
i'd like to wake the processor up only when some data arrive on the Serial.
this is code i write but (of course) it's not working. i'd really appreciate any kind of advice or help.
Code:
boolean flag;
void setup()
{
  interrupts();
Serial.begin(9600);
pmc_enable_waitmode();
PMC -> PMC_FSMR |= PMC_FSMR_FSTT4; //Set FSTT4 = 1
}

void loop()
{
  if(flag)
  {
    interrupts();
    Serial.println("cci tua");
  } 
}

ISR(URXD_vect)
{
  flag = 1;
  noInterrupts();
}
23  Products / Arduino Due / Re: serial.available() from polling to interrupt on: November 12, 2013, 09:39:45 am
could you please give me a code example?
do tou think something like this could work http://stackoverflow.com/questions/10201590/arduino-serial-interrupts
24  Products / Arduino Due / Re: serial.available() from polling to interrupt on: November 11, 2013, 05:12:30 am
serialEvent is checked after every loop, i need to know if i can trigger an interrupt when data arrive on serial port
25  Products / Arduino Due / serial.available() from polling to interrupt on: November 07, 2013, 10:40:02 am
Hi everyone,
i'm working on a chat between my smartphone and arduino due. i'm using a bluetooth that communicates with arduino through the serial port.

in the loop function i've always used if(Serial.available) polling permanently the processor. how can i move from this polling procedure to an interrupt based function?
26  Products / Arduino Due / code is uploaded but not verified on: October 09, 2013, 08:21:09 am
hi everyone,
i printed my own DUE-based board and after solving some problems i finally managed to upload code.
the problem is that bossac upload code but it does NOT verify it. anyone can tell me why?
27  Products / Arduino Due / Re: Due appears as COM6 port but gives error "No device found on COM6" on upload on: September 10, 2013, 04:14:38 am
i experienced this thing yet. but not even this "trick" works
28  Products / Arduino Due / Re: SAM-BA operation failed on: September 09, 2013, 02:40:07 am
yes, bossac is recognising the SAM. i receive this log:

Code:
C:\Users\HP\Desktop\arduino-1.5.2\hardware\tools>bossac.exe  --port=COM15 -U false -i
Device       : ATSAM3X8
Chip ID      : 285e0a60
Version      : v1.1 Dec 15 2010 19:25:04
Address      : 524288
Pages        : 2048
Page Size    : 256 bytes
Total Size   : 512KB
Planes       : 2
Lock Regions : 32
Locked       : none
Security     : false
Boot Flash   : false

i tried to upload the bin file through bossac, but it always returns me SAM-BA operation failed when it tries to verify the flash:

Code:
C:\Users\HP\Desktop\arduino-1.5.2\hardware\tools>bossac.exe  -p COM15 -U false -
e -w -v -b dbGlove_blue.cpp.bin -R
Erase flash
Write 28512 bytes to flash
[==============================] 100% (112/112 pages)
Verify 28512 bytes of flash
[                              ] 0% (0/112 pages)
SAM-BA operation failed
29  Products / Arduino Due / Re: SAM-BA operation failed on: September 06, 2013, 12:37:05 pm
i already fixed the "usb device not recognised" changing the r23 value from 10k to 1k and the atmega16u2 oscillator from 12MHz to 16 MHz
(Both are reference schematics error). my problem (#1) is that the ide returns me "No device found on COM" even if the device menager recognize the arduino as arduinoDUE programming port
30  Products / Arduino Due / Re: SAM-BA operation failed on: September 06, 2013, 12:07:22 pm
this drive should fix  #1 problem? but how do i install it if my board is alredy seen as "arduino due programming port"
Pages: 1 [2] 3 4 ... 11