Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Posts posted by Fred

  1. You got friendly and helpful. Three different people gave you well informed advice within hours of asking a question. You just complained that it would be too hard.


    In fact, I just checked and every one of your posts has been asking for help. You haven't once said thanks or even acknowledged the replies you got.

  2. I find that 43oh has pretty much become just Energia support. The useful, informative and helpful community has gone and it's mostly just the stuff you described above. I don't check on here as often as I used to and may well stop completely.

  3. Good point. I just had a look and stumbled over the CC3220, CC3220S and CC3220SF. I found a single reference to the CC3220 on E2E which concluded with "you discuss unannounced product on public forum".

    There is also reference to the CC3220S(F)-LAUNCHXL on Mouser and Octopart but nothing there. I'm sure this happened with the MSP432 Launchpad too.



  4. The only thing I've noticed so far is that there's nothing about licensing.


    I was wondering whether my current CCS licences would work - one from a couple of years ago with a Piccolo ControlStick, and one in the current "free with a Launchpad" promotion.


    Are they about to ditch licencing altogether and ran a quick promo to sell a few Launchpads? Is it just missing from the beta - which also didn't need the usual approval step? A few weeks should reveal all.

  5. Ah - Just after I posted I managed to find an answer myself although it's not elegant. It seems that to expand again you need another level of redirection.



    This works because of the first rather pointless looking line:

    #define PxOUT(port)   PxOUT_(port)
    #define PxOUT_(port)  P##port##OUT
    #define LED_PORT      1
    PxOUT ( LED_PORT ) ^= 0x01;
    If anyone knows a slightly neater solution then let me know, but this will do.
  6. Anyone know what I'm doing wrong here?

    #define LED_PORT    1
    #define PxOUT(port) P##port##OUT
    PxOUT(LED_PORT) ^= 0x01;
    I get a compilation error - identifier "PLED_PORTOUT" is undefined.


    I can see that the value that I pass to the parameterized macro is taken literally rather than being itself defined as 1. How do I tell the preprocessor to make the substitution?


    My code looks similar to that above. I've tried changing the ordering, whitespace, throwing in brackets. I can't seem to get it to work.

  7. I wasn't implying it was necessarily for this project. I think a logic analyser is pretty much essential for debugging anything when doing microcontroller work. Once it's too complex to use an LED - e.g. any serial protocols, timing, clocks - it'll likely be the first tool you turn to.

  8. Interesting stuff. I was thinking about this only yesterday, primarily because I have a project that I switch between a F5529LP dev board and a F5510 final PCB. That means it's helpful to be able to switch pins and ports with some sections like this


    #if defined (__MSP430F5510__)
    #define LED_RED_PORT	P2OUT
    #define LED_RED_PIN 	BIT1
    #if defined (__MSP430F5529__)
    #define LED_RED_PORT P1OUT
    #define LED_RED_PIN BIT0
    This simple stuff is all fine, but gets messy when using interrupts and needing to define multiple PxDIR, PxIN, PxOUT, PxSELn, PxIE, etc.


    Then I started doing this sort of thing, but it started to feel a bit wrong

    #define IRQ_ON P2IE |= IRQ_PIN
      if (something)
    I might just use the parameterized macros with ## such as GPIO_SEL(x) so I only have to define the port once. I knew I'd seen something similar once, but couldn't remember where or when. Thanks for reminding me.
  9. I was thinking more of the <$10 eight channel clones. Definitely good enough for some UART debugging.


    I'm in the UK but found UK sellers shifting them from a UK warehouse. Obviously they're all from Shenzhen originally. (Hmmm. Just searched and there seems to be less around than there used to be, and all seem to ship from China now.)

  • Create New...