Topic : STM8 bootloader + application

Forum : ST7/STM8

Original Post
Post Information Post
December 12, 2012 - 2:41pm
Guest

Hello,

I am evaluating STM8 with STM8 discovery board (STM8S105C6).

I am using the

Replies
Post Information Post
+1
0
-1
December 12, 2012 - 4:59pm
Raisonance Support Team

Hi,

Sorry, your post was snipped by the forum's bug. Please repost it and add a few blank lines at the end.

Vincent

+1
0
-1
December 12, 2012 - 6:31pm
Guest

Hello,

I am evaluating STM8 with STM8 discovery board (STM8S105C6).

I am using the user bootloader provided with AN2659. It is located at the starting of flash memory (memory address range from 0x8000 to 0x8FFF). For this, I use the linker options CODESTART(0x8000) and CODESIZE(0x1000). The interrupt vector table is redirected to 0x9000 memory address thanks to the file I found on this forum: redirect_irq_table.c. At the end of execution, the bootloader is jumping at the absolute address 0x9080.

I also have an demonstration application. It is managed in a separate project. There, the linker options are INTVECTOR(0x9000), to create the shifted interrupt vector table, and CODESTART(0x9000).
My entry function is declared as:

at 0x9080 void main_application(void)
{
 ...
}

Interrupt vector are declared the usual way:

void TRAP_IRQHandler(void) trap
{}

void TLI_IRQHandler(void) interrupt 0
{}

...

Here is my problem: when I compile the application, I got the error ***WARNING 4 : CODE SPACE MEMORY OVERLAP ADDRESS: 8FFC.

What am I doing wrong? Why is the 8FFC address used in application project while it is not supposed to use any address before 0x9000?

For information : I upload the bootloader in the uC with STVP, then I am using Flash Loader Demonstrator to program the application software through IAP. Flash Loader can interract with the bootloader, then I choose the map file STM8_32K(user-bootloader) (provided in AN2659), and finaly choose the .hex file.
If I choose the option Erase necessary pages, then the download immediately fails with message FAIL: Unable to erase flash. If I choose not to erase anything, the download is successful, application is running fine, and it seems I can re-download application again. However, I am concerned by the warning about 8FFC, and not being able to erase application flash sectors.

Thank you in advance for your help,

Piet

Extra : test if the forum bug linker to the " character?

+1
0
-1
September 25, 2015 - 7:54am
Sernatec GmbH

Hi Piet,

we are facing exactly the same problem. Download of application works but erase doesn't. The same linker warning ***WARNING 4 : CODE SPACE MEMORY OVERLAP ADDRESS: 8FFC.

Did you manage to solve this issue?

Regards, Paul

+1
0
-1
September 28, 2015 - 2:13pm
Etienne Cassin

Dear Paul,

Hello,

We would like to help you as quickly as possible on this issue, but we need to have more informations about the problem before we can help further.

In order to understand the issue you are facing, we need the following information about your configuration:
- Version of Windows: At a command prompt type the following command: "systeminfo.exe", which gives you a system report. We need the full "Operating System" and "Version" from the report.
- Version of Ride7 and RKit that you are using. You can get these from the Ride7 "Help | About" dialog box.
- Your Ride7 serial key or your RLink/Primer/Open4 serial number.
Please check from the Raisonance downloads page at http://support.raisonance.com that you are using the latest version of the tools.

Notes:
1) Raisonance toolsets and Ride7 operate on Windows 7 (32 and 64-bit), Windows Vista (32 and 64-bit) and Windows XP SP3 (32-bit only). Other versions of Windows, including Windows 2000, Windows XP 64-bit and Windows Server, are not supported.
2) Only native versions of Windows are supported. Emulators such as VMware, QEMU, Citrix, Wine, Xen (or others) are not supported.

Concerning your particular problem:
- Provide the steps you followed to raise the error.
- The precise error message you received, and which tool produced it. If possible, a screenshot of the message (using the PrtScr keyboard key) is helpful.
- Does the problem occur when using the examples given with Ride7 (from the Ride7 installation directory, default being "C:\Program Files\Raisonance\Ride\Examples\")?
- Could you send  your project to (we can sign a NDA form if needed)?

Thank you.

Regards,