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

Search:

Type: Posts; User: microderm

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. For the record, on the Mac, the platform.txt file...

    For the record, on the Mac, the platform.txt file is the one that lives at: Arduino.app/Contents/Java/hardware/teensy/avr/platform.txt
  2. Replies
    34
    Views
    654

    The working T4 also had a mishap. I soldered a...

    The working T4 also had a mishap. I soldered a thicker wire to it, but managed to rip the pad off when I tried to bend the wire to place. It my second more careful attempt that won't actually boot....
  3. Replies
    34
    Views
    654

    Yes, soldered the underside carefully and...

    Yes, soldered the underside carefully and attached a pin extension to connect the wires, so that I could use it on a breadboard directly. The work looked good so I expected it to work.
  4. My tests involved using the following settings in...

    My tests involved using the following settings in defs.h:
    -DSERIAL1_RX_BUFFER_SIZE=345
    -DSERIAL1_TX_BUFFER_SIZE=123
    -DF_CPU=144000000
    The test code was simply:
    void setup() {
    ...
  5. Replies
    34
    Views
    654

    Success with a T4 on Mac, although just a simple...

    Success with a T4 on Mac, although just a simple test similar to yours.

    I'm having trouble with one T4 though. I can't get it into program mode. I'll have to examine my pin soldering tomorrow, in...
  6. Replies
    34
    Views
    654

    ok, I'm going to test on T4 next to further...

    ok, I'm going to test on T4 next to further verify the success of the technique. I'll want to enable an extra SPI slot first, so may take a moment or two extra time.
  7. Just to clarify, I tested it on Mac. This is for...

    Just to clarify, I tested it on Mac. This is for version 1.8.9 of the IDE. Not yet tested on T4. Just starting to solder pins and SPI2 for underside of T4 board.
  8. Replies
    34
    Views
    654

    Yes, probably wise. Maybe mention to FrankB that...

    Yes, probably wise. Maybe mention to FrankB that I tested it on Mac. Looked like he had no verification of operational success on Mac platform in the past.
  9. Replies
    34
    Views
    654

    Just tried your version of platform.txt. Works...

    Just tried your version of platform.txt. Works perfectly! The Teensy Ports Discovery no longer a problem. I changed only one thing, the version number at the top of the script. After all it's...
  10. Replies
    34
    Views
    654

    Ah, so I'd need a -UMY_DEFINE_VALUE statement if...

    Ah, so I'd need a -UMY_DEFINE_VALUE statement if MY_DEFINE_VALUE were defined like this in the core?:
    #define MY_DEFINE_VALUE 123
  11. Replies
    34
    Views
    654

    @defragster, are you adding the line: #define...

    @defragster, are you adding the line:
    #define catfood 1to your defs.h file? If so, that'll be the reason. It isn't really a header file. That's why FrankB wanted to change the file extension, as it...
  12. Replies
    34
    Views
    654

    This is working for me: 17520

    This is working for me: 17520
  13. Replies
    34
    Views
    654

    Yours was similar to mine. I didn't have the...

    Yours was similar to mine. I didn't have the following in:

    ## Teensy Ports Discovery (Arduino 1.8.9 with pathPrefs patch)
    discovery.teensy.pattern="{runtime.hardware.path}/../tools/teensy_ports"...
  14. Replies
    34
    Views
    654

    Yes, I'm on 1.8.9. I didn't understand the...

    Yes, I'm on 1.8.9. I didn't understand the comments about TYQT mentioned in the other thread.

    I'm just going through platform.txt to note the differences to create a 1.8.9 version, now.

    I...
  15. Replies
    34
    Views
    654

    With a little fiddling, I got it to override the...

    With a little fiddling, I got it to override the CPU speed. I'll investigate further before requesting help...
  16. Replies
    34
    Views
    654

    Thanks @defragster, I have looked at that thread...

    Thanks @defragster, I have looked at that thread and tested on my machine. Couldn't get anything to work. I'll reply to that thread for help getting it to work...
  17. Replies
    34
    Views
    654

    I misunderstood how the preprocessor worked. I...

    I misunderstood how the preprocessor worked. I have since managed to concatenate project path and folder name to make a valid token that can be used to conditionally include a header of fixed name...
  18. Replies
    34
    Views
    654

    It seems I misunderstand how the system works. I...

    It seems I misunderstand how the system works. I tried the following experiment on my iMac:
    - modified Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3/kinetis.h by adding the line:...
  19. Replies
    34
    Views
    654

    Thanks @KurtE. Sounds interesting I'll take a...

    Thanks @KurtE. Sounds interesting I'll take a look at this. If the platform.txt file read is a file that lives in your current project folder (and ignores all other copies that may or may not exist...
  20. Replies
    34
    Views
    654

    I can redefine SERIAL1_RX_BUFFER_SIZE, but the...

    I can redefine SERIAL1_RX_BUFFER_SIZE, but the original values have already been used to set the buffer size. It is question of race conditions - my ino code get used after the core code initialises...
  21. Replies
    19
    Views
    516

    I don't. At least not yet. I think the way to go...

    I don't. At least not yet. I think the way to go with inter processor communication is to use the CAN bus. That allows you to send small packets of data between chips at high speed with error...
  22. Replies
    34
    Views
    654

    Overriding Core #defines

    Is there a simple way to override a #define such as SERIAL1_RX_BUFFER_SIZE found in serial1.c, from a project level rather than within the core files? It just feels wrong to edit core files when I...
  23. Replies
    19
    Views
    516

    Sounds interesting. I think it all comes down to...

    Sounds interesting. I think it all comes down to the numbers you are getting and the numbers you need. If the problem is that writing to the display takes too long, then you might be able to...
  24. Replies
    16
    Views
    616

    Ok, I use one buffer. It never fills up as it is...

    Ok, I use one buffer. It never fills up as it is emptied long before that eventuality.

    I tested my theory of SPI conflict when reading the sensor data. I commented out the sensor read and filled...
  25. Replies
    16
    Views
    616

    (2) The accelerometer interrupt: I'm not...

    (2) The accelerometer interrupt:


    I'm not pushing the limits. I designed the system to have idle time, as sometimes it needs it.


    I call the SD code from the main loop, not in response to an...
  26. Replies
    16
    Views
    616

    Yes, I believe I have. Utilities is just for...

    Yes, I believe I have. Utilities is just for conversion functions etc.


    Yes, the use of String here is just for debug. When commented out, it crashes just the same.


    Yes, that's why it's time...
  27. Replies
    16
    Views
    616

    Yes, it's always sensible to question the simple...

    Yes, it's always sensible to question the simple things first before digging deep, but here my utility function does the appropriate checks so as not to overrun the buffer (I checked when writing...
  28. Replies
    16
    Views
    616

    I hope the code snippets I've posted succinctly...

    I hope the code snippets I've posted succinctly describe what I'm trying to do and how I'm going about it?

    From here, I would like to understand in what ways interrupts will cause problems. For...
  29. Replies
    16
    Views
    616

    An SD file is opened and remains open until...

    An SD file is opened and remains open until recording is stopped. All data is carefully parsed into char arrays of fixed size and inserted into a large char array. The char array is written to the SD...
  30. Replies
    16
    Views
    616

    The accelerometer uses an IntervalTimer to get...

    The accelerometer uses an IntervalTimer to get regular readings. It does not call any other functions, but I am not using the SPI.usingInterrupt(interrupt) code, as I don't know how to get the...
  31. Replies
    16
    Views
    616

    Yes, one of the interrupts calls a function in...

    Yes, one of the interrupts calls a function in the main .ino file.

    The GPS module attempts to allow Teensy to get accurate timing by finding the relationship between the system mills() and GPS UTC...
  32. Replies
    16
    Views
    616

    SD, SPI and Interrupts

    I'm using Teensy with various devices including an accelerometer (SPI1), an OLED (SPI0), GPS (USART) and the SD card for data logging. The accelerometer is read using an IntervalTimer interrupt to...
  33. Replies
    66
    Views
    3,014

    Yes, my dipping (in and out at wrong speed) code...

    Yes, my dipping (in and out at wrong speed) code (#55) is running well too. That code does not use the .end() command, so it appears not to need an explicit call to .end().

    Loop 350 and...
  34. Replies
    66
    Views
    3,014

    Paul: I get the same output on the unfixed...

    Paul: I get the same output on the unfixed system. The new code runs nicely without problems.

    I'll now test my more recent build to see whether .end() or just .begin() are sufficient etc.
  35. Replies
    66
    Views
    3,014

    New test build notes: - I'm using the board...

    New test build notes:

    - I'm using the board set up from the image of post #23, except I removed the buttons, so auto stopping the test cycle when gotcha found.
    - Briefly dips into data stream at...
  36. Replies
    66
    Views
    3,014

    Good idea. I used that concept when I wrote my...

    Good idea. I used that concept when I wrote my baud rate verification function:

    /*
    * Verifies whether the connection produces the expected data.
    * @return whether the connection produces the...
  37. Replies
    66
    Views
    3,014

    Yes, I've been using a flag to get round that...

    Yes, I've been using a flag to get round that problem:


    void setBaud(int rate) {
    curr_baud = rate;
    Serial.println("*** Setting " + String(curr_baud) + " baud ***");
    ...
  38. Replies
    66
    Views
    3,014

    I tried to simplify the code producing the...

    I tried to simplify the code producing the problem, but it is hard, as the fault is a little temperamental, so code from #23 is good to try.

    I experimented with using the code below as a test of...
  39. Replies
    66
    Views
    3,014

    Thanks for looking at this guys. I can't play...

    Thanks for looking at this guys. I can't play along right now, the board's in use. Hopefully later tomorrow.
  40. The name hand input suggests the use of a button...

    The name hand input suggests the use of a button press. If so, the action of pressing will cause signal bounce. If the purpose is to measure the time a user held the button, then the event will...
  41. Replies
    66
    Views
    3,014

    I'll try to have something a lot simpler for Paul...

    I'll try to have something a lot simpler for Paul to look at in a coupe of days. I made the system complex so that I could experiment.

    Using __LINE__ is smart. I'd forgotten that macro. Thanks for...
  42. Replies
    66
    Views
    3,014

    defragster: I had a play with the (UART0_S1 &...

    defragster: I had a play with the (UART0_S1 & UART_S1_FE) code as suggested. First, I put it in the Gotcha code and found as you did that it was flagged there. I then used it as a diagnostic tool:
    ...
  43. Replies
    66
    Views
    3,014

    I had a little play with the frame error code. I...

    I had a little play with the frame error code. I found that once the frame error had occurred, a simple call to Serial1.begin(9600) did not fix the problem. As long as you keep pumping in data, the...
  44. Replies
    66
    Views
    3,014

    defragster: your test results are in agreement...

    defragster: your test results are in agreement with my findings.

    I regularly use Teensy with Adafruit GPS running at 10 Hz updates, for hour long sessions while recording all data to SD. I never...
  45. Replies
    66
    Views
    3,014

    I have written a new bare-bones that breaks...

    I have written a new bare-bones that breaks without having to restart or re-upload to Teensy. Pin 24 controls EN of GPS unit. Pin 28 controls Gotcha LED.

    It attempts to re-create the start...
  46. Replies
    66
    Views
    3,014

    I think I'm narrowing in on what the problem is....

    I think I'm narrowing in on what the problem is. It isn't something many folks have experienced. There are reasons for that...

    This weekend I started experimenting with the use of the EN (enable)...
  47. Replies
    66
    Views
    3,014

    No, just plug in and play. Likewise, I should...

    No, just plug in and play.

    Likewise, I should also test my NeoBlox GPS too, just to help confirm that the issue is general, rather than specific to a particular piece of external hardware. Should...
  48. Replies
    66
    Views
    3,014

    Wow, this is getting serious! I've found it to...

    Wow, this is getting serious!

    I've found it to be a good GPS board especially when used with an external antenna. It has been giving me really good results. I bought a NeoBlox unit too, but...
  49. Replies
    66
    Views
    3,014

    Yes, I unplugged the wires, pressed button 3 (now...

    Yes, I unplugged the wires, pressed button 3 (now re-programmed to toggle the RX and TX pins) and plugged them into the alternative pins. Still no GPS data visible.

    It seems that when broken, it...
  50. Replies
    66
    Views
    3,014

    I tried changing the assigned pins using setRX()...

    I tried changing the assigned pins using setRX() and setTX():
    - This works beautifully when Serial is working normally (you can pin swap on-the-fly).
    - When broken, the newly assigned pins don't...
Results 1 to 50 of 55
Page 1 of 2 1 2