USB-MSD with SD-card (Teensy 3.1)

Status
Not open for further replies.
Hello Mark, I've been looking for MSD for a while
And uTasker is always a promising path to reach my project

Due to humanity laziness, and steep learning curve (?) of CW/other IDE
I think its rather ease, for serious hobby-list like me (am I?), to just follow sketches that compiles on Arduino IDE
I chose to learn and try what is easy, reachable, or has many reference/example on .ino to start on.
the uTasker code works on CW, codes are store in unfamiliar path and forms I'm not used to.
I remember registration on uTasker months ago, I can't even find where is the code with equivalent position to setup(), and loop() :confused:


A imaginary sketch like this would be easier for all other Arduino user to trace program flow,and thus further on.


Code:
#include "USBMSD.h"
void setup(){
 setupUSBMSD();
 setupLEDpins();
}

void loop(){
 if (USB.available())&&(SD.begin()) { // not sure if this correct anyway, "imaginary"
USBMSD.loop(); // turn on MSD if there is USB connection
}
toggleLED(); // else just be a flash LED stick
delay(500);
}
if its like above, I can ultimately transplant the MSD to some part of my code, which is already to complex to combine with CW.
and I can dig into the library "USBMSD.h"? to modify anything needed, or just leave it alone.

just like what I could do to the MTP library, it has similary easy example to transplant.
https://forum.pjrc.com/threads/43050-MTP-Responder-Contribution/page2

but still, its not a mission of the uTasker project,
maybe it was up to US, some further crazy hobbyist, to transform the code into usable form.
I found myself getting use to complex code than I was before.
 
Hi

uTasker uses a simple scheduler or can operate with FreeRTOS. This is a different concept from the simple super-loop used in the sketches.

Remember that (see statistics in this report) that >72% of professional development use an operating system (around 1/4 of these are probably FreeRTOS)
https://www.google.fr/url?sa=t&rct=...a1b0e0&usg=AFQjCNFGg232TQNz_7QnZbTlLz09N11mbg

Although in fact very simple to use an OS (in fact much easier than a super-loop as soon as a project gets a little more complicated, and reliability and maintenance becomes an issue) it does require a small amount of study to understand the concepts.

In fact uTasker works with MCUXpresso, KDS, CW, S32 Design Studio, Rowley Crossworks, CooCox, IAR, Keil uVision, Green Hills, Atollic TrueSTUDIO, make files and Visual Studio and it takes about 8 minutes to download it from GITHUB and build a complete project as shown in this video:
https://www.youtube.com/watch?v=K8ScSgpgQ6M&t=311s
Most of the tools are very simple (users of these tools [probably 90% of Kinetis developers will be using KDS at this moment] will initially think that Arduino sketches are complicated since it is new to them).

Regards

Mark
 
Status
Not open for further replies.
Back
Top