Keil error l6002u

Hello all, I am working on STM32L0 Nucleo board. I am interfacing board with SPI protocol to LoRa module. code is ok but when I am compiling the code it id

But you aren’t asking for help in any way that is meaningful to
anyone else.

You ask «»LoRa_Tx_L0LoRa_Tx_L0.axf: error: L6002U: Could not open
file lora_tx_l0main.o: No such file or directory».

Please help me.. to solve the problem..»

From your question, it’s obvious that the linker can’t open the
file. Which should be obvious to you too.

Based on the large amount of details you have posted, only you can
figure out why it can’t open the file.

If it isn’t there, then the followup questions would be — doesn’t
it exist at all, or does it exist at some other location. None of us
can answer that.

If it doesn’t exist, then the followup questions would be:
— isn’t the compiler trying to produce the file? Only you have the
project file to check.
— is the compiler trying, but failing? Only you have the build log
output to check.
— is the compiler managing, but storing at a different location? Only
you have the project file and build log output to check.

There is zero indication in your post that you have actually
attempted to check why the linker can’t open the file.

This forum is not intended to be professional support by Keil
support staff. It’s intended for information sharing with other end
users of Keil tools.

We have no interest in bending our backs backwards to try to draw
out information from a person who don’t bother to think for 10
seconds «what information would be valuable/required for anyone to be
able to help me?».

You really must have already realized that we are not sitting
beside you and seeing the same thing you see. All we see is what you
post. And you post basically nothing of value since the only valuable
information is that the file can’t be found which should be just as
informative to you.

Your question is: «my car doesn’t start — why not?». We don’t know
if you have put in the ignition key. We don’t know if the lights does
come on on the dashboard when you turn the ignition key. We don’t
know if you hear any cranking. We don’t know if you have run out of
fuel. We don’t know if you have just run the car through 1 meter of
standing water. So such a question with no other facts would be
rather frustrating to try to respond to.

So — never ask questions that is frustrating to even attempt to
answer. Always start to think yourself, and then write a meaningful
question with meaningful facts supplied. The best thing with spending
a bit of time considering what information might be needed when
asking the question is that you are likely to be able to actually
solve your own problem by just collecting and looking at the
available facts you have access to.

«In my project main.o file is not generating.. it is giving error
during linking process.. «

The reason why I asked if you understand the difference between
compilation and linking is because it’s the compiler that will
convert main.c or main.cpp into main.o. The linker will run at a
later step and try to open main.o and possibly a number of other
files when creating the actual binary/executable. This should give a
big hint that it isn’t enough to see this linker error message and be
able to solve the problem. You either asked the linker to link a file
that shouldn’t have existed in the first place. Or your project build
have already failed at an earlier stage — a stage we can’t know
anything about since you haven’t mentioned anything.

In you later post you mention you made changes. You didn’t mention
what changes. So only you would have the information to consider how
these changes would affect the build process. If you made changes to
the project itself (such as changing file names/paths/…) or if you
made changes to the source code that might have resulted in
compilation errors. So it all falls back on you.

Форум РадиоКот :: Просмотр темы — STM32 новичку в ARM что к чему


Автор:  mrFox [ Пн мар 18, 2013 16:32:01 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

может кто знает
видел в продаже дешевую плату STM8SVL-DISCOVERY для stm8 + stlink
подойдет ли stlink от нее для программирования/отладки stm32


Автор:  ut1wpr [ Пн мар 18, 2013 17:11:22 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

mrFox писал(а):

может кто знает
видел в продаже дешевую плату STM8SVL-DISCOVERY для stm8 + stlink
подойдет ли stlink от нее для программирования/отладки stm32

Нет.


Автор:  wellcom [ Сб мар 23, 2013 20:57:02 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

подскажите/ткните носом, в каком из даташитов/мануалов прочитать/посчитать количество страниц памяти STM32F103C4 (16kb Flash). Смотрел какие то д-ты без названия по STM32F103x4, STM32F103x6 но таки ничего не нашел. Англ почти не знаю. Как правильно посчитать начало страницы? :(


Автор:  drakon [ Сб мар 23, 2013 21:07:01 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

смотрите в STM32F103C4 Reference Manual. не знаю как на вашем, но у stm32f100rbt6 1 страница это 1kb.


Автор:  wellcom [ Сб мар 23, 2013 21:14:01 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

спасибо, нашел. PM0075: STM32F10xxx Flash memory microcontrollers там есть таблица с адресами страниц.


Автор:  Кислый в0ждь [ Вс мар 24, 2013 19:11:24 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

а можно ли через STM32F4DISCOVERY прошивать отдельные МК (stm32f407) или нужно будет покупать отдельнго программатор для этого ?


Автор:  ChipKiller [ Вс мар 24, 2013 23:29:52 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

Цитата:

а можно ли через STM32F4DISCOVERY прошивать отдельные МК (stm32f407)

… можно,… и вполне можно без STM32F4DISCOVERY и программатора ….


Автор:  wellcom [ Пн мар 25, 2013 17:49:45 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

Доброго мяу суток. Подскажите плз, какова правильна последовательность калибровки АЦП, т.е какова поочередность установки бит ADON, RSTCAL, CAL регистра CR2 ???


Автор:  zebrox [ Вт мар 26, 2013 17:23:26 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

Всем привет,

поставил микровижен 4,07а. И почему-то ни один проект из Examples не комплируется.

Build target ‘STM32F103 Simulator’
compiling system_stm32f10x.c…
compiling Blinky.c…
linking…
.ObjBlinky.axf: error: L6002U: Could not open file .objsystem_stm32f10x.o: No such file or directory
Target not created

Во время компиляции летят ексепшены «An unhandled win32 exception occurred in armcc.exe [3632]»
(
точнее после каждой из этих строк:
— compiling system_stm32f10x.c…
— compiling Blinky.c…
)
всего два.

Гугель ничего внятного на эту тему не говорит…
Может кто-то сталкивался с такой проблемой?


Автор:  DX168B [ Вт мар 26, 2013 19:52:59 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

metcenger писал(а):

разобрался- заработало.
Причина- был выбран в проекте язык С++, при смене на С- все работает.

А почему так?

А потому что обработчик прерывания надо было занести в

Код:


extern 
«C»
{
      void BLABLABLA_IRQHandler(void)
     {
            blablabla;
     }
};
 

Указатели на обработчики прерываний (таблица адресов в начале флеша) определены в файле startup_stm32XXX.s
и при этом, в стандарте, не совместимом с C++ (к тому-же, объявлены как PUBWEAK). Решается эта проблема так, как было указано выше.
Но можно и так, для лучшей гибкости:

Код:

extern «C» {
void BLABLABLA_IRQHandler(void)
{
        blablabla;
}
};
 

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

zebrox писал(а):

Всем привет,

поставил микровижен 4,07а. И почему-то ни один проект из Examples не комплируется.

Build target ‘STM32F103 Simulator’
compiling system_stm32f10x.c…
compiling Blinky.c…
linking…
.ObjBlinky.axf: error: L6002U: Could not open file .objsystem_stm32f10x.o: No such file or directory
Target not created

Во время компиляции летят ексепшены «An unhandled win32 exception occurred in armcc.exe [3632]»
(
точнее после каждой из этих строк:
— compiling system_stm32f10x.c…
— compiling Blinky.c…
)
всего два.

Гугель ничего внятного на эту тему не говорит…
Может кто-то сталкивался с такой проблемой?

Явно ошибка линковщика. Файл system_stm32f10x.c не собрался или компилятор не туда положил собранный объектный файл system_stm32f10x.o
Разбирайтесь в параметрах сборкикомпиляции.
Если в пути к папке проекта есть папки с русскими символами и/или с пробелами в названиях, то стоит поместить папку с проектом куда-нибудь в корень диска и снова попробовать собрать.

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

ChipKiller писал(а):

…. и вполне можно без STM32F4DISCOVERY и программатора ….

Но вот только внутрисхемная отладка не будет доступна.
У дискавери отладчик на борту. Кстати, появилось желание собрать отладчик на отдельной плате.
Кроме SWD, на чипе отладчика (MCU STM32F103) есть еще и обычный JTAG. На дискавери, выводы JTAG никуда не выходят.


Автор:  zebrox [ Вт мар 26, 2013 22:48:26 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

DX168B, спасибо за совет.
К сожалению, ничего не изменилось.
Те-же ошибки вываливаются.

Пока обратился к «докторам» за помощью, похоже таблэтка неправильная.


Автор:  DX168B [ Ср мар 27, 2013 14:08:59 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

А, ну вполне может быть. Может лучше поставить CooCox или Eclipse (они бесплатные). Можно IAR EWARM 6.30 или Keil (платные).


Автор:  zebrox [ Ср мар 27, 2013 15:08:58 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

Так вот это кейл и ругается (точнее его микровижен).


Автор:  Vov123 [ Ср мар 27, 2013 22:40:22 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

Ну так найди в сети быстрый старт с кайлом,пропиши подключенные файлы проекта,раскомментируй нужные строки в хидерах или пропиши дефайны в настройках.А не хочешь геморроя используй CooCox,там всё просто.

http://chipspace.ru/stm32-discovery-st-link/


Автор:  coredumped [ Чт мар 28, 2013 07:59:56 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

Цитата:

Во время компиляции летят ексепшены «An unhandled win32 exception occurred in armcc.exe [3632]»

Вот причина всех бед. У Вас компилятор вываливается и не собирает файлы. Попробуйте скачать свежий Keil (я брал на рутрекер.орг) и переустановить.
Еще момент — никаких русских букав в названиях имен файлов или папок быть не должно — Keil этого не любит.


Автор:  zebrox [ Чт мар 28, 2013 13:49:01 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

Ув. coredumped,

Я именно там и скачал, вот эту «Keil RealView Microcontroller Development Kit v4.70a + Docs» от пользователя toweroff.
Вот с ней и мучаюсь…

Есть еще раздача «Keil RealView Microcontroller Development Kit v4.70 4.70 x86 x64 [2013, ENG]», от пользователя Easyrider83.
сейчас пробую ее.

Скажите пожалуйста, а каую версию Кейла Вы устанавливали?


Автор:  menzoda [ Чт мар 28, 2013 15:57:00 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

coredumped писал(а):

никаких русских букв в названиях имен файлов или папок быть не должно — Keil этого не любит.

Как же дико меня раздражает это! На дворе 2013 год! Всякие Visual Studio уже давно поддерживают UTF-8, вкладки, гибко настраиваемый интерфейс, панели, сниппеты, автодополнение, браузеры функций, любые пути к файлам, ДА ВСЕГО НЕ ПЕРЕЧИСЛИТЬ! А эти Кейлы с Иарами да МПлабами так и не выросли из 90-х годов, при этом стоят они, как несколько студий! Чтобы они там все поносом изошлись. Извините.


Автор:  zebrox [ Чт мар 28, 2013 16:59:55 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

Попробовал версию 4.7. Результат один и тот-же.
Компилятор вываливается.

Удаление, переустановка не помогают.

@Vov123, спасибо за ссылку.
Только вот не пойму один вопрос.

Автор статьи прописывает пути к каталогам

так вот, после установки кейла, у меня таких путей в папке С:Keil нету.
Вообще нету папки Libraries.

Каталог АРМ выглядит так:

В каталоге CMSIS только вот это:

Меня это наводит на мысль, что в установке чего-то нехватает.
Может CMSIS необходимо устанавливать отдельно? Что-то немогу найти инсталяху…


Автор:  zebrox [ Чт мар 28, 2013 18:57:17 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

Млин, уже не знаю что делать…
Начинаю думать, что кейлу не нравится винда с русским муи…


Автор:  Chipspace [ Чт мар 28, 2013 19:48:59 ]
Заголовок сообщения:  Re: STM32 новичку в ARM что к чему

Это пути к библиотекам STMicroelectronics. Можно скачать с их официального сайта, выбрав нужное семейство микроконтроллеров. Адреса в настройках Keil будут именно те, по которым у вас расположены эти библиотеки.


Страница 31 из 418 Часовой пояс: UTC + 3 часа
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/

Skip to main content

Forum for Electronics

Forum for Electronics

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals… and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

  • Digital Design and Embedded Programming

  • Microcontrollers

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Trying to create project skeleton in Keil uVision — get compilation errors


  • Thread starter

    MarkoSiroki


  • Start date

    Apr 10, 2017

Status
Not open for further replies.

  • #1

Dear Sirs and Madams!

I am trying to build Keil uVision project with following simplest possible main.c file:

#include "stm32f10x.h"


int main(void)
{
    while(1)
    {
    }
}

Here is project screenshot (target cpu is STM32F103RCT6 on custom board, connected to pc via ST-LINK/V2):

keilProject.png
And when I try to build project, I get following errors:

*** Using Compiler 'V5.06 update 4 (build 422)', folder: 'C:Keil_v5ARMARMCCBin'
Rebuild target 'Target 1'
creating preprocessor file for main.c...
compiling main.c...
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(303): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(477): warning:  #12-D: parsing restarts here after previous syntax error
  } IRQn_Type;
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(8302): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory
    #include "stm32f10x_conf.h"
main.c: 1 warning, 2 errors
creating preprocessor file for misc.c...
compiling misc.c...
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(303): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(477): warning:  #12-D: parsing restarts here after previous syntax error
  } IRQn_Type;
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(8302): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory
    #include "stm32f10x_conf.h"
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceStdPeriph_Driversrcmisc.c: 1 warning, 2 errors
creating preprocessor file for stm32f10x_gpio.c...
compiling stm32f10x_gpio.c...
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(303): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(477): warning:  #12-D: parsing restarts here after previous syntax error
  } IRQn_Type;
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(8302): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory
    #include "stm32f10x_conf.h"
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceStdPeriph_Driversrcstm32f10x_gpio.c: 1 warning, 2 errors
creating preprocessor file for stm32f10x_i2c.c...
compiling stm32f10x_i2c.c...
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(303): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(477): warning:  #12-D: parsing restarts here after previous syntax error
  } IRQn_Type;
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(8302): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory
    #include "stm32f10x_conf.h"
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceStdPeriph_Driversrcstm32f10x_i2c.c: 1 warning, 2 errors
creating preprocessor file for stm32f10x_rcc.c...
compiling stm32f10x_rcc.c...
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(303): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(477): warning:  #12-D: parsing restarts here after previous syntax error
  } IRQn_Type;
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(8302): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory
    #include "stm32f10x_conf.h"
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceStdPeriph_Driversrcstm32f10x_rcc.c: 1 warning, 2 errors
creating preprocessor file for stm32f10x_spi.c...
compiling stm32f10x_spi.c...
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(303): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(477): warning:  #12-D: parsing restarts here after previous syntax error
  } IRQn_Type;
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(8302): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory
    #include "stm32f10x_conf.h"
C:Keil_v5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceStdPeriph_Driversrcstm32f10x_spi.c: 1 warning, 2 errors
linking...
.Objectstest007.axf: error: L6002U: Could not open file .objectsmain.o: No such file or directory
Finished: 0 information, 0 warning, 0 error and 1 fatal error messages.
".Objectstest007.axf" - 13 Error(s), 6 Warning(s).
Target not created.
Build Time Elapsed:  00:00:06
  
Batch-Build summary: 0 succeeded, 1 failed, 0 skipped - Time Elapsed: 00:00:07

Why I cannot successfully build project?

Sincerely,
M.

  • #2

Linker problem. It can’t find files. Why don’t you read the output?

  • #3

Ok, but I am new to Keil IDE and where can I set needed linker files?

  • #4

Status
Not open for further replies.

Similar threads

  • Digital Design and Embedded Programming

  • Microcontrollers

  • This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.

Понравилась статья? Поделить с друзьями:
  • Keil error 35 undefined line number
  • Kega fusion error saving state
  • Keeweb network error
  • Keepass как изменить язык
  • Keepass как изменить пароль