This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Programming 8051 on SmartRF04EB

Other Parts Discussed in Thread: CC1101, CCSTUDIO

I've seen lots of great code examples for the 8051 in the CC1110, and the MSP430 in the CC430. However, I'm developing with just a CC1101 on a SmartRF04EB. I know the board has a C8051F320 from Silicon Labs. I'd like to use that to configure and send data to the CC1101 but I can't find any example code or projects for getting started with the Si Labs MCU and IAR or CCStudio. It would be very helpful I've never used this chip before.

  • I've managed to build some code for the C8051F320 using SiLab's IDE and SDCC but I can't seem to write to it. I only get "Flash image overlaps with the bootloader". How do I change my code or hex to not overlap with the bootloader on the C8051F320?

  • For anyone else wanting to program the C8051F320 on the smartrf board, here's how I solved it:

    Download and install SiLabs IDE, just for the include files in C:\SiLabs\MCU\INC. The examples in C:\SiLabs\MCU\Examples\C8051F320_1 are also helpful.

    I just used sdcc and a makefile (attached). Make sure you set the linker to put code at --code-loc 0x0800, otherwise it will complain you're trying to overwrite the bootloader. You also have to run packihx to pack the hex file. See how the signals are hooked up on the board on page 6 here: http://www.ti.com/lit/ug/swru039b/swru039b.pdf

    Refer to the datasheet here: http://www.keil.com/dd/docs/datashts/silabs/c8051f32x.pdf to set the appropriate registers.

    Happy coding and I hope this helps someone.