Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: froeber

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Hey @tigercat, When I first was experimenting...

    Hey @tigercat, When I first was experimenting with this a while ago Paul had a different version of his loader running in the MK54 chip. That version used to do its own "erase all" of the main...
  2. Thread: Serial.flush?

    by froeber
    Replies
    8
    Views
    3,827

    Hi Duff, So, from everything I found it's a...

    Hi Duff, So, from everything I found it's a Windows issue that you have to close a virtual serial USB connection before it enumerates again or else the Windows driver gets hung up. Supposedly no way...
  3. Thread: Serial.flush?

    by froeber
    Replies
    8
    Views
    3,827

    I did find a Freescale post about resetting a...

    I did find a Freescale post about resetting a Windows USB connection:
    https://community.freescale.com/message/436041
    I find if I include:
    USB0_CONTROL &= ~USB_CONTROL_DPPULLUPNONOTG;
    Statement in...
  4. Replies
    3
    Views
    1,911

    Hey Steve, From what I know serialEvent is an...

    Hey Steve, From what I know serialEvent is an Arduino concept where you can code a function of that name to handle serial data. It's supposed to be called once per "loop()" iteration. It wasn't in...
  5. Thread: Serial.flush?

    by froeber
    Replies
    8
    Views
    3,827

    Hey @duff. It's funny how I seem to keep finding...

    Hey @duff. It's funny how I seem to keep finding you addressing the same things I have questions about. I'm trying to get USB to work reliably when transitioning through low power and reset...
  6. Replies
    3
    Views
    1,911

    Updates to new yield.cpp code

    Paul, I'm merging in changes from TeensyDuino 1.20 release for Teensy 3.x into my baseline code.. I saw that there is new yield.cpp code. There was a comment in that code that asked if it needed to...
  7. Hi all, I've seen this issue resurface as part of...

    Hi all, I've seen this issue resurface as part of the discussions about the new TeensyDuino release. After the whole discussion above I did follow up on the post from @tni about the Posix discussions...
  8. Replies
    44
    Views
    38,041

    Sometimesyou need to fix nested interrupt locking

    Hi, I saw this post looking through the release notes. I also saw Paul closed your issue seeming to say it wasn't broken.
    This notion of nested interrupt locking has come up before in this forum....
  9. Better results with better tools and more drastic measures

    Neil, Thanks for the great link! And damn, how much easier things are with the right tools! That guy Eric Styger is using the Freescale Code Warrior toolset with their processor expert support. And...
  10. Replies
    54
    Views
    34,393

    Hi @martinayotte, You want to use the watchdog...

    Hi @martinayotte, You want to use the watchdog but not right from the start it sounds like. So, the deal is that you have to update the watchdog right when the processor starts if you want to change...
  11. Just an update. So, I was trying to come up with...

    Just an update. So, I was trying to come up with a super low power state that I could put the Teensy 3.0 processor into when our LiON battery got too low so that it would stop discharging until...
  12. Hey @duff, I'm sort of wondering how you get 10uA...

    Hey @duff, I'm sort of wondering how you get 10uA too. I want to throw my board into real lower power state when battery voltage drops and leave it there until USB charger plugged in so that I don't...
  13. Replies
    6
    Views
    5,676

    @Jp3141, I'm using the Teensy 3.0 so the older...

    @Jp3141, I'm using the Teensy 3.0 so the older data sheet. But I think the section references I give are the same as for the Teensy 3.1 data sheet you quote. Section 4.4 of data sheet has the full...
  14. Replies
    6
    Views
    5,676

    Thanks for the suggestion Michael but we have the...

    Thanks for the suggestion Michael but we have the LiON battery to power the whole board too. I like having the VBat connection from the battery in addition to having it hooked to Vin so that I can...
  15. Replies
    6
    Views
    5,676

    Safe to hook LiON battery to Vbat?

    Hi, I think this is a question for Paul. I have a Teensy 3.0 and I want to protect the RTC from power loss by connecting our LiON battery to the Vbat pin. And that is what I have done on my first...
  16. Replies
    30
    Views
    18,317

    Wow, interesting post. I'm an "older" SW...

    Wow, interesting post. I'm an "older" SW developer working with some "kids" to bring a new product to market. They went through a HAXLR8R accelerator program a few months ago over in China where you...
  17. I have been trying to understand what pin D33...

    I have been trying to understand what pin D33 does and what it can be used for on the Teensy 3.x boards. And I think there might be some slightly incorrect information floating around in the forum on...
  18. Replies
    16
    Views
    7,280

    Hey Paul, Thanks for the quick answer. And as I...

    Hey Paul, Thanks for the quick answer. And as I would expect from all the great design in your products it matches the other information I had found. So I now know that if we use other RTC...
  19. Replies
    16
    Views
    7,280

    So, I actually sort of found my own answer to my...

    So, I actually sort of found my own answer to my question. The post at:
    http://www.lpcware.com/content/faq/how-calculate-value-crystal-load-capacitors
    Talks about this exact issue. In Table 16 of...
  20. Replies
    16
    Views
    7,280

    I have to say I love using the Teensy3 because it...

    I have to say I love using the Teensy3 because it does so many things well and there is great info in this forum to help figure things out. I was just trying to determine how the RTC oscillator...
  21. Finally achieved low (enough) power!

    @duff, I was going crazy trying to chase that low power issue I was having and posted about earlier. I tried your suggestion to use your VLPW code and found that it sometimes ran at about .8mA like...
  22. Replies
    22
    Views
    15,668

    Paul, I was having a low power issue with the...

    Paul, I was having a low power issue with the 1.16 release I was using on my Teensy 3.0. I was finding what I think was that the MIN54 was getting hung up drawing about 3mA of power in some cases...
  23. Replies
    1
    Views
    1,385

    Minor fix in 3.18

    Paul, I happened to notice that the code in serial3.c didn't use new IRQ_PRIORITY in NVIC_SET_PRIORITY call.
  24. Hi @duff, I've been away from power issues with...

    Hi @duff, I've been away from power issues with my app for a while and doing things like adding Bluetooth LE. I'm still currently using LLS low power mode. But I found the watchdog wasn't working. I...
  25. Replies
    54
    Views
    34,393

    More watchdog details

    Hi @reckut, I took a little more time to look at what you did. I've been doing a lot of watchdog stuff the past week working with some Freescale engineers and have a good handle on it. First off, the...
  26. Replies
    54
    Views
    34,393

    Hey, I just started post...

    Hey, I just started post http://forum.pjrc.com/threads/25391-Watchdog-initialization-problem earlier today not knowing about this one. I've been trying to get LPO watchdog to work with some engineers...
  27. Replies
    2
    Views
    3,258

    There is a post at...

    There is a post at https://community.freescale.com/message/382312 that has been in progress for a bit on using the LPO with the watchdog. I figured out how to get it to work yesterday but haven't...
  28. Replies
    2
    Views
    3,258

    Watchdog initialization problem

    Hi all, I've been trying to get the Teensy3.0 watchdog timer to work with the low power oscillator (LPO) clock source. I was having no luck until I got hooked up to a Freescale support engineer who...
  29. Paul, I guess I'm still a bit confused about the...

    Paul, I guess I'm still a bit confused about the configuration details at startup. I have code that replaces your eeprom.c code because I want a configuration with EEPROM and some Flex NVM for Flash...
  30. Hey Paul, Right on! Excellent details to know and...

    Hey Paul, Right on! Excellent details to know and sounds like a great solution. Thanks for the info! I'm now "good to go" on this issue.
  31. Paul, Thanks for the info! So, the upload process...

    Paul, Thanks for the info! So, the upload process still uses the "erase all blocks" command. And then the next time my program starts the standard eeprom_init code comes in and sets things up for 2KB...
  32. Want to reconfigure Teensy3 FlexRam/FlexNVM for EEPROM and data flash

    Hi all, I'm trying to figure out how to switch my Teensy3 from the "standard" EEPROM setup Paul provides to a custom one. The standard setup is that the 2KB Flexram and 32KB of FlexNVM are used...
  33. Replies
    29
    Views
    21,115

    I'm trying to figure out the "right" way to go...

    I'm trying to figure out the "right" way to go with a potential product we are basing on the Teensy3. We will want data offload over USB by users who certainly won't have the TeensyDuino environment...
  34. C++ constructors for static objects in functions don't seem to be called.

    I had some code that was working just fine measuring elapsed time using C++ elapsedMillis objects that were defined as static objects at file level scope (ie outside any functions). To improve...
  35. High power in LLS

    Paul talked about how to check loader version in http://forum.pjrc.com/threads/23880-Teensyduino-1-15-Released. The 7ma certainly sounds like the Min54 is still running. I get .5mA in LLS mode but...
  36. Using llwu code for LLS low power operation

    In case anyone wanted to use the llwu code I posted earlier I thought I would provide the code we use for entering LLS mode as a sample of using the LLWU code. I should also mention that we only use...
  37. LLWU use for low power modes

    @Roger


    Roger, You asked about checking out pin 26. I didn't check it out explicitly because we don't use any of those pins you have to solder to the bottom pads for. But I have no reason not to...
  38. Replies
    0
    Views
    2,832

    ADC problems in BSP analog.c I think.

    Paul, I'm adapting the ADC code you provide in the BSP analog.c source file for my own application. Primarily I need to change it to support the LLS low power mode which resets the ADC each time you...
  39. Since nobody else has replied I'll take a shot at...

    Since nobody else has replied I'll take a shot at mentioning some things. First, you can't hook a battery to the 3.3V pin. It's an output from the internal regulator. We too have a battery operated...
  40. @duff, I think I am going to give up on VLPS mode...

    @duff, I think I am going to give up on VLPS mode and just use LLS. Like you reminded me, it exits via an interrupt so no big recovery effort. It's missing 1 or 2 wakeup sources I would have liked...
  41. Going into VLPS mode

    @duff said


    So, I saw that processor errata e4481 said:


    They say use VLPS instead of STOP mode. Besides, the power use for STOP mode is supposed to be higher by a fair bit. So, I had been...
  42. Hi, has anyone gotten the Very Low Power Stop...

    Hi, has anyone gotten the Very Low Power Stop (VLPS) mode to work? I've been messing with this for about a week and having real trouble. Sometimes the code works and I can stop the processor with...
  43. @paul, Again, I agree with your analysis. You...

    @paul, Again, I agree with your analysis. You write wonderful code and clearly know your stuff. Not everyone has the same breadth of experience though so I thought it was useful to make sure things...
  44. @paul, Thanks, as always, for the nice...

    @paul, Thanks, as always, for the nice explanation. The ARM Cortex M4 interrupt model is pretty slick and sophisticated. And, even though it seems no use is made with the current code of the flexible...
  45. @tni I like your characterization of the problem...

    @tni I like your characterization of the problem I am talking about as a recursive mutex problem. Because the use of interrupt locking is really just like a simple mutex to protect critical sections....
  46. Just realized that I can't just use my old Cortex...

    Just realized that I can't just use my old Cortex M3 critical section code. Any critical section code that tracks critical section nesting levels only works right if ALL critical sections use the...
  47. I don't think critical sections work (interrupt locking)

    I'm trying to port some code I've used on many other systems/OSes. It uses critical sections to safeguard manipulating critical data. When I look at the Teensy 3 code it looks like the code simply...
  48. Paul, I am working on trying to get VLPS low...

    Paul, I am working on trying to get VLPS low power mode to work. I tried using code from Freescale MQX RTOS but it wasn't reliable. Now I'm using code from the App Note 4470. But I have run into one...
  49. Hi, App note 4503 section 9.1 and the associated...

    Hi, App note 4503 section 9.1 and the associated table 1 show the latency getting out of different low power modes. Usually it's the interrupt latency (which they state is 12 cycles for a K device...
  50. In the old days I used to do defense projects for...

    In the old days I used to do defense projects for big systems using multiple processors with lots of memory. When they came along we started using VME boards instead. These processors had lots of...
Results 1 to 50 of 61
Page 1 of 2 1 2