-
Older Activity
-
Today, 03:20 PM
Works on the T4.1 I just tried... Pin 3 and 9 are fine.
5 replies | 4 view(s)
-
Yesterday, 01:44 AM
I believe the that library supports changing which SPI on the begin method...
That is if you do something like:
XPT2046_Touchscreen ts(CS_PIN, TIRQ_PIN); // Param 2 - Touch IRQ Pin - interrupt enabled polling
......
2 replies | 87 view(s)
-
01-19-2021, 08:49 PM
Yes, the T4 and T4.1 actually have a few SPI buses.
They are shown on the released card as well as my excel document and photo made from it:
SPI1 has a few alternate pins for some of the features (on T4.1)...
4 replies | 86 view(s)
-
01-19-2021, 06:23 PM
Sounds like you are making great progress!
92 replies | 12078 view(s)
-
01-19-2021, 02:50 PM
May depend on which library you use.
But I think your commented code is wrong above: TFT_MOSI should be TFT_MISO
Note: Most of the libraries will do something like SPI.begin() and while doing this will configure...
2 replies | 66 view(s)
-
01-18-2021, 07:47 PM
The interesting thing is I tried the simple version that crashed after 3 plus seconds to Flash to go instead to SDIO. Again 512 bytes at a time.
CMD: 100c(SEND_OBJECT_INFO)l: 20 T:299 : 1 ffffffff...
628 replies | 57325 view(s)
-
01-18-2021, 07:35 PM
XBAR - for me it was reading the manual a few times.. (sometimes more than a few)... Note: So far when playing with DMA, I have mainly needed to have some understanding of XBAR for GPIO and for ADC... Note: ADC is a...
22 replies | 1259 view(s)
-
01-18-2021, 04:05 PM
Totally understand.... Pretty frustrating.
This morning I decided to waste some time and see if going at this completely wrong. So tried a KISS version of the code...
bool MTPD::SendObject() {
bool...
628 replies | 57325 view(s)
-
01-18-2021, 02:33 PM
In many cases like this, it is often easiest to look at code that ships with the Teensyduino release, at least to get ideas, even if you may be the type who who wants to write everything from scratch.
In this case...
4 replies | 105 view(s)
-
01-18-2021, 01:29 PM
Nice write up - Puts a lot of the details into one place which is great.
Note: another gotcha you may run into with DMA is with caching.
That is with the example above you are using the dmabuffer
DMAChannel...
22 replies | 1259 view(s)
-
01-17-2021, 02:05 PM
Are you using the library: https://github.com/robopeak/rplidar_arduino
It looks like your code is pretty close to their example: simple_connect?
If I am looking at their documents correctly:...
2 replies | 257 view(s)
-
01-17-2021, 01:53 PM
Morning - Right now playing in the branch: MEM_send_object_large
628 replies | 57325 view(s)
-
01-17-2021, 01:20 PM
@Paul - sounds great
@mjs513 - Did you have enough memory PSRAM available to be able to allocated that large of a file? Right now I try to allocate the whole thing with extmem_alloc. So if that is not available it...
628 replies | 57325 view(s)
-
01-17-2021, 12:37 AM
I know ... talking to myself ;)
Just pushed up a WIP version of the MTP send object code, that in addition of trying to allocate a full size buffer for the file. Once the whole file has been received over USB, I...
628 replies | 57325 view(s)
-
01-16-2021, 09:26 PM
Note: the Teensy boards will not show up as a USB Serial device, unless you program them to do so.
What I typically do with a new teensy, is to load up a simple sketch like the example blink,
Set the Device as to...
3 replies | 119 view(s)
-
01-16-2021, 09:20 PM
Hopefully someone one will be able to help you here. I personally have not tried any of the RA8875/76 custom font stuff, nor any of their ROM chips.
What we have done when we were playing with supporting drivers...
334 replies | 15111 view(s)
-
01-16-2021, 02:36 PM
@mjs513 Sounds like you have been busy!
What about Teensy 2? ;) (Just kidding)
810 replies | 19968 view(s)
-
01-16-2021, 02:05 PM
Yes it would be great if there was some tutorial or web page, that discuss DMA for the different Teensy boards. There have been several threads talking about DMA with GPIO on T4.x, that you can get a lot of information...
8 replies | 1016 view(s)
-
01-15-2021, 05:25 PM
Another quick update:
I have been playing around with my USBHost MTP code and communicating with Kindle Fire. Note: The connection with Kindle Fire (Android) is a bit touchy. Sometimes works other times get into...
628 replies | 57325 view(s)
-
01-15-2021, 01:36 AM
Sorry I really don't know the RA887x that well to know how all of the different fonts work or not. I believe this is NOT a system font so we are simply drawing the bits.
Again I also mostly just putter and don't do...
283 replies | 15844 view(s)
-
01-14-2021, 06:02 PM
The same ways as you would with a Teensy 4.
There are many ways to do so.
The Dynamixel is a half duplex serial protocol, which specification says the TTL signal is 5v, although I have never had issues with...
26 replies | 2915 view(s)
-
01-14-2021, 12:44 PM
As for best way to uininstall a version.
First I reboot to make sure I don't have any Arduino things opened up and running.
I will often just delete the arduino (actually I rename it to some other directory...
184 replies | 10204 view(s)
-
01-13-2021, 11:50 PM
Internet has been up and down... Can not complain too much as it looks like lots are still without power.
I pushed up a WIP branch MEM_send_object_large which is based off of the branch I still have an open PR back...
628 replies | 57325 view(s)
-
01-13-2021, 05:46 PM
Afternoon - Internet back, we are lucky, looking at the power outage map, it looks like a lot of areas are without power.
Wind was really strong overnight. It moved and flipped a trailer we pull behind ATV, plus...
628 replies | 57325 view(s)
-
01-13-2021, 04:18 PM
Sorry internet down, so by cell...
I noticed this morning that a case statement missing
About line 844 mtp.cpp above sendobjectinfo should be case: ox100c:
Not sure if that is what you are seeing
628 replies | 57325 view(s)
-
01-12-2021, 11:38 PM
Hi again @mjs513 - I have not tried with 3.5, maybe should. I did build for 3.6.
Note: I am building for MTP with using SEREMU... If you are building for MTP + Serial, did you update the usb_descriptor.h (I think...
628 replies | 57325 view(s)
-
01-12-2021, 11:14 PM
As I think I posted above, it looks like the T3.x does real simple for USB packet it gets it does a write.
I have not tried that way yet.
I did try some code that, if the file is greater than my bigbuffer it...
628 replies | 57325 view(s)
-
01-12-2021, 07:36 PM
@defragster - Sorry not really sure what is going on, just that when I saw stuff about configuring some pins for I2S where are not I2S pins, It made me suspicious that maybe some of the other settings like DMA and the...
810 replies | 19968 view(s)
-
01-12-2021, 06:15 PM
Quick update to above, and with the current caching code I still get timeouts, depending more on the state of the File writes I think...
Example I did a copy of 341024 bytes long and debug output:
MTPD::SendObject:...
628 replies | 57325 view(s)
-
01-12-2021, 02:20 PM
Me too,
So I am starting to play again of moving over the code I have in other branch.
But also wondering about the differences in the two current versions of the sendObject code:
The one for T3.x is really...
628 replies | 57325 view(s)
-
01-12-2021, 02:04 PM
Good morning,
I will have to play later. Looking at larger files receive... More on other thread.
I assume you have already tested that creating a directory works in a simple case.
What Teensy is this supposed...
810 replies | 19968 view(s)
-
01-12-2021, 12:54 AM
Sorry,
I am not much of an I2C person so I normally just use Wire library when I need I2C support. It would be probably easy to get most of the Master mode support in, but would take someone who plays a lot with...
4 replies | 112 view(s)
-
01-12-2021, 12:46 AM
@WMXZ/Paul and others - As for MTP and things like Modify date, I put questions and suggestions on the beta 5 thread.
Things like does LittleFS keep any dates anywhere?
FS/FILE - We don't have any APIs defined....
628 replies | 57325 view(s)
-
01-11-2021, 09:47 PM
I could be wrong, but the last time I looked this library was not yet supported on a Teensy 4.x
The last post from him (@nox771) on that was back near the end of 2019 and his last changes to the library were back in...
4 replies | 112 view(s)
-
01-11-2021, 06:54 PM
Fixed: for some reason we had the checking for bounds in the Pixel function commented out.
We called this with a negative value that in the case of frame buffer just overwrote random memory.
Fix is simple: look the...
9 replies | 174 view(s)
-
01-11-2021, 06:04 PM
It appears to be blowing up in the 5 degree drawing...
Probably on the 2nd draw line where maybe we are not detecting the negative number in some spot:
Here is my current instrumented version of your code:
...
9 replies | 174 view(s)
-
01-11-2021, 05:39 PM
@Paul @WMXZ @mjs513 @defragster... and all:
As has been mentioned up in the MTP thread, it would probably be a good thing, that when possible MTP would be able to tell the Host the dates and times for the files it...
184 replies | 10204 view(s)
-
01-11-2021, 02:40 PM
@WMXZ - Sounds good.
Note: I do think it is good that one can get some of the simple events working for those who might care about it, and in other cases as you mentioned you can use the sledge hammer event of reset,...
628 replies | 57325 view(s)
-
01-11-2021, 02:17 PM
Thanks,
I am not sure if I have that IMU here or not. I have few but not sure about that one. Also that new code is depending on two more external files... So again harder to setup and test it.
So still hard to...
9 replies | 174 view(s)
-
01-11-2021, 01:55 PM
@defragster - Who knows? But with two different ones. I think there may be some interesting timing issue, that I am running into. Will look into it again at some point, but right now looks like we have enough...
800 replies | 54044 view(s)
-
01-11-2021, 01:48 PM
Good Morning,
Not sure about why different files work differently. I suspect it is more on what the writing to the chips are doing. If with yours and Defragsters changes it finds enough already formatted blocks to...
628 replies | 57325 view(s)
-
01-11-2021, 01:48 AM
Sorry, I have not had much of a chance to look through this code.
I did try to compile it and it fails as it is missing probably some header files or the like that define: setupIMU() and UpdateIMU();
I am...
9 replies | 174 view(s)
-
01-10-2021, 11:07 PM
@wmxz and @mjs513 and ...
I pushed up the next set of changes to the branch with the Pull Request.
I am properly generating the object added events for the new files created in your 'a' command.
So if you hit...
628 replies | 57325 view(s)
-
01-10-2021, 08:05 PM
Sounds like it or pieces of it would be a good addition to the core!
17 replies | 265 view(s)
-
01-10-2021, 07:41 PM
There are probably many different ways to answer this question.
can a T4.1 run 5 servos at 125hz. The answer is probably yes, not sure to what end or what means. That is I have my doubts that most hobby servos will...
7 replies | 214 view(s)
-
01-10-2021, 06:18 PM
Note: I implemented some of the simple query functions I mentioned above... And pushed up.
628 replies | 57325 view(s)
-
01-10-2021, 05:36 PM
Yes - So far I have not had any luck with larger files on slower devices. It feels like if a transfer takes over a certain amount of time that the MTP connection will get killed...
I have the stuff in my other branch...
628 replies | 57325 view(s)
-
01-10-2021, 05:00 PM
Morning!
Yes that is the current stuff I am working off of. My LittleFS is still off of LFSinterity/PlusNAND
628 replies | 57325 view(s)
-
01-10-2021, 03:26 PM
@WMXZ and others wanting to play - I started playing some more yesterday and I am in the process of starting again from your current (master) code and adding in some of the changes I have done.
I put in a PR to core:...
628 replies | 57325 view(s)
-
01-10-2021, 02:24 PM
If your code is still what you pointed to: That has:
#define RA8875_CS 9 // not connected
#define RA8875_RESET 25
#define RA8875_INT 7 // not connected
#define...
4 replies | 145 view(s)
-
01-10-2021, 01:36 PM
One option we have is to develop a WIFI driver for some standard USB dongle that plugs into either T3.6 or T4.x. My guess is it would be a lot of work, but would be nice.
We do have some bluetooth support currently...
10 replies | 273 view(s)
-
01-09-2021, 07:56 PM
There are times I have wondered how much it would work in cases like this, if we did something like:
#define SPI_MODE_SLOWCS 0x80
So maybe one could do something like: SPI.beginTransaction(SPISettings(3000000,...
21 replies | 389 view(s)
-
01-09-2021, 03:03 PM
Sorry I missed it was the CPU speed.
I assume that you saw there is a Pull Request, waiting to be pulled in by @mjs513...
https://github.com/bolderflight/MPU9250/pull/64
It is typically not that digitalWrite is...
21 replies | 389 view(s)
-
01-09-2021, 02:40 PM
Again this only works if that hub1 is actually connected as a USBHub. AND that it actually has a name that they put into their USB Descriptor, which is optional. Some devices do not.
From your above:
USBHost...
3 replies | 101 view(s)
-
01-09-2021, 02:35 PM
Again not sure where you are getting 150Mhz?
From the header file of that library:
const uint32_t SPI_LS_CLOCK = 1000000; // 1 MHz
const uint32_t SPI_HS_CLOCK = 15000000; // 15 MHz
And from the source...
21 replies | 389 view(s)
-
01-09-2021, 02:14 PM
Sounds good.
Maybe time to do PR back into LittleFS?
810 replies | 19968 view(s)
-
01-09-2021, 01:26 PM
If you wish to get the product name of a device that has connected to one of your USB Host objects, there are methods on them to do so:
Most of the examples with the library have code like:
for (uint8_t i = 0; i <...
3 replies | 101 view(s)
-
01-09-2021, 12:58 PM
good Work... I will be picking my Sparkfun one up probably in the next hour.
30 replies | 805 view(s)
-
01-08-2021, 07:29 PM
Hard to say.
For example how is it wired up? Is it configured to run on 3,3v or 5v. What software?
I just hooked up one that was the lower resolution. RA8875_480x272
And it is working
I ran the rotation...
4 replies | 145 view(s)
-
01-08-2021, 03:03 PM
@mjs513 - Me too. I have probably done something stupid. I may try again. First I may try some mix and match of components.
That is with the Dual one (currently on PSRAM) plug into breadboard and see if it works...
23 replies | 543 view(s)
-
01-07-2021, 10:46 PM
Thanks guys,
I tried the old stuff, but it fails, but then I did not disable the new stuff first. Might try it again with the start in startup.c bypassed.
Again maybe just punt as you have most memory working...
23 replies | 543 view(s)
-
01-07-2021, 03:55 PM
Me too! Again maybe there are some wires that are not making good contact or??? But with my older extended board have been running the test again:
My current hacked up version:
extern "C" {
extern uint8_t...
23 replies | 543 view(s)
-
01-07-2021, 02:54 PM
@Paul - sounds great, yes the pages are coming along nicely! Also would be great to have an updated T4.1 card. Let us know if there is any thing we can do to help.
Side note with T4.1 and PSRAM pages:
Would be...
134 replies | 5674 view(s)
-
01-07-2021, 02:23 PM
Quick update: to the above.
I believe that large section of QSPI operations in the above logic analyzer output is due to the code in startup.c which is zeroing out memory:
That is:...
23 replies | 543 view(s)
-
01-06-2021, 10:52 PM
Hi again, looking at my one with breadboard...
Ran slightly different sketch:
extern "C" {
extern uint8_t external_psram_size;
}
void setup() {
while (!Serial && millis() < 5000);
Serial.begin(115200);
...
23 replies | 543 view(s)
-
01-06-2021, 05:59 PM
Thanks, I was able to get the short to not be a short... And the HiLowTest showed I had the right signals... This time I checked both Hi and Low...
Still does not work right on this board nor my earlier one where I...
23 replies | 543 view(s)
-
01-06-2021, 04:25 PM
Maybe try SPI1.begin();
Just before the call to the rf69.init?
Otherwise maybe need to add debug code to the init function and find out where it is failing.
10 replies | 150 view(s)
-
01-06-2021, 02:26 PM
I use Diptrace for the stuff I do. Again this is only for my own usage and like you typically never need many of any one board as I usually find something I want to change anyway...
As mentioned PCBWay works well. ...
12 replies | 275 view(s)
-
01-06-2021, 01:16 PM
It has been awhile since I did it, but there is some support for this at least in the Teensyduino installed version.
I played with this a few years ago. Note I am am using RF95, but assume would be the same... ...
10 replies | 150 view(s)
-
01-06-2021, 01:53 AM
I think I have it fixed but not sure it helped. Will play more tomorrow. I am not sure how likely it will be to get it to work. But fingers crossed.
23 replies | 543 view(s)
-
01-05-2021, 10:39 PM
Again often times you have to also look at the sub-system that you wish to use the FlexIO with and potentially setup some register settings.
Example at one point I added support to the T4.x to give the option to use...
7 replies | 172 view(s)
-
01-05-2021, 08:21 PM
Quick update. Looks like I have a short between pins 49 and 51 on the castellated board...
Not sure why it did not show up earlier. At least the HiloTest is showing it when going to 3.3v, will check next if GND...
23 replies | 543 view(s)
-
01-05-2021, 06:26 PM
Whenever I am playing with XBAR,
I look into the Teensy 4 sources at pwm.c
And I either copy the function or extern the function:
That in my sketch or .cpp files something like:
extern "C" {
extern void...
7 replies | 172 view(s)
-
01-05-2021, 05:54 PM
Sorry, I am not sure exactly what you are looking to do with XBAR? And avoid the hardware?
Note: analogWrite on pin 8 is actually another timer: FLEXPWM1_PWMA03
Again sorry, I am not understanding.
7 replies | 172 view(s)
-
01-05-2021, 03:43 PM
Thanks guys,
I have also run it on a few other boards where the memory chip(s) are directly soldered to bottom of T4.1 and no problems.
If you have diptrace, the design files for the boards I put up earlier on...
23 replies | 543 view(s)
-
01-05-2021, 03:11 PM
Frank,
As I mentioned, it was unclear how much information is useful to a majority of users. And yes I do look at things like linker scripts.
But I mentioned the starting addresses and this diagram says there...
134 replies | 5674 view(s)
-
01-05-2021, 02:19 PM
Question to self and others (especially those who have done more with FlexSPI...
I tried and resoldered some of the pin connections yesterday, plus I also retried with my original castellated extended T4.1 board with...
23 replies | 543 view(s)
-
01-05-2021, 02:06 PM
Glad you are feeling better! Just did a sync, may play soon...
810 replies | 19968 view(s)
-
01-04-2021, 10:38 PM
What are the backlights hooked up to? SPI speed defaults to: somewhere in the order of 30mhz...
The defaults can be changed by passing in a desired SPI Speed on the begin method... Actually optionally 2 parameters...
11 replies | 235 view(s)
-
01-04-2021, 09:55 PM
Understood, but I know with some sensors that work on a slower platform and not on faster ones, it can often be a timing issue, like you do a write operation to the device to ask it for something and then ask for the...
30 replies | 805 view(s)
-
01-04-2021, 08:09 PM
You are welcome. Also at times like this, it might help if you posted a picture of your current setup. Maybe someone will see something like:
you are off by one pin... Been there, or maybe MISO amd MOSI pins reversed...
12 replies | 306 view(s)
-
01-04-2021, 07:37 PM
Maybe a quick thing to try:
Try adding a delay at startup:
Something like:
void setup() {
Serial.begin(115200);
while (!Serial);
Serial.println("Adafruit BMP390");
delay(1000); // wait a second to see if...
30 replies | 805 view(s)
-
01-04-2021, 07:29 PM
Thanks,
I have since added two caps. A decouple .1uf and another 10uf to make sure there is power available...
I have also been playing some with the Quad Analyzer plug in as I was seeing some Quad commands...
23 replies | 543 view(s)
-
01-04-2021, 06:44 PM
Looks nice. I am sort of waiting for the T4.x version. Not sure when/if that might happen, but I did order a Micromod board and an ESP32 board for it that shipped today.
58 replies | 1762 view(s)
-
01-04-2021, 06:42 PM
That is the one.
Or again I could point you to the OV camera input code, which again would require changing the DMA inputs and outputs...
Also either case you will also need to figure out what is clocking the DMA...
5 replies | 113 view(s)
-
01-04-2021, 06:35 PM
Sorry it is sometimes hard to help without seeing much of anything. Like the code or the wiring or... Which Teensy? Which version of Arduino...
Yes you mentioned graphictest and you mentioned ILI9341, but for...
12 replies | 306 view(s)
-
01-04-2021, 06:09 PM
Paul, I am not sure, how many people would be interested or not...
But when I see the memory information, like in the new T4.1 page: https://www.pjrc.com/store/teensy41.html#memory
I at times need to know the...
134 replies | 5674 view(s)
-
01-04-2021, 05:42 PM
Oops, I meant the OCtoWS2811 library...
5 replies | 113 view(s)
-
01-04-2021, 05:40 PM
I have not done it, but Paul did it with the WS2812Serial library. You can look at that for an example.
I have played with it as Input pins to read in from camera, but not the other way.
With input you don't...
5 replies | 113 view(s)
-
01-04-2021, 02:37 PM
It should not matter at all in this case if they are on the same buss or not..
As the CS pins should only effect one display at a time. It would be a different answer if you were doing something like...
11 replies | 235 view(s)