Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: defragster

Page 1 of 10 1 2 3 4

Search: Search took 0.07 seconds; generated 37 minute(s) ago.

  1. Replies
    41
    Views
    692

    Not sure if this is relevant - had an edit to...

    Not sure if this is relevant - had an edit to startup.c to comment out the call to :: configure_external_ram();

    Without that done the NANDflash code sample died after : Begin Init

    This T_4.1...
  2. can a complete sketch to test and repro the issue...

    can a complete sketch to test and repro the issue be posted?
  3. I was going to mention GDB - but not sure it gets...

    I was going to mention GDB - but not sure it gets that far - worth a try ...

    Paul: Should any of this work? pinMode() and the globals are not usable in the _hooks() ???
    >> Wrote this to try to...
  4. Replies
    41
    Views
    692

    @mjs513 - Was suggesting more Dprint() just in...

    @mjs513 - Was suggesting more Dprint() just in case there is a surprise failure in the manipulation.
    Maybe prints for status or other without too much code clutter:


    #define DHprint( a ) {...
  5. Replies
    41
    Views
    692

    @mjs513 - updated from github. Looked through the...

    @mjs513 - updated from github. Looked through the code assuming low level stuff right - found some few questions ...

    Just browsing lines. The buffer[] to write is zeroed then values set 0x19,...
  6. THIS DOES REPRO on T_4.1

    Copied presented code into IDE - compiled default and it worked.

    Changed to DEBUG and the Teensy HANGS/goes away after upload.

    Indeed takes a BUTTON to get to bootloader and a reset then (...
  7. Replies
    41
    Views
    692

    :) Did first pass and looked and there were...

    :) Did first pass and looked and there were pulled solder hairs on all four pad far ends - using newer finer wire solder.

    Made a 30 gauge wire solder paste applicator and touched a tad on each and...
  8. Replies
    41
    Views
    692

    I found this result: Begin Init 0 18...

    I found this result:


    Begin Init
    0
    18
    Status of reg 0xb0:
    (HEX: ) 0x18, (Binary: )11000

    Found W25N01G Flash Chip
  9. Adding to that github Teensy WIKI...

    Adding to that github Teensy WIKI is a good thing. PJRC wiki been needed a long time - but small company priorities - making hardware and designing new and shipping eats up time - then things like...
  10. If the image to upload exceeds some size ( 1GB ?...

    If the image to upload exceeds some size ( 1GB ? ) it will cause a fail with no note as to why.
  11. Replies
    4
    Views
    134

    Starting with SPI access should let the data be...

    Starting with SPI access should let the data be read so it doesn't get munged in working toward QSPI? Not that the driver is there for that either - but probably more similar to others?
  12. Replies
    4
    Views
    108

    Digital divider math for setting the clock given...

    Digital divider math for setting the clock given the available base clock freq. A given clock and freq feed that hardware. It gets divided down to the 'suggested' with the best binary bits available...
  13. Replies
    4
    Views
    108

    Just reading the displayed first image on SCL...

    Just reading the displayed first image on SCL clock line - looks like it suggests f=375KHz, so freq is toward but not beyond 400KHz
  14. Replies
    797
    Views
    33,231

    Awesome - glad that worked! The old irons seem...

    Awesome - glad that worked! The old irons seem to have lost their cords - good they got replaced :)

    On startup the chip uses SPI to be recognized and then gets dropped into QSPI mode to run.
    ...
  15. Replies
    41
    Views
    692

    From prior post - and info this is what was...

    From prior post - and info this is what was ordered:

    Post #1 and copied over Paul post #4 matches part Number.

    digikey.com... winbond-electronics/W25N01GVZEIG-TR/W25N01GVZEIGCT-ND/7393545
  16. Replies
    41
    Views
    692

    @mjs513 - in github section for extRAM...

    @mjs513 - in github section for extRAM - made a folder there for extNAND_t41 so code is available and can be source controlled? ... rather than forum hacking.



    USPS says the NAND's ordered will...
  17. No that would be an added setting. Not sure if...

    No that would be an added setting. Not sure if that changes the speed when doing the non-repeating reads here - but may only affect the continuous type? Easy to test with a couple of loops with the...
  18. Wish there were one or more of your sensors set...

    Wish there were one or more of your sensors set up here so I could see. Never looked this close at it before - and only from the code end. Not sure of the effect on the reading with the fast...
  19. Indeed - need to account for the extra bits. 12...

    Indeed - need to account for the extra bits. 12 bit Conversion takes a tad longer so ideally the 10th bit less jumpy with right shift of 2 or divided by 4. Then treat the same as the 10 bit samples....
  20. Replies
    41
    Views
    692

    Awesome :)

    Awesome :)
  21. Pre-Processor is just text replacement as used. ...

    Pre-Processor is just text replacement as used. It can take 'param' letters for use - but that not done there as I just wanted to be able to put in code or if commented - take out that "someWork"...
  22. Welcome back to Teensy. Stupid Computers.

    Welcome back to Teensy. Stupid Computers.
  23. Replies
    11
    Views
    184

    c/c++ are cleverly designed to do as told - for...

    c/c++ are cleverly designed to do as told - for better or worse - c++ did incorporate some typical clever stuff that all the cool kids were doing

    proper use of 'extern' is needed to avoid...
  24. adc_pins[] array reference indexing like in the...

    adc_pins[] array reference indexing like in the for(i=0... ) code when unrolled added processor cycles - it seemed because 'i' was no longer an active variable stored in a register.

    ...
  25. Enjoy ... These are test code : #define...

    Enjoy ...

    These are test code : #define someWork and someWork_Global
    and any use or ref of waitCnt

    And this and any of the vars are just for measuring and limiting output to 1/sec:


    if...
  26. Just coded that in place - where someWork and...

    Just coded that in place - where someWork and someWork_Global are just placeholders for timing measure:


    #define someWork_Global { delayNanoseconds(3500);} // Delay waiting for first data to...
  27. That someWork delayMicroseconds() was to get some...

    That someWork delayMicroseconds() was to get some measure of the amount of time available to do "Work" without affecting the actual throughput of the reading. With that active watch the reads per...
  28. @laptophead - this probably isn't the best thread...

    @laptophead - this probably isn't the best thread for this - but that isn't normal behavior when the sketch is running properly - at least on Windows. If there is trouble in the code or interrupts...
  29. Indeed that code can be tweaked - as noted last...

    Indeed that code can be tweaked - as noted last post was avg(1) and running 133,386 reads of 10 pins per second.

    Changing to this:

    ///// ADC0 ////
    adc->adc0->setAveraging(2); ...
  30. The last code I have here was asking for 12 bit...

    The last code I have here was asking for 12 bit ADC reads - with 1 avg - not sure if that gives a more stable 10 bit value? It takes longer - but with the dual read improvement it offset the longer...
  31. Replies
    4
    Views
    518

    Sticky: Win 10 install over 1.53b3 on IDE 1.8.13 went well

    Win 10 install over 1.53b3 on IDE 1.8.13 went well
  32. For the send - how much and how fast? The same...

    For the send - how much and how fast? The same data to all slaves?
  33. It is building - Recognized as invalid it won't...

    It is building - Recognized as invalid it won't be used - especially without the header it can't be - but to avoid confusion removing that folder would be better since it can't be used.
  34. Have fun. The prior loop code is decent -...

    Have fun. The prior loop code is decent - unrolling minimally better as the core. Not sure it can go faster given two ADC's with both in use.

    Just make sure to do the error check - at least in...
  35. Yes, during the wait for one set of readings -...

    Yes, during the wait for one set of readings - which are a time fixed by the resolution and any averaging of the values - there is a block of time now available while the hardware is busy.

    Anyhow...
  36. The T_4.1 onboard SD socket is directly connected...

    The T_4.1 onboard SD socket is directly connected to specific pins not exposed elsewhere and will not conflict. They are connected to a 4 bit data SDIO bus independent of other SPI pins or hardware....
  37. instead of 2nd code post #61: for (i

    instead of 2nd code post #61:


    for (i<pins) {
    start read
    do something - if data from prior read
    read next data
    }
  38. This link into the header file on github shows a...

    This link into the header file on github shows a single param for setBreakPoint( func );

    If any SerMon has the COM port attached that is expected to be used to program - that will prevent upload...
  39. The start read and return in post #61 :...

    The start read and return in post #61 : adc->startSynchronizedSingleRead
    >> then do calc from prior read
    then get values
    ... repeat

    Would give time as done to ask for more averaging - and...
  40. In ::...

    In :: ...\hardware\teensy\avr\cores\teensy3\serial3.c

    look for >> #define SERIAL3_RX_BUFFER_SIZE 64 // number of incoming bytes to buffer

    On Teensy 3.2 best to use Serial1 or Serial2 as...
  41. Multiple sensors will give different readings by...

    Multiple sensors will give different readings by nature and location in the drum head - and more overhead to read them and reduce to a meaningful value.

    I just bumped the above fastest yet code to...
  42. code with some testing outside the post editor...

    code with some testing outside the post editor ... - there was a !Not missing in the while() - and the use of ADC func()'s perhaps ... below is actually faster than last posted by another 10K per...
  43. Replies
    10
    Views
    335

    Paul - that was "breadboard/veroboard" not ref to...

    Paul - that was "breadboard/veroboard" not ref to other less than Teensy BulletinBoard forums.

    F-73P : assembler works with Teensy toolchain - though you have lots of history with prior tools -...
  44. Replies
    10
    Views
    335

    Opps - after so much web clicking to check for...

    Opps - after so much web clicking to check for answer to #1 seems it was forgotten as I rushed off to make a note on the web updates thread.

    - Paul gave of course a better version of the intended...
  45. Replies
    773
    Views
    25,709

    Good thing the LA will work as it only 12 Mbs:...

    Good thing the LA will work as it only 12 Mbs: "Dual-mode Bluetooth transfer, compatible Full-speed USB 2.0 interface, USB 1.1"

    Hopefully Linux function isn't critical to your debug effort KurtE?...
  46. Subtle change for error check...

    <REPLACING ABOVE> Subtle change for error check still finds error but not every cycle - takes out some overhead - 3.2K more reads per second.

    ADC1: Wrong pin
    P#24: 13854508.00V <P#25:...
  47. THANKS >> @jonr: That's the answer - it is...

    THANKS >> @jonr: That's the answer - it is working where the prior scheme was hanging something - and the GDB didn't help me see where ...

    >> updated to post #55
  48. Working on another forum post with ADC I get one...

    Working on another forum post with ADC I get one cycle through loop() then it dies? Perfect chance for using GDB - EXCEPT::


    Reading symbols from...
  49. Updating prior p#28 sample to use that paired...

    Updating prior p#28 sample to use that paired 'startSingleRead' it completes ONCE and then quits ... ???
    adjustments haven't helped yet - including checking for ADC errors:

    ...
  50. Replies
    773
    Views
    25,709

    It is BLE - but as seen - it claims full utility....

    It is BLE - but as seen - it claims full utility. Did see notes and noted ... 'use their driver' ... figured that would make it not worth the trouble ...

    It was so pleasing to see it come up as...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4