Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Sharing code between the application and the bootloader.

$
0
0

Hello,

I have a system with uses a MSP430 microcontroller (the F2617), the system is composed by two microcontrollers, a microcontroller for the temeletry and the other to handle the other functions of the device.

The telemetry microcontroller communicates with the world using a RF transceiver which talks with the microcontroller using the SPI protocol.

The part of the code which handles the RF chip contains the same routines for the bootloader and the appliocation, the problem is that it is duplicated and each piece of code is of about 20 kB (too much). I would like to make some kind of library with the RF communication module so i can place it in one place of the memory and it can be used both by the bootloader and the application.

I use IAR, the bootloader and the application are in different projects and when i flash the applcation, the bootloader code is compiled and included.

Any help to solve this will be appreciated.

Thanks


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>