Hi Alice,
1. I am not using Freedom Board. I am using a customized board. So I guess Reset button option would be invalid here. (or if I have to configure any button as RESET Button please help me how to do it)
2. My Application Code's Linker File settings:
MEMORY {
m_interrupts (RX) : ORIGIN = 0x00004000, LENGTH = 0x000000C0
m_text (RX) : ORIGIN = 0x00004410, LENGTH = 0x0000FBF0
m_data (RW) : ORIGIN = 0x1FFFFC00, LENGTH = 0x00001000
m_cfmprotrom (RX) : ORIGIN = 0x00004400, LENGTH = 0x00000010
}
I have also attached the APPLICATION CODE project.
3. I am using UART Boot loader -- AN 4767.
4. Should I flash the Application code ? I have doubts in using the Universal Boot loader GUI.
Ill tell you what all I did step by step.
Step 1: I included the following files from the AN 4767 SW file
- common.h
- Events.c
- Events.h
- FC_protocol.c
- FC_protocol.h
- flash.c
- flash.h
- main.c (which is Bootloader_sci in AN 4767 SW folder)
- uart.c
- uart.h
Step 2: I made changes in the code to suit my board specifications. For instance: My serial connection is half duplex and there is no RTS CTS support in MKE02Z64VLD2. The Tx and Rx are connected to PIN 21 of my controller so I need to toggle it every time I Transmit and Receive. So in the Uart.c and Uart.h files I included this piece of code.
For RX
GPIO_PDD_ClearPortDataOutputMask(GPIOA_BASE_PTR, GPIO_PDD_PIN_21);
For TX
GPIO_PDD_SetPortDataOutputMask(GPIOA_BASE_PTR, GPIO_PDD_PIN_21);
I made other necessary changes required for successful compilation of the code.
Step 3: I wrote a simple Application code for blinking of led, which works well if I debug it. I have attached it here.
Step 4: I removed the s9 record line statement from the application_code.srec (actually I tried both. I tried to run the application file which has s9 record and I tried to run the application file which do not have s 9 record.. Both didn't work)
Step 5: In the Boot loader GUI, I loaded the S record format application file by clicking the Open s19 button.
Step 6: I debugged the Boot loader code and connected the Boot loader GUI to it by pressing the Connect button.
Step 7: I pressed the Erase button then I pressed the Program button as shown in the screenshots above (in my question).
Step 8: What should I do to make the APPLICATION CODE run ?
I am stuck at this step...