Sorry, I probably have not used Atmel Studio in probably a decade, so I have no idea and I am guessing that is true of lots of others that are up here.
I believe at one-point VisualMicro could be installed on Atmal...
I would probably format the flash FS...
For example look at the LittleFS example LittleFS_Usage
You will see it starts off calling: myfs.quickFormat();
You can also do low level format as well.
Some of...
Yes you can use those other pins for GPIO stuff.
From my Excel document on T4.x I have the page:
Which shows those pins. are in these areas. For SD, at one point I made a simple plug in circuit board that broke...
Sorry not sure what is going on. But maybe some additional information might help.
What exactly are you running? Are you running the Teensy example USBtoSerial? any changes at all to the code?
Which IDE are you...
I again should mention that it is unclear if these changes will ever be pulled in. Most of the stuff was done about a year and a half ago. But keeping fingers crossed.
The 4 files I changed are shown in the one...
Each teensy type has a different number of EEPROM locations, as you can see on the page:
https://www.pjrc.com/teensy/td_libs_EEPROM.html
Teensy 4.0 1080 bytes
If for example you write to location 1010, The system...
Here is a sort of quick and dirty sketch to print out mapping...
uint32_t *port_regsp = {(uint32_t*)&IMXRT_GPIO6, (uint32_t*)&IMXRT_GPIO7, (uint32_t*)&IMXRT_GPIO8, (uint32_t*)&IMXRT_GPIO9};
uint8_t pin_numbers;
...
Yes you can read in multiple pins at the same time. Typically after startup all of the pins will be on GPIO ports 6-9
So you could read in all of the pins on port 6 using either:
uint32_t port6_val = GPIO6_PSR;
or...
Me too.
In most cases like this, I would recommend that you probably also post up on the Arduino forum as well. https://forum.arduino.cc/c/software/ide-2-x/93/l/latest
You might include additional information as...
Good that you finished your mowing deck. I took the easy way out a couple of years ago and purchased a replacement deck. Still want to take the other one back in and have the whell welded back on.
It is a little fun...
Quick update:
As I mentioned in the update to the last post, moving the events and critical sections to the struct associated with each rawhid connection, appears to work. I have it setup that each one
is trying to...
Assuming it is the same issue, it is probably best to continue this on your own thread:
https://forum.pjrc.com/threads/72829-No-USB-Audio-when-selecting-Serial-Midi-Audio-(OK-when-only-Audio-selected)
Maybe there...
I am probably mostly done playing here... It has been fun and trying some different things.
Like today I wondered if I could also receive the SEREMU rawhid stream as well from the Teensy (in my current case a T4.1). ...
It may depend on your usage. That is they by convention have this pin defined as VIN/3...
For example if you look at their ATP (All the Pin) board's schematic
You will see where they connect up this pin to a...
good question. I am just sort of playing. Will be curious to see how well they perform. As I mentioned, just experimenting...
Was trying to see if I could actually build for my old MAC, but the makefile and the...
Just a quick update.
I have been playing some more with this, doing file transfers and the like.
The PC sketch I have now has several different commands, all somewhat primitive, but includes things lik:
cd, pwd,...
Slow is a relative term :D When I first started programming, it was with punched cards, which could take hours to get your run back :lol:
Now that I am retired, I don't mind getting up and getting a cup of coffee. ...
I see you posted over there, Hopefully he will be able to spot what is going on and give you a proper fix.
Is there a reason you are running as administrator? Not sure if that is the issue.
In the past, like...
It is not working too bad. hacked in a few more things, like to rescan for rawhid device if it was not there ... command to tell the teensy to reset, quick and dirty command input parsing code now handles " around...
I believe there is. However, I personally do not use PlatormIO, but assume it would work with the same settings.
While I know there are many who do not wish to do their development using the Arduino IDE, I would...
I honestly don't know what the right answer is here. When I have used the event reponder in the past, with things like DMA SPI transfers, I wanted the code to run then and there, so I had it run on the interrupt and...
I just pushed up a Play in Progress to my rawhid project.
Where I have updated my PC host code, that I build using Visual Studio 2022 to take to the RAWHID. The code is setup to know if we are using 64 or 512 byte...
Sorry, been sort of goofing off with this stuff. Playing around with Visual Studio c++ builds and have a app run on pc that sends files back and forth. Boy am I rusty with this, like what is the best set of APIS on...
@FX78 - I would suggest that you also post on the Arduino forum: https://forum.arduino.cc/c/software/ide-2-x/93
Forbidden, Sounds like the system is not allowing you to write some files to some location on your disk....
Sorry, I don't know if there is best/most elegant way. I have seen and done it a few different ways, like:
In the ISR, disable the ISR, then in your processing code, do your stuff and then re-enable it. BUT: in...
I run into this if I use the sledghammer approach to delete the data in the roaming user Arduin... (Would have to look up the path again, in the first message of my thread for released ide/cli 2...)
What I do is...
You have options...
To simply use the current libraries, you should switch to 4 wire and use the cs/dc/clk/SDO
If it can actually read data back, I did not see anything obvious in that pdf on the command set, but...
Sorry I am sort of confused. Which is not all that unusual ;)
But I think you are asking about which Serial Mode, is applicable? I believe 4 wire Serial is what this library does:
That is it uses SCL and...
Sounds good, I pushed up some changes, hopefully caught the ones you mentioned.
But in addition added support for rawhid512.
Updated the two sketches, plus readme.txt
And also as I mentioned in previous post, I...
Thanks for testing. As @mjs513 mentioned, in some other cases we did not call the MTP stuff during some critical things. Probably will remove it from the upload/download code, but still interested on why? I am...
Thanks @mjs513, as I mentioned just got that one to limp along... Will need to debug why they are not syncing fully back up to expecting command...
Should also put in more checking of stuff. But as they say I...
I started playing again with maybe file transfers and the like as I know that it stresses out the system.
I have resolved some of the issues, and found that the T3.6 and T4.1 act differently as being plugged into...
As I mentioned I probably have some bugs in the code, I have found some.
Right now I am using T3.6 plugged into Micromod as to force it to use full speed instead of High speed... With High speed they won't even...
Over the last week, I have been playing some more with the RAWHID stuff. While I am waiting for progress and the like on some other projects.
Was wondering about seeing how well it would work to transfer files...
You might want to look at some other examples, like the current USB_MTPDISK_SERIAL
Which is reasonably similar, other than obviously Mouse is not the same as MTP...
Things like Endpoint 1 is reserved for some...
As mentioned you could use the #pragma packed... stuff or alternatively use the __attribute__ stuff like
typedef struct __attribute__((packed, aligned(4))) {
...
Note: this could also be aligned(1) or skip the...
There are several ways to do this... But reading in 1.5mb of data you probably need to do something with it.. That is it won't all fit into memory.
But I often do something like:
bytes buffer;
int cb_avail;
int...
What sketch is running on the Teensy?
Did the data properly arrive?
That is did you receive 1500000 bytes?
Personally I never had good luck using pyserial. So not sure if the issue is there or not.
Or could...
It also may depend on what processor you are doing this on? Some may have built in EEPROM support. Others like Teensy 4.x may emulate it.
The 4.x emulation tries to spread your writes across the different sectors...
Looks like the Sparkfun version of it that Paul's is forked from, has been updated with Paul's changes and a few more since then.
https://github.com/sparkfun/SparkFun_ADXL345_Arduino_Library
As for your code,...
What about the resistance from pin 57 to GND?
Note: i.e. are you using Pin 13 on your breakout board. For example, on my breakout board:
I have Pin 13 going to several locations. Both for basic breakout as...
What @defragster was mentioning, is that the 15 second restore, should reprogram the IMXRT chip back to the original ship state, which includes blinking the USER (pine 13) LED.
Again if that is not working, it is maybe...
Sorry, I am not much of a MAC person. But it might help if you posted an example sketch that reproduces the issue.
Then potentially someone could try it out and/or have ideas on things for you to try.
Things...
I have not used the touch capabilities of the T3.2 so I am probably not much help.
But have seen other threads recently on some of this, that might help. Like:...
It has to do with how NEOPixels work, you might want to take a look through some of the documentation, like:
https://learn.adafruit.com/adafruit-neopixel-uberguide/the-magic-of-neopixels...
Been there and just did that... And luckily did not fry it...
I don't have that display, but I do have:
https://www.amazon.com/gp/product/B00O2KDQBE
And forgot to ask if you did the thing that usually gets me....
In majority of sketches yes the Serial.baud() does not matter. As it does nothing to the USB transfer stuff.
However in a small set of sketches, like the example Teensy->USB Serial -> USBtoSerial
or the case that I...
Understandable if you have something that works...
But still curious on what 1106 display (the problem child) you actually have. Do you have a link to one of them?
Kurt
TyCommander apppears to work. I just ran the simple sketch:
void setup() {
while(!Serial);
}
void loop() {
delay(1000);
Serial.println(Serial.baud(), DEC);
}
And it was printing 115200, I then went to...
Not sure if you control it in the pluggable monitor stuff? Or if the Arduino side?
As I mentioned, I switched to the Arduino serial monitor, which has the Baud drop down list, and the sketch saw it when I changed the...
Note: The USBHost_t36.h header file warning the line number does not line up with what I see in the code...
For RawHID - It has been awhile since I played with Teensy to Teensy. I believe that the 512 byte package...
Not sure what you are asking about Raw HID?
If you are asking does this sketch handle fowarding of Raw HID to and from the PC to what is plugged into USBHost? Nope. Different protocol.
Likewise, this one does...
I should have mentioned, that the reason I did it as part of a Pull Request is that I added the ability to do things like:
USBSerial_BigBuffer userial(myusb, 1, 0x10c4, 0xea60, USBSerialBase::CP210X, 0);
And yes I...
Maybe I should put this on different thread, but did create a newer USB Serial example sketch plus some other changes, which I put up in a PR...
Some might want to play with it before and/or if integration.
From...
Not 100% sure if the if was needed or not. It hopefully is checked as to not crash if you make the calls with no device attached.
Note: the small sketch I posted, started off more as a joke, on how small could it...
Sorry I have not played with the Dynamixel Pros... And awhile since I tried the Dynamixel2Arduino library.
If I were playing with this, I might try instrumenting the code with some more information and checking for...
Note: I don't use processing so not sure what their capabilities are. Sort of hard to read the above as the code is not in code tags (# button in toolbar)
There are a couple of major differences of the USB Serial of...
I have hit this before (back in beta time frame) and another user on Arduino forum likewise and that person also mentioned about clearing out the temp directory...
So it is the actual compiler that gave this error...
What I would do is to open directory window on %temp%
I might start off by deleting the sub-directory arduino
Then start up the Arduino IDE and try to build...
FYI - if you look at the earler message, it is from about 7 years ago. Not sure if the messages from CNOMAX should be condiered spam or not. Shows currently they have 3 posts, I thought earlier it was closer to 6, so...
Yes T4.x plugged in would require big buffer. The regular one assumes 64 byte packets, the big buffer can handle the 512...
The extra 1 parameter is the minimum size packets it will accept. Was put in as maybe you...
If someone wishes to try out different usb host serial sketches, here is one I have used to try out both the Host Serial or Serial Emulation.
It is setup to use the Serial with bigbuffer as I was testing it with...
Sounds like fun. You might also try it sometime on the Micromod, as on FlexIO2 you have the FlexIO pins (0-12 and 16-17)
And on FlexIO2 you have DMA.
**FlexIO 2**
6, 7, 8, 9, 10, 11, 12, ...
My guess is that the device might use some communications chip like FTDI, or PL2303 or...
If it were me trying this out, some of the steps that I would probably try include:
a) Plug it into the USBHost on the...
I have confirmed on W11 on my machine that the sketch that I had that did not work (d:\github\...) worked when I saved it to my Arduino folder.
But it still would not work when I createad a junction link to the file...
Sorry, I am probably can not help very much on that part as I don't use this RTOS. So I don't know the best way to debug these asserts and crashes.
I have not spent much time on any of the RTOS or threading...
Those errors, are because he changed the ADC class awhile ago to remove some of the members...
So like: adc.setResolution(12); // set the ADC resolution to 12 bits
Needs...
Sorry I am guessing what you are asking for:
Are you asking, how to set the priority for doing something like: attachInterrupt(34, func, mode)....
And set the interrupt priority?
On T4.x, which the code starts...
My gut tells me, this is related to your usage of FreeRTOS. I could be wrong. I did verify that with current Teensyduino I could compile at least one or two ADC examples.
What version of FreeRTOS are you using? ...
@PerT found the issue, the clang stuff will fail if the sketch is on a different drive than where the temporary directory is.
More details on the Arduino thread:...
As I mentioned above I have a sketch that does not work... So I followed the instructions on the Arduino thread I linked to, to generate zip file with Log files.
Hopefully they will find something interesting.
I believe you have posted this on Arduino forum: https://forum.arduino.cc/t/data-item-properties-in-ide-2-1/1118282
I am running a nightly build, but I don't think anything significant has changed from 2.1.0
It...
Sorry hard to know what you have in there now.
In cases like this, I would put in some Serial.print(... like statements before each part like:
Serial.println(directoryPath);
...
I believe that this is an old Adafruit library. I am not seeing that library up on Adafruit github.
I believe that they maybe replaced it with: https://github.com/adafruit/Adafruit_SH110x
You might take a look at...
Sorry, I don't use Strings so unclear to me best way to use them here.
But you might try something like:
if (directoryPath.length() == 0)
or != 0 for other case...
I did not see anywhere where the...
Note: with T4.x typically will run at USB High speed(480m) and the transfer size is 512 bytes versus T3.x which run at full speed(12M) and the transfer size is 64 bytes.
The USB Serial code is setup, to try to pack...