POINTERS WORK! - skipped this for reading example code ... found and tested ...
It is now back and working on the original board from @KenHahn
Downloaded the ZIP and pulled JUST the SerialFlashChip.cpp file to this system and it works...
Did you try my GitHub version in msg #11, I changed reference to pointer and begin method sets it to address of reference passed in. Like many of our other libraries
Back to my question about reference versus pointer...
For the heck of it, try my quick and dirty fork/branch:
https://github.com/KurtE/SerialFlash/tree/use_ptr_not_reference
Again unclear to me what assigning one reference to another, but for...
Looking at SerialFash library, my c++ stuff is a bit vague on some stuff. In particular object references.
That is the cpp file has:
static SPIClass& SPIPORT = SPI;
and the begin method has:
bool SerialFlashChip::begin(SPIClass& device...
Interesting how the quote of this ...
But wondering about: SPI1.setCS(FLASH_CS);
Is the Serial Flash library assuming that the CS pin is controlled by SPI? That is asserted/deasserted I believe on each byte?
Especially since you also have: if...
It has been a while since I have played with the touch. Wonder if it or the flash chip are holding onto the MISO signal?
Would also double check that CS pins are correct at the time you are trying to access each of them.
Also, when I have...
Hi and Welcome,
Looks like you chose an ILI948x board that is setup to run in parallel mode. Most of the Arduino libraries have been setup to
update the display using SPI.
A while ago, a few of us experimented with setting up some parallel...
For those who may want to look at the posted data, you can download the software without having to own one of their logic analyzers
https://www.saleae.com/pages/downloads
As @joepasquariello mentioned - SPI works full duplex...
And there are lots of examples of code that uses DMA. For example, most of our display drivers have DMA output. Most of them don't do
much if any DMA input.
The SPI library has a DMA...
quickly is a relative term 😆. Still can take a while. But least it will complete. There is also the ability to disable all of this. I don't remember the settings (have not used it), nor once you disable the automatic how you trigger it to...
By default, it downloads the indexes each time you start the IDE where the delta time is > timeout from the last download.
It does not take 5 minutes to download the Teensy, it simply does not update the message from downloading the last index...
It was c++\5.4.1. Changed it back and all is fine again. I'm not sure if it was me, the cat, a buggy OneDrive update, or something else. Thanks for the help guys. I was pulling my hair out yesterday.
Ordered one: https://www.amazon.com/Hosyond-480x320-Display-ST7796S-Mega2560/dp/B0CKRJ81B5
Looks like same pinout as ILI9341 and ILI9486 displays, so should be easy to plug in...
Which display is this? Have a link to it?
You might try the one:
// OR use this initializer (uncomment) if using a 2.0" 320x240 TFT:
//tft.init(240, 320); // Init ST7789 320x240
EDIT:
What display is this? 320x480 sounds more...
Sorry, I have not done much of anything with CAN. Hopefully one of other members who use it can give
some advice. Not sure if you are allowed to still edit the above message header, but maybe mentioning CAN might
get more attention from those...
Two parts here I think:
Vendor/Product ID: I don't know about the file usb_private.h... That was a long time ago.
But with current releases, I believe that is defined in usb_desc.h
With board manager, the board installs are in the "Arduino15"...
Sorry, I still do not understand your setup... That is, the github project I linked to above has the following stuff in the src directory
In cases like this, it is hard to know what is going on, without seeing more of the build output.
For...
It works fine for me. Have done most of our stuff with the T4.x...
Unclear what you mean by the above statement. How did you put them in the Arduino Libraries?
That is did you simply copy those two files into another directory or, did you for...
Note: The first time I searched for it, which is not difficult to find... I then pinned it in my file explorer:
Nice thing with having several of the places you might go to here, if you have Windows Terminal installed, you can then simply...
"Windows / Start Key" + "R"
In the "Run' box enter : %LocalAppData%
This Opens File Explorer to 'your_user'
Then something like: "C:\Users\your_user\AppData\Local\Arduino15\packages\teensy\tools\teensy-tools\0.60.3\teensy_post_compile.exe"
First, a disclaimer: I'm doing this for fun, not because it made any particular sense.
For background, I've dabbled with embedded systems as a hobby for some time. I've mostly made things that work together with my modular synthesizer setup...
Just did that here the other day and it worked - with the BIGBUFFER edit as noted - T_4.1 default is 512 and the code in the example won't connect - once I swapped those lines it worked.
// USBSerial userial(myusb); // works only for those...
Quick and dirty experiment.
I programmed a T41 with:
uint32_t loop_count = 0;
elapsedMillis emBlink;
void setup() {
// put your setup code here, to run once:
pinMode(LED_BUILTIN, OUTPUT);
while (!Serial && millis() < 4000) {}...
Unless someone else like @PaulStoffregen beats me to it, I will try to take a look soon.
Currently playing around with the GIGA, and seeing how hard it would be to support something like Dual Serial...
I now have a test sketch with copies of...
Note: The Print Class (which Stream ... derives from),
has the method:
virtual size_t write(const uint8_t *buffer, size_t size);
I don't believe that the class:
class usb_serial2_class : public Stream
...
extern usb_serial2_class SerialUSB1...
Haven't used it yet in any projects but based on testing using Madgwick Fusion algorithm seems to work well. With the other filters I tested I never fine tuned the gains for the combo so jury is out with using those but expect them to work when...
Let us know how it works out for you. Oh, by the way I ordered a set of these cables from Amazon to make it easier to connect to the Teensy:
https://www.amazon.com/dp/B074MDM36N?ref=ppx_yo2ov_dt_b_fed_asin_title
It should work, however, by default, the USBSerial object only supports those Serial ports that are USBLS or USBFS (i.e. buffer size == 64)
So if you plug in a T4.x into it, it probably won't connect.
However if you change: to using...
I agree with Mark... But in addition, you might also show a picture of the setup. For example it might
show that one or more pins have not been soldered, or there is a short...
Here is a quick and dirty sketch that emulated your input data...
class FOO : public Stream {
public:
FOO(const char *sz)
: _psz(sz) {}
virtual int available() {
return strlen(_psz);
}
virtual int read() {...
You can probably get more people involved in this conversation if you invest just a small amount of extra effort to make running your programs easier for everyone.
First, copy the whole program. It's easy, just Ctrl-A to select all and Ctrl-C...
As I mentioned in the previous post. Your file does not contain 4 bytes of data, but instead it contains the Ascii representations
of your 4 numbers: Like the code that generated this file did something like:
file output of the string "254...
I am guessing your file is wrong... Also your current test sketch is outputting each character 8 times...
So: if you take the first set of characters you have: 50 53 52 32:
Which as ASCII characters are: '2' '5' '4' space.
So whatever...
Thanks Kurt.
Almost forgot. I put together a sketch that combines several AHRS methods that can be tested with the MPUT-9250 or the M5Stack Board:
// Set filter type:
// 0 = Madgwick implementation of Mahoney DCM
// 1 = Madgwick Gradient...
Lately been trying to consolidate/organize my IMU efforts and decided to grab a couple of new sensors that are used on the Nano Sense V2, the BMI270/BMM150 specifically. For reference Sparkfun has a BMI270 sensor and Waveshare has a BMM150...
Lets talk calibration now that I slept.
6-point Calibration:
Back in 2018 while experimenting with using @brtaylor's uNav INS code @Don Kelly developed a 6 point cal tool for the MPU-9250 which he updated in following posts. I have since...
Ok for those of you interested here is some output from the mods so far
Note other than reconfiguring haven't looked at code yet but looks like RAM1 and prog storage is off. Also SD card not detected (micromod sdio)
RAMDISK Storage 46080 bytes...
Makes sense to me...
Sorry, there are probably lots of other details from before that I have forgotten. More on this below:
Personally, I would suggest that may be premature...
If it were me, I would suggest to maybe start off, inverting...
Just a bit of warning about use of "Store" or StorageID.
From what I remember its only really demonstrated in mpt-test-integrityV2. Why was this?
As mentioned in an earlier post the storage index is automatically placed on the first...
Wow, that file is so old it's compiled for 32 bit Intel and 32 bit Power PC chips! Pretty sure it can't possibly work on MacOS newer than Mojave (10.14). It was probably last actually tested (by me) in the days when Apple named their MacOS...
Sorry, I am not really setup to do Mac host development. My only Mac is a 12+ year old iMac.
Also, as this thread and corresponding pull request is something like three years old and has not been merged, my assumption is that it probably won’t...
It has been a few years since I played with that part of the code. So there are lots of details that I foggy on.
I remember the original code would fail if the first storage added was not in place or Read only or out of disk space... For...