Hi We are using msp430f5438a for our application. We want to use pin 10.4/10.5 to program firmware when in BSL mode. I have read both "Creating a Custom Flash-Based Bootstrap Loader (BSL)" and "MSP430 Programming Via the Bootstrap Loader(BSL)" and I also found how to change default pins of BSL in this forum (thanks!). But the demonstration is using pin 3.4/3.5 for BSL programming and I also successfully repeated that work. But when I change the pins to 10.4/10.5, problems occurred. Firstly I found that the default CCS project use lnk_ msp430f5418a .cmd, it's ok when change the default pins to 3.4/3.5, but error occurred when I build the project after modified bsl pins from 3.4/3.5 to 10.4/10.5. Then I downloaded datasheet of msp430f5418A and found that there are only two USCI channel A in 5418a so when I try to use uartA3, error happens. Then i used msp430f5438a as the project's variant(properties->Resource->General->Main->Variant) and built the project again. Some warnings happened this time. The warnings are like following: #10204-D creating output section ".BSL430_VERSION_API" without a SECTIONS specification #10204-D creating output section ".BSL430_VERSION_CI" without a SECTIONS specification ... Then i look back at the file lnk_ msp430f5418a .cmd, and found there are some lines in MEMORY and SECTIONS that the corresponding lnk_ msp430f5438a .cmd doesn't have. For example: (MEMORY) ZAREA : origin = 0x1000, length = 0x0010 BSL430_VERSION_VENDOR : origin = 0x1010, length = 0x0001 BSL430_VERSION_CI : origin = 0x1011, length = 0x0001 BSL430_VERSION_API : origin = 0x1012, length = 0x0001 BSL430_VERSION_PI : origin = 0x1013, length = 0x0001 ZAREA_CODE : origin = 0x1014, length = 0x002E FLASH : origin = 0x1042, length = 0x07AE BSLSIG : origin = 0x17F0, length = 0x000C JTAGLOCK_KEY : origin = 0x17FC, length = 0x0004 (SECTIONS) .ZAREA : {} > ZAREA .BSL430_VERSION_VENDOR : {} > BSL430_VERSION_VENDOR .BSL430_VERSION_CI : {} > BSL430_VERSION_CI .BSL430_VERSION_API : {} > BSL430_VERSION_API .BSL430_VERSION_PI : {} > BSL430_VERSION_PI .ZAREA_CODE : {} > ZAREA_CODE .BSLSIG : {} > BSLSIG .JTAGLOCK_KEY : {} > JTAGLOCK_KEY So i added all these lines directly into the lnk_ msp430f5438a .cmd and built the project again and found those warnings were no longer existed. Then I programmed this new customed BSL into my msp430f5438a and found I still can't use pin 10.4/10.5 to download new code into it. Is there anything wrong? Please give me some advices if you have experienced in changing the pin of default bsl. Thanks in advance. Regards, Wong
↧