Go Down

Topic: NilRTOS - A Fast Tiny Preemptive RTOS (Read 17 times) previous topic - next topic

fat16lib

#20
Jan 25, 2013, 11:13 pm Last Edit: Jan 25, 2013, 11:19 pm by fat16lib Reason: 1
How was this run?  Was any data recorded?
Quote

type any character to begin
type any character to end
Done
Unused Stack: 141 342

** overrun errors **


with:
Code:

// SD chip select pin.
const uint8_t sdChipSelect = 10; //SS;


The output is from the old example.  It should look like this from today's pito.zip file.
Quote

type any character to begin
type any character to end
Done
Maximum SD write latency: 3748 usec
Unused Stack: 57 407

pito

Yes, when ran the old one I got csv data (100-200kB).

I cannot get it working with the new version yet.. Still the same issue, with =10 or =SS.. It works with "continue;" only:

Code: [Select]
type any character to begin
type any character to end
Done
Maximum SD write latency: 0 usec
Unused Stack: 57 480

No idea what to do in order to get it working..

pito

With new one I get now this
Code: [Select]
type any character to begin
type any character to end
Done
Maximum SD write latency: 48548 usec
Unused Stack: 141 372


with:
   
Code: [Select]
// Read ADC data.
    p->value = 555; //analogRead(0);

Strange..

pito

#23
Jan 26, 2013, 12:11 am Last Edit: Jan 26, 2013, 12:25 am by pito Reason: 1
It seems this does the trick (the original example, 115k2) :

Code: [Select]
void setup() {

  Serial.begin(115200);
 
  analogReference(INTERNAL);

:smiley-roll-sweat:

Code: [Select]
type any character to begin
type any character to end
Done
Maximum SD write latency: 19736 usec
Unused Stack: 57 456


Code: [Select]
NA 252 0
1024 41 0
1024 47 0
1024 48 0
1024 46 0
1024 45 0
1024 36 0
1024 33 0

fat16lib

I need to think about this.  I don't touch the ADC stuff.

I must go out with my wife now.

Go Up