|
||||||||
|
MCU User Forum
![]() USB
![]() HID Example Blinky: ERROR L107: ADDRESS SPACE OVERFLOW
|
| next newest topic | next oldest topic |
| Author | Topic: HID Example Blinky: ERROR L107: ADDRESS SPACE OVERFLOW |
|
Wauschi New Member |
I have tried to compile the HID Example "Blinky" for the F340. After applying all changes according the ReadMe.txt the project compiles fine (Keil 8.01). But the linker refused... *** ERROR L107: ADDRESS SPACE OVERFLOW followed by several more linker errors. Has anybody experienced or solved something similar? BR, [This message has been edited by Wauschi (edited September 20, 2006).] IP: Logged |
|
Tsuneo Member |
"After applying all changes according the ReadMe.txt" Did you use the example in this folder? C:\SiLabs\MCU\Examples\C8051F34x\USB_HID\ Then no need to change it. Tsuneo IP: Logged |
|
Wauschi New Member |
Hello Tsuneo, I know there is nothing to change. I just wanted to somehow state I have even read the ReadMe but it does not work. I just copied the folder to c:\ and everything compiled fine. It just does not link. Maybe I should try it with a different compiler or linker version. BR, IP: Logged |
|
Tsuneo Member |
Surely, the USB_HID Blinky_Example is compiled by Keil eval version from SiLabs, but not in full version greater than Keil v8.0 Modify it as follows. This modification fixes at least linker errors. Add 'code' to the declaration of descriptors F3xx_USB0_Descriptor.c Match the extern declaration to the original. F3xx_USB0_Standard_Requests.c // Additional declarations for HID: Tsuneo [This message has been edited by Tsuneo (edited September 21, 2006).] IP: Logged |
|
BillD Administrator |
We have also observed the same behavior recently. We think that there must have been some change in the way that Keil's compiler handles the "const" declaration when you run out of RAM space, but have not been able to find documentation about it on Keil's web site yet. Tsuneo's recommendation on declaring the "const" variables in code space is the best way to fix this error when compiling with the newest Keil tools. We will be modifying the code example in this way for future releases. -Bill Durbin IP: Logged |
|
Tsuneo Member |
From Keil on-line manual, http://www.keil.com/support/man/docs/c51/c51_le_const.htm Const Tsuneo [This message has been edited by Tsuneo (edited September 22, 2006).] IP: Logged |
|
Wauschi New Member |
This forum is just great! After using "Find in Files" and replacing 'const' with 'code' the project compiles perfectly. (Just the 'const' belonging to the descriptors which I think they should be located in the ROM). One must not forget to also add 'code' at the declaration or you will get: "ERROR L103: EXTERNAL ATTRIBUT DO NOT MATCH PUBLIC" Thank you, IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() |
|
Have you seen our MCU Knowledge Base?
|
| |||||
|
| |||||