Other Parts Discussed in Thread: MSP430F5525
Tool/software: Code Composer Studio
re: MSP430F5524
Loading BSL/Main Flash from an assembler only project
I appologise in advance if my information/terminology is confusing. My goal is to use the CCS IDE as an assembler/linker with debug capabilities for an assembly only project. I want to load BSL_Flash and Program_Flash from a single project without any C/C++ references. I just don't C it.
The reason for asking the question rather than testing is that I don't have a hardware prototype or EVM due to cost constraints. I'm trying to ensure that I can personally support the product before investing limited resources.
My questions are:
1. Will the project load both BSL and Main memory sections as described by the link map?
2. Do you think there will be problems using the debugger due to the way I've set up the project?
To set up the project, I have removed as much of the C framework from CCS as I could find. I have removed all directory includes except for the project root. I have copied "msp430f5525.cmd" to my project dir, renamed it to "msp430f5525.asm", and rewrote it in assembler.
To set up the project, I copied "lnk_msp430f5524.cmd" to my project dir, stripped conditional statements, created my own boot section and wrote a program to test the build.
The added code to "lnk_msp430f5524.cmd" is:
MEMORY
{
......
INFOD : origin = 0x1800, length = 0x0080
MYBOOT : origin = 0x1000, length = 0x0800 /* added by me*/
FLASH : origin = 0x4400, length = 0xBB80
......
}
SECTIONS
{
......
.infoD : {} > INFOD
.myboot : {} > MYBOOT /* added by me */
.int00 : {} > INT00
......
}
The simplified test program "bsl.asm" is:
.def BootCode ; Export program entry-point
.include "msp430f5524.asm"
.retain
.retainrefs
.sect ".myboot" ; BSL FLASH
BootCode
mov.w #WDTCTL,r4
ret
The related map file references are:
MEMORY CONFIGURATION
name origin length used unused attr fill
--------------- -------- --------- -------- -------- ---- --------
......
MYBOOT 00001000 00000800 00000006 000007fa RWIX
......
SECTION ALLOCATION MAP
output attributes/
section page origin length input sections
-------- ---- ---------- ---------- ----------------
......
.myboot 0 00001000 00000006
00001000 00000006 bsl.obj (.myboot)
......
Thank you in advance for your help,
Rudy