Search results

  1. S

    Multi-channel Fast Analogue Capture and Stream

    Yes Rezo, good point (I'm using this for a large RAM buffer at the moment) Might need to go to a full custom Teensy4.1 board to get access to the FlexIO for some really high performance ADC.
  2. S

    Multi-channel Fast Analogue Capture and Stream

    Sounds like you might need a QSPI or parallel data interface to the ADCs. I have a system sampling 4 channels at 128ksps and 16bit with a 50MHz SPI interface, and this bus would not be able to support 200ksps. If a QSPI port can be made available on the Teensy 4/4.1 this would be very helpful to...
  3. S

    Thoughts on allowing T4.1 lockable to run ehex but not permanently locking

    Thanks guys, fully locked it will be.
  4. S

    Thoughts on allowing T4.1 lockable to run ehex but not permanently locking

    hi defragster, just to confirm, the key is written to within memory (fuses?) in the main processor prior to locking, so is there any way without going to extreme lengths that the key could be extracted? I understand JTAG is still enabled until the final lock process is undertaken. Is there...
  5. S

    Thoughts on allowing T4.1 lockable to run ehex but not permanently locking

    Hi jmarsh, is that because the key is kept in the location that is locked off? If so this is of course a big oversight on my part.... :-(
  6. S

    Thoughts on allowing T4.1 lockable to run ehex but not permanently locking

    I have a product I want to sell commercially soon andafter some discussion here previously I will distribute the firmware as an ehex. All seems well and I have the product running an ehex just fine, but I realise that if I do not perform the final locking process it can still run a normal...
  7. S

    length of filename extensions for sdfat

    confirming I can read *.json files with this library no problem
  8. S

    length of filename extensions for sdfat

    I'm developing using Teensyduino on Platform IO for a T4.1 and using sdfat file system. I know that it supports long filenames but does it also support more than 3char filename extensions? Reason I would like this to be true is for json, yaml etc files for configuration etc
  9. S

    100 +/- inputs and outputs (analog?)

    Hi Gef Those expansion devices over I2C will not be much good at all for analog signals. They are really suitable for low speed digital IO. There are SPI versions of these devices available that can obviously increase the update bandwidth however this still would be poor. It looks like you are...
  10. S

    SPI frequency too low for real-time data acquisition

    Hi bigdlin, For a data point, my board has no issue running the SPI clock at 50MHz for the ADC I'm using with a Teensy 4.1.
  11. S

    SPI frequency too low for real-time data acquisition

    This seems very curious and not the norm: Typically the SPI bus is shared and additional CS lines are used to select the chip you want to talk to. Why are they doing it this way? bigDlin do you have them wired this way? Is it working? Also I meant to ask previously, have you tried running...
  12. S

    SPI frequency too low for real-time data acquisition

    That chip produces 16 bit results ie 16bit multiplexed ADC.
  13. S

    SPI frequency too low for real-time data acquisition

    Is the data actually 32bits? or is it a 24bit converter sending a 4byte result? Depending on the converter, some will allow the result (eg ADC) to be sent as 3 bytes (24bits) instead of the 32 saying you 25% throughput.
  14. S

    Need advice on PCB manufacturers

    I had been using PCBWay for everything up until recently when they dramatically increased their pricing on 4 layer boards. A 100mm x 100mm 4 layer board from PCB Way is about 4 to 5 times the price of the same design from JLCPCB which I found incredible. Quality from both has been great so...
  15. S

    Writing Data to Teensy 4.1 microSD

    Looking at your loop, it seems that you will keep opening and writing to your file indefinitely. Is that why you have append as an option/mode?
  16. S

    [no Teensy?] +/-5V power from USB

    Hi DrM My ADC input full range is only +-1.2V hence the +-4V is plenty of room. I am using these as my front end buffer amplifiers. They are working very well in my current application...
  17. S

    [no Teensy?] +/-5V power from USB

    Hi DrM Looking good. How much current and at what voltage ripple are you getting out of your design? I have now used a charge pump device to do something similar but with 5V input and +-4V outputs. I have a DAQ board which requires a bipolar supply for some front end op-amps...
  18. S

    Interfacing ADS7828 to Teensy 4.0 via I2C

    One thing to think over is that the Teensy 4.1 is not 5V tolerant so if at some time you have accidentally pulled up to 5V maybe you have damaged the I2C bus IO on the Teensy? Do you have an DSO or logic analyser to look at the signals?
  19. S

    Interfacing ADS7828 to Teensy 4.0 via I2C

    That looks correct. However one issue you need to be very careful of is ensuring that SDA and SCL are not pulled up to or being driven to 5V. Is your ADC running off 3.3 or 5V?
  20. S

    Interfacing ADS7828 to Teensy 4.0 via I2C

    In my working system I used the address 0x48, 0x49 etc
  21. S

    Thoughts on importance/need for encrypted firmware ie locked Teensy

    Hi Paul, I don't have any issue with the process you have created at all. My question for the forum is how important people feel it is to use this for a product that is going out to consumers. One thing that does weigh into this a little is the availability of the lockable boards vs the std...
  22. S

    Interfacing ADS7828 to Teensy 4.0 via I2C

    Hi Smuscat, Recommend you look at the pullup resistors as well (not sure if you have done so?) Are your connections made to the SDA0 and SCL0 pins? This is important as you have not defined pins other than default in your code. I also not that in your wait for data, you are triggering once a...
  23. S

    Thoughts on importance/need for encrypted firmware ie locked Teensy

    Hey Mark, Thanks for your considered response. Your product sounds very nice! I can see for products that have actuators or potential safety issues then preventing other versions of firmware from being loaded is a very good reason to enable the locked/encrypted mode. I am happy for users to...
  24. S

    Thoughts on importance/need for encrypted firmware ie locked Teensy

    I have a product I've developed for which I use the Teensy 4.1, it is a data acquisition and related product. I was initially planning to provide these with the locked version of the Teensy 4.1 so I could prevent people from copying the firmware onto other teensy boards but this seems a bit...
  25. S

    Interfacing ADS7828 to Teensy 4.0 via I2C

    Hi smuscat, I have done this exact thing recently and managed to have it working well now. I would check that you have appropriate pull up resistors on the I2C lines. I had 4k7 resistors and was running a clock freq of 400kHz and with the length of my cables and number of devices on the bus...
  26. S

    Teensy 4.1 Ethernet Kit w/POE Module

    I have used these in a few projects and use the output do supply a buck converter that supplies 5V to my board including the Teensy 4.1 https://www.digikey.com.au/en/products/detail/abracon-llc/ARJM11D7-114-AB-EW2/7675220 One could design a small board with a built in 5V buck converter and...
  27. S

    what looks like Buffer corruption of large buffer passed to function - Teensy 4.1 Platform IO

    Well damn, this turns out to be a simple (albeit very timewasting) typo....... There is no factstical pointer issue, just a screwup with the index calculation...
  28. S

    what looks like Buffer corruption of large buffer passed to function - Teensy 4.1 Platform IO

    Another data point, I am passing a huge 16Mbyte array I have defined as; EXTMEM volatile uint8_t bigbuffer[BIG_BUFFER_SIZE]; // 16Mbytes as single bytes To a function defined as: void megunoLinkChartHSLoggedData(Stream* port, loggerConfigType* configuration, experimentDetailsType*...
  29. S

    what looks like Buffer corruption of large buffer passed to function - Teensy 4.1 Platform IO

    Hi All, I have a curious corruption of a failry large ram buffer defined in my project running on a Teensy 4.1 with numerous libraries, high speed ISR driven by ADC interrupts etc. This one has got me stumped as it is reliably corrupting it seems after a particular index, but not all of the...
  30. S

    Very high code RAM usage

    Oh wow! I did not know that. Thanks for the heads up. I was going a bit mad for a while as the behaviour was very odd to say the least.
  31. S

    Very high code RAM usage

    So have had a rather unexpected issue with my code after implementing the TEENSY_OPT_SMALLEST_CODE flag. I was having all sorts of issues with floats not being handled as expected using printf. Unexpected problems like incorrect chars and the float not actually appearing in the string/stream...
  32. S

    Very high code RAM usage

    Thanks guys. I have tried just changing the optimisation flag to TEENSY_OPT_SMALLEST_CODE (Iam using Platform IO) and this has reduced the RAM1 usage for code by a bit over 100kB :-) I'll go through and change as many functions to use the FLASHMEM directive and see if that can help also...
  33. S

    Very high code RAM usage

    Hi All I have a project using a Teensy 4.1 with many peripherals, quite large line count and numberous large buffers used for logging multiple peripheral data streams. It seems I have something going on in my code that is using a very large amount of ram ie being allocated for runtime usage...
  34. S

    Reading current clock freq on Teensy 4.1

    I am able to set the frequency successfully using the extern set_arm_clock() but is there a similar lib function for get_arm_clock() ?
  35. S

    Library function to extract unique ID from PSRAM chips

    Hi Joe My bad, I was looking at a datasheet for a similar product which did have a unique ID. However, thanks for the reference to the function.
  36. S

    Library function to extract unique ID from PSRAM chips

    Hi All, I'm keen to see if any library calls exist to extract the unique IDs from the PSRAM chips. This would be in a low level lib function I am not aware of and frankly do not know where to look.... This would be another unique ID that can be used by the Teensy 4.1 for identification. Where...
  37. S

    issues with USB mass storage function within TeensyThreads

    Joe that sounds very interesting, will be sure to keep my eye out for that.
  38. S

    issues with USB mass storage function within TeensyThreads

    Ahh ok, are you able to advise what you are using?
  39. S

    issues with USB mass storage function within TeensyThreads

    Ok, that is what I am doing then. Will go look at the documentation, but do you know if that main thread has a default ID? ie so one can go and change the time slice etc?
  40. S

    issues with USB mass storage function within TeensyThreads

    Hi Joe Can you explain more about your setup() and loop() being within a single main thread? does it look something like this? mainthread (){ setup(); while (1){ loop() threads.yield(); } } My code structure is currently still having setup() and loop() defined per the...
  41. S

    issues with USB mass storage function within TeensyThreads

    This project is for a Teensy4.1, code dev environment is PlatformIO in VScode. Iam using the USB mass storage library to read and write to a USB memery stick, primarily to save data acquired from a DAQ capture. It works fine for code architecture just with a single loop, but if I instatiate...
  42. S

    Pros and Cons of SDfat and littleFS for SD card file system

    Hi All, I am working on a project that includes a webserver and I plan to implement both webpage serving and file serving primarily for remote datafile download. Thus far I have been using the SDfat library for file functions, but some webserver examples I'm looking at use littleFS. Are there...
  43. S

    Teensy 4.1 and Ethernet, a workshop experiment

    Hi Shawn, interested in coming along but I'm in NSW Australia so very offset timezone. What time of your day do you typically do this?
  44. S

    TeensyThreads: About Time Slice, Efficiency, Thread Priority and Cycle Time

    Many thanks Christof !! exactly what I am looking for at the moment. BadMisterFrosty I am currently doing something very similar to what you are planning. I am using an ISR triggered by the ADC data ready line, which puts the data into a circular buffer. In a state machine thread I am chasing...
  45. S

    Teensy 4.x H/W Quadrature Encoder Library

    The Encoder example available from the Arduino list works just fine, is this using your library? If so, there is obviously something in my project screwing things up.... will need to dig around and look for anything playing with pin 1...
  46. S

    Teensy 4.x H/W Quadrature Encoder Library

    Hi mjs513 I'm having a curious issue with this library when definint phase A as pin1 and phase B as pin 3 on a Teensy 4.1. The signal and phase offset looks good on the scope (there is overshoot and a little ringing) but it only randomly counts +- a count occasionaly. If I define pin 2 to...
  47. S

    Faster way to read in digital inputs into a byte value

    Hi Chris O I am still getting my head around (very slowly) the nomenclature and the different labelling levels. In the schematic you linked to, what is the 'port' AD_B1 ? I need to map my signals in the odd way I've listed as they are wired that way ie in order of the PINS broken o
  48. S

    Faster way to read in digital inputs into a byte value

    This is roughly the code I'll try out this evening #define IMXRT_GPIO6_DIRECT (*(volatile uint32_t *)0x42000000) // read in raw values from single port GPIO6 register uint32_t rawdata = IMXRT_GPIO6_DIRECT; // 0B11111111111111110011000000000000 // Pin # bit position value...
Back
Top