Jump to content
43oh

How to program a CC1310F64RHBT in Energia


Recommended Posts

@@spirilis @@jpnorair I have gotten past that error as well by comparing and modifying the .lds @@jpnorair sent me and the one found in the CC1310F128 folder. TI-RTOS is really a pain in the ass. I finally got this error which appears to be hardware related and not software:

Loading Program: /var/folders/wg/8ffwz6257k98qp1rmrrxwcj40000gq/T/builda6b0f927fed067f49cbe57f1047efa14.tmp/CC1310Blink.ino.elfPreparing ... 
.text: 0 of 29872 at 0x0
.text: 28672 of 29872 at 0x0: 85%
.data: 0 of 88 at 0xffa8: 98%
.data: 0 of 200 at 0x20000000: 98%
.data: 0 of 244 at 0x20001ff0: 99%
Finished: 99%
Setting PC to entry point.: 99%
Running...
error: Cortex_M3_0: Can't Run Target CPU: (Error -2134 @ 0x0) Unable to control device execution state. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.222.0) 
Success

I am using regular jumper cables to connect the MSP432 programmer to the CC1310F64 which is on a breadboard. Does this have to do with the resistance of the wires or other properties? I would also be happy to share this so others like me wouldn't be in this bad situation.

Link to post
Share on other sites

Without having any way of seeing your breadboard adapter socket soldering job and where the passives are, my first assumption is you probably did something wrong with the chip's layout; FYI this isn't a chip you can casually "solder to an adapter" and expect it to work.  It has several passives including an inductor, multiple values of decoupling capacitors, a 24MHz XTAL without load caps (load caps are internal) along with a 32.768KHz XTAL with load caps that are expected (earlier revisions of the CC1310 chip couldn't run without the 32.768KHz XTAL).  I've been successful in rolling my own boards by designing them from scratch but closely following the layout decisions demonstrated by TI's own reference designs.

Link to post
Share on other sites

Yeah, with RF devices you don't just wire-em-up.  Frankly, you don't even go with 2-layer PCB, you really need an internal ground plane (so 4-layer).  The CC13xx has a lot more electrical requirements, as well.  For one thing, there's a DC-DC converter on it that will be radiating a ton of noise if you're not ultra-miniaturizing the component layout (and paying attention to trace design & component selection).  

 

Everything is a learning experience.  In this case, I'd say you should try to sell-off as much of your breadboarding kits to some makers, and buy a bunch of launchpads instead.  RF circuit prototyping requires a good soldering iron, a microscope, and a lot of proto boards you can destroy in the name of analog network analysis.  It's not a huge expense once you figure it out, but it's more than makers tend to want to spend.  And at the end of the day, radio waves are invisible and make for a lousy demo!  So it's usually a lot more practical to buy someone else's dev kit.  FWIW, wireless SoC dev kits used to be like $1000.  They would get delivered in a custom case from your local TI (or ST, Semtech, etc) rep!  Now, $80 for 4 launchpads.  INSANELY GREAT.

Link to post
Share on other sites

Thanks for the pointers. I already have a 4-layer PCB design which has been built from TI reference designs and part datasheets. It has all the necessary components for the radio to work such as ground/power planes and the required decoupling caps/inductors. I wanted to be able to use it with a breadboard on the side without using the radio to test code that interacts with sensors. It seems like that will be a lot of work to pull off so I think I'll stick with debugging on my final board.

 

Thanks,

Cameron

Link to post
Share on other sites
  • 2 months later...

@jpnorair @spirilis

Hello! I am back quite a few months later with a finished 4 layer PCB which uses the CC1310F128RHBT. I currently using the programmer on the MSP432 LP to flash code to the chip. Uploading code from Energia while selecting the CC1310 LP board works just fine, but the code never executes properly. I have narrowed this down to an issue within the CC1310 LP board files. If I try to blink an LED on the board with some simple code, it uploads fine, but it doesn't blink the LED. In fact, using any kind of simple digitalWrite commands does not work. I think this is because the CC1310 LP has 48 pins while the CC1310F128RHBT has only 32. I need to be able to select the correct pin number and digitalWrite to it for any basic needs. Would either of you know where I could find the board files for my chip?

 

Thanks so much,

Cameron

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...