I've been using development boards such as the BLE Mini board (uses the CC2540) for quite a while with AVRs. However, I'd like to make it more efficient.
Have you got any tips or pointers as to how to move the code away from the second AVR and compile it together onto the CC2540's MCU? I'm really only pulling a pin high (linked to a mosfet) when a character has been received from my iPhone app, and sending another character to my phone app when a button is pressed on my prototype.
Another thing I'm struggling with is what device can I use to flash/program the chip? Can I simply upload via SPI?
Any pointers would be grateful.
Sam