I'm way late on this, but I just ran into the same situation as Jake.
Jake, were you using AGND, or DGND? Works perfectly for me with DGND, but for AGND, full output will be 0 to ~2.19V.
To...
Type: Posts; User: kam42
I'm way late on this, but I just ran into the same situation as Jake.
Jake, were you using AGND, or DGND? Works perfectly for me with DGND, but for AGND, full output will be 0 to ~2.19V.
To...
Thank you, Paul!
Hmm - after thinking on it, the watchdog status doesn't matter to me, but I would prefer to shut the LED off. I'll likely keep the watchdog in - as you said, it can't hurt.
I'm not adding...
Mark,
Thanks for the advice. Here's my changes so far. I've tested all of the defined pins, although I didn't run through every combination. Have a few more things to change, mostly the offset...
For anyone reading along, it seems that the reason for the above problem is that the preprocessor does not expand macros recursively except in certain situations, as detailed here, with a workaround:...
Oh, I see what you ran into. I ran into it face first as well.
In kinetis.h, line ~9142:
#define _CONFIG_DRIVE_PORT_OUTPUT_VALUE(ref, pins, value, chars) SIM_SCGC5 |= SIM_SCGC5_PORT##ref;...
Success!
Went through your diffs and have it working with the default SPI0 pins. Working on adding your defines in for the different boards, although I might change them up a bit to allow for...
Excellent, I'm digging through it now. The diff looks fine to determine the changes to make. I'll report back and get a little guide of sorts posted once I get it running.
I should also note that...
To update, I also double checked that the target processor was a cortex-m4.
Did you have to reduce the clock speed to 48MHz?
Believe so -
"${uTaskerLinkerScripts}/K_256_64.ld"
for the Teensy 3.1.
Wow, that would be incredible. Having a relatively easy way to add USB-MSD to a data logger is extremely attractive. Color me very interested.
I've been trying to get my own USB-MSD up and running...
If you look on the main (largest, 64 LQFP) chip of the Teensy 3.1 vs 3.0, there will be a marking that will tell you which it is.
Top line, Teensy 3: MK20DX128
Second line, Teensy 3: VLH5
Top...
As a jump-off point for the rechargeable battery route, you could try something like this:
http://www.digikey.com/product-detail/en/MS412FE-FL26E/728-1053-ND/1889204
2833
It's all there, the loop is empty since code should never get there. The definition of WRITE_RESTART is defined before setup(), #define WRITE_RESTART(val) ((*(volatile uint32_t *)RESTART_ADDR) =...
Try this, although trying to read LPTMR0_CNR will likely still read 0, it will trigger the interrupt at the period you specify in compare_value.
int compare_value;
void setup(){
...
Hi Paul,
Haven't seen this anywhere else yet - but I'm looking through Teensyduino 1.18 rc3 and don't see register definitions for the PDB triggering of ADC1. From page 757 of the K20 reference...
A little trick I learned as a replacement for the delay(5000) at the start of your code: while(!Serial){}
Though, it's a poor choice if you would like it to run independently of having to open the...
It strikes me that I should post some code. It will run consecutive conversions on the 6 channels listed in channels[]. It's not robust, so be careful if you decide to modify it for your own use.
...
... for lack of a better term.
I've been playing around with the programmable delay block, coupled with DMA and the ADC to read 6 channels, switching out the ADC0_SC1A for each sample to enable...
Quick question - are those SD speed ups patched in to the standard SD library? I know it's a long shot, but do you have a general idea of how it compares to the 'stock' SD library and/or the SD fat...
Any chance you could point us in their direction? Always interested in quality fabricators.
Great news! Thank you Paul. Looking forward to the upgrade.
I'll make a post once I receive my boards and have time to run some preliminary and rough power consumption tests.
Hi all,
Producing my own circuits using the MK20DX128VLH5 with Pauls Mini54 bootloader, and looking forward to switching over to the new MK20DX256VLH7 once they come in stock (MCU behind the...
Nifty little trick I learned here on the forum to easily blink a light. From my experience with it, seems it is possible to call digitalRead on an output.
Data downloaded via software serial over...
Hi Paul,
I had some time to work with your above points, and have successfully rebooted both my custom boards and normal Teensy 3.0 boards using the below code. Required writing to the...
Good point about the M0, that would be fantastic.
Correct with respect to fault tolerance - these boards aren't going into anything related to functional safety. Pure data acquisition and logging...
Paul,
Thanks for the reply, I'll look into the documentation you kindly provided and report back. Fortunately, I would be calling the software reset after the USB is disconnected so I don't think...
I love the watchdog timer chip - that would be more robust than a purely programmatic reboot request.
I saw in the MK20 documentation that it has an internal watchdog timer, I will have to look...
Apologies, example code:
Don't leave it running, it results in a reprogram loop every 5 seconds.
Replacing _reboot_Teensyduino_(); with _restart_Teensyduino_() results in an error.
void...
Hello all!
Question based on previous question located here: http://forum.pjrc.com/threads/23776-Teensy2-0-Software-Reset
Does the _restart_Teensyduino_() method exist for the Teensy3? I see it...
Do you have an idea of how long it takes to wake up from low power modes, using an internal wakeup source? The MK20 ref has a statement saying that external wakeup sources take around 5 cycles of the...
Couple questions related to custom Teensy boards with fresh MK20 chips and Paul's MINI54:
1) Has anyone burned anything in to the PROGONCE section of the MK20? Paul puts the MAC address there, but...
I have an eagle library for both the MK20 and the MINI54 that Paul sells in the store, and have verified proper functionality on some boards that I've made.
I extended the pads on the MINI54 quite...