Всем привет!
Недавно пришла STM32F3Discovery и я начал по немногу разбираться. Скачал Библиотеку с сайта st.com на мой микроконтроллер. И решил скомпилировать проект из примеров которые приложены к библиотеке. Делал как написано в мануале: скопировал из папки examples с заменой в папку templates нужный мне пример и добавил папку libraries.
Пробую компилировать и Keil выдает мне следующее:
Rebuild target ‘STM32F303xC’
assembling startup_stm32f302x8.s…
assembling startup_stm32f303xc.s…
assembling startup_stm32f303xe.s…
assembling startup_stm32f334x8.s…
compiling stm32f30x_adc.c…
compiling stm32f30x_can.c…
compiling stm32f30x_dac.c…
compiling stm32f30x_dbgmcu.c…
compiling stm32f30x_dma.c…
compiling stm32f30x_exti.c…
compiling stm32f30x_flash.c…
compiling stm32f30x_fmc.c…
compiling stm32f30x_gpio.c…
compiling stm32f30x_hrtim.c…
compiling stm32f30x_i2c.c…
compiling stm32f30x_iwdg.c…
compiling stm32f30x_misc.c…
compiling stm32f30x_opamp.c…
compiling stm32f30x_pwr.c…
compiling stm32f30x_rcc.c…
compiling stm32f30x_rtc.c…
compiling stm32f30x_spi.c…
compiling stm32f30x_syscfg.c…
compiling stm32f30x_tim.c…
compiling stm32f30x_usart.c…
compiling stm32f30x_wwdg.c…
compiling stm32f30x_comp.c…
compiling stm32f30x_crc.c…
compiling main.c…
compiling stm32f30x_it.c…
compiling system_stm32f30x.c…
linking…
STM32F303xCSTM32F303xC.sct(7): error: L6235E: More than one section matches selector — cannot all be FIRST/LAST.
Not enough information to list image symbols.
Not enough information to list the image map.
Finished: 2 information, 0 warning and 1 error messages.
«STM32F303xCSTM32F303xC.axf» — 1 Error(s), 0 Warning(s).
Target not created
Как я понял файл с ошибкой STM32F303xC.sct создаётся автоматически.
Кто сталкивался подскажите как это решать?
Поиск в интернете ничего не дал… или я ищу как-то не так))
Если создать проект в Кейл автоматически без библиотеки StdPeriph то проект компилируется нормально. Уже даже светодиодами поигрался, но я хочу работать именно через библиотеку StdPeriph.
Пол дня про мучался с ошибкой и стоило только написать на форуме как ошибка ушла)))
Оказывается при компиляции примера в проекте была создана группа MDK-ARM и в неё добавлены четыре файла: startup_stm32f302x8.s, startup_stm32f303xc.s, startup_stm32f303xe.s, startup_stm32f334x8.s.
А файл startup_… должен быть один в проекте. Я удалил все кроме одного. Оставил только startup_stm32f303xc.s и всё скомпилировалось без ошибок)))
Решил здесь же ещё добавить следующее. Не хотел прошиваться микроконтроллер вылезали ошибки:
No Algorithm found for: 08000000H — 0800042BH
Erase skipped!
Error: Flash Download failed — «Cortex-M4»
Как их устранить: заходим Projetc->Options for Target… (Alt-F7) ->Debug->Settings(который правее)->Flash Download
и тут в поле Programming Algorithm у меня было пусто.
Надо нажать Add и выбрать STM32F3xx Flash 256k нажать Add, Ok, Ok и всё зальётся нормально.
Изменено 25 июня, 2015 пользователем Ellissar
Содержание
- Error l6235e more than one section matches selector cannot all be first last
- more than one section matches selector — cannot all be FIRST/LAST compilation error
- Top Replies
- Русские Блоги
- Git-error: dst refspec branch matches more than one
- Как была обнаружена проблема
- Ответь первым
- Смотрите здесь, чтобы проверить правду
- У меня болезнь, в которую я должен попытаться поверить
Error l6235e more than one section matches selector cannot all be first last
In CubeMX my project has the option «Dual Core Boot Mode» = «Both CPUs booting at once». After generating code, I compile it in Keil. Linker complains:
Build target ‘new from scratch Eval_CM7’
linking.
new from scratch Eval_CM7new from scratch Eval_CM7.sct(7): error: L6235E: More than one section matches selector — cannot all be FIRST/LAST.
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 1 error messages.
«new from scratch Eval_CM7new from scratch Eval_CM7.axf» — 1 Error(s), 0 Warning(s).
Should I fix something in CubeMX or in Keil options?
Create a *very* simple project. For example, have each core toggle a pin that you would put an LED on (the embedded «hello world»).
I suspect (have zero direct cubeMX experience, that keil has command-line options that will fix the problem.
Thank you for support. I tried few very simple projects in CubeMX on DualCore STM32H747 — the same problem happens in Keil: conflict in .sct file. This file is generated by Keil, not CubeMX.
I have positive experience with CubeMX + Keil on the SingleCore STM32F745, it works well with all ADCs DACs UART etc. It’s .sct file is:
; *** Scatter-Loading Description File generated by uVision ***
LR_IROM1 0x08000000 0x00100000 < ; load region size_region
*.o (RESET, +First)
RW_IRAM1 0x20000000 0x00040000 < ; RW data
Fo r the DualCore STM32H747 M7 core the .sct file looks the same, especially the problem 7th line in bold:
; *** Scatter-Loading Description File generated by uVision ***
LR_IROM1 0x08000000 0x00100000 < ; load region size_region
*.o (RESET, +First)
RW_IRAM1 0x20000000 0x20020000< ; RW data
There are two .sct files, for each core. This is the M4 .sct file:
; *** Scatter-Loading Description File generated by uVision ***
LR_IROM1 0x08100000 0x00100000 < ; load region size_region
*.o (RESET, +First)
RW_IRAM1 0x10000000 0x10048000< ; RW data
Linker tab in Target Options has these lines:
—cpu Cortex-M4.fp *.o
—library_type=microlib —strict —scatter «new from scratch Eval_CM4new from scratch Eval_CM4.sct»
—summary_stderr —info summarysizes —map —xref —callgraph —symbols
—info sizes —info totals —info unused —info veneers
—list «new from scratch Eval_CM4.map»
-o «new from scratch Eval_CM4new from scratch Eval_CM4.axf»
Addresses in .sct files are different, but the problem 7th line is always the same. I guess, Linker is confused which core goes first? No problem for the SingleCore MCU. How to edit this? And what’s the purpose of .sct file?
Not having the tools..
I would look at the command-line options for all of the tools, esp the ones that generates the .sct files.
Have you tried editing a .sct file and changing +First to +Second ?
You can also call customer service at Keil.
a lot of reading, and no any simple working example for the DualCore MCU.
L6235E : More than one section matches selector — cannot all be FIRST/LAST.
See the following in the armlink User Guide :
quote: If you are not using scatter-loading, use the —first and —last linker command-line options to place input sections.
So — are you using the —first options? Have you tried using —last on the second file compile?
Not clear to me when you have three compiled units &7 want to link them.
new from scratch Eval_CM7new from scratch Eval_CM7.axf: Error: L6200E: Symbol ADC3_IRQHandler multiply defined (by startup_stm32h747xx_cm7.o and startup_stm32h747xx_cm4.o).
new from scratch Eval_CM7new from scratch Eval_CM7.axf: Error: L6200E: Symbol ADC_IRQHandler multiply defined (by startup_stm32h747xx_cm7.o and startup_stm32h747xx_cm4.o).
I guess: the same parameter is declared twice, in CM4 and CM7. May be problem is here. Apparently for the working example, both .sct files use option First, only memory layout is different (that’s what I don’t understand):
LR_IROM1 0x08100000 0x00100000 < ; load region size_region
RW_IRAM1 0x10000000 0x00040000 < ; RW data
LR_IROM1 0x08000000 0x00100000 < ; load region size_region
RW_IRAM1 0x24000000 0x00080000 < ; RW data
i would call keil — it’s their toolchain.
This also has the flavor of something «minor» is missing — the solution is missing but «minor», in the sense when you find the solution, it will be a single small detail.
and solution was: in Keil Application/MDK-ARM folder (which had two files), delete this M4 file
and keep this M7 file
They are exactly the same. Who put two of them, not sure, maybe CubeMX? All other non-CubeMX examples have only single file
Yep — one of those problems creating forehead-shaped holes that have a simple solution. The Deamon Murphy has a 3-day attention span.
Thasnks for letting us know what the solution was.
My experience is not with this particular processor, so this is speculation.
I have been using the STM32WB55 dual core processor both on the eval boards and a project.
When I used CubeMX to generate base code, it would not run properly. However, the non-CubeMX example code would run properly.
I compared the load files (*.ld) and found that the load addresses were different in the examples and the generated files.
I suggest that you try one of the examples to see that they work and then use the LD file from the example. Be careful, though. When CubeMX generates code, it also writes over the ld file, so you will need to copy the correct ld file over the generated one.
Just a guess that you have the same scenario. Worth a check.
Thanks for the support. Yes, I tried example codes: Dual-Core Blinky and FPU Fractals — the only two examples available today for STM32H747. They both are non-CubeMX. I compiled them, loaded, they work great. They have .ld files! But my CubeMX-initiated project, after compilation in Keil, doesn’t have .ld files.
BTW those working non-CubeMX initiated examples, also have .sct files, with the same 7th line, which Keil complains about in my project:
*.o (RESET, +First)
although these blocks are different:
RW_IRAM1 0x38000000 0x00010000 < ; RW data
RW_IRAM2 0x24000000 0x00080000 <
Is .ld file mandatory? And what’s the purpose of this code above in .sct files?
Источник
more than one section matches selector — cannot all be FIRST/LAST compilation error
Dear all, I wanted go a step forward on BLE services and characteristics trying include two characteristics on a BLE
service, I think one of best examples is Github ble_app_lbs_master. The example was downloaded for SDK 8.0.0, it seems there are not updated
exampe for SDK 9.0.0, anyway CMSIS and CMSIS Device components were missing. I Just added these components but after compilation one error is
remaining «more than one section matches selector — cannot all be FIRST/LAST». It seems the problem is on pstorage.c and pstorage_platform.h, parameter PSTORAGE_MAX_APPLICATIONS that has value 2 anybody can help? Thanks and regards. Luis Tenedorio Globaltronic SA
This is an error I’ve seen when you have two arm_startup_nrf51.s files in your project. Could you verify if you have two of these (one in «Device» from packs, and one in «Source code» for instance) and if yes; remove one of them?
Dear Hakon, first I would like thank you your support for my e-mail. I will repeat here:
Hi Luis, This is an error I’ve seen when you have two arm_startup_nrf51.s files in your project. Could you verify if you have two of these (one in «Device» from packs, and one in «Source code» for instance) and if yes; remove one of them?
Yes Hakon, you have reason, there was two arm_startup_nrf51.s files, I just removed one of them (startup flolder, not CMSIS Device folder) and problem is cleared, now I have no errors but after flash programming nRFgo Studio says that application must be programmed without softdevice alone previous programming, OK, programm was flashed without problems but after didn’t appears on Master Control Panel, can you help?
Dear Hakon, first I would like thank you your support for my e-mail. I will repeat here:
Hi Luis, This is an error I’ve seen when you have two arm_startup_nrf51.s files in your project. Could you verify if you have two of these (one in «Device» from packs, and one in «Source code» for instance) and if yes; remove one of them?
Yes Hakon, you have reason, there was two arm_startup_nrf51.s files, I just removed one of them (startup flolder, not CMSIS Device folder) and problem is cleared, now I have no errors but after flash programming nRFgo Studio says that application must be programmed without softdevice alone previous programming, OK, programm was flashed without problems but after didn’t appears on Master Control Panel, can you help?
You next question is completely different question that the one you asked. Håkon’s answer helped you, so please accept his answer and open a new question for the problem you are facing now.
OK Aryan, thanks, I’ll open a new question soon. Regards
Источник
Русские Блоги
Git-error: dst refspec branch matches more than one
Как была обнаружена проблема
Сегодня я разобрал старый проект и обнаружил, что на ранней стадии осталось много бесполезных веток.Поэтому, если я был немного обсессивно-компульсивным, я удалил его и удалил следующую ошибку:
В то время я был в шоке, думая, что случайно что-то не так манипулировал, но этого не произошло. Удаление других веток было нормальным, то есть только одна из веток не работала.
Затем я погуглил эту проблему, и не я был тем, кто столкнулся с ошибкой (эта умственная деятельность действительно происходит каждый раз . )
error: dst refspec dev_test matches more than one.
Когда ветвь и тег с тем же именем существуют в удаленном хранилище одновременно, эта проблема возникает, когда ветка и тег с этим именем работают без указания абсолютного пути.
Ответь первым
Решение очень простое. Укажите абсолютный путь к объекту операции для точной работы
Объект | путь |
---|---|
branch | refs/heads/branch_name |
tag | refs/tags/tag_name |
// Удаляем тег dev_test
git push origin :refs/tags/dev_test
Смотрите здесь, чтобы проверить правду
error: dst refspec dev_test matches more than one.
Фактически, если вы внимательно посмотрите на возвращаемое сообщение об ошибке, вы в основном его поймете. (Да, вообще-то я тогда этого не понимал)
В подсказке выше указано, что причина сбоя указана в спецификации, dev_test Это имя соответствует более чем одному.
Итак, я пошел на проект .git/refs Я взглянул на это, это действительно так
У меня болезнь, в которую я должен попытаться поверить
Я признаю, что у меня болезнь, болезнь, в которую я должен попытаться поверить, особенно, я только недавно начал использовать командную строку git, и мне всегда хочется напечатать ее сам. Это очень хорошо.
Я собираюсь создать dev_test Ветки и теги, а затем удалите его, чтобы попытаться воспроизвести ошибку.
Воспроизведенная командная строка на мой взгляд выглядит так:
Дело в том, что эта ошибка возникла на шаге 4, а именно:
Тогда мне действительно любопытно, как наша разработка достигла этого, отправив ту же ветку и тег на удаленный компьютер?
Обратитесь к решению проблемы, я попытался использовать путь завершения для отправки, и он был успешным. Команда выглядит следующим образом:
Ну вот, удалите пульт ниже dev_test Командование, я бровью знаю, что 100% ошибок будут сообщены.
В процессе воспроизведения проблемы понимание git стало немного яснее.
Во-первых, git действительно умен, когда мы используем git push origin Будет автоматически судить Является ли это веткой или тегом в локальной версии, а затем нажмите соответствующее местоположение соответственно.
Во-вторых, впервые .git Структура каталогов и соответствующий контент в папке вызывают очень сильное любопытство.Я действительно хочу знать, как git управляет кодом таким упорядоченным образом и настолько удобен в использовании.
В-третьих, Линус Торвальдс настолько силен.
После теста попытался удалить удаленный склад для тестирования dev_test Branch, но обнаружена новая ошибка, а именно:
Причина в том, что dev_test Это ветвь удаленного хранилища по умолчанию, и ее нельзя удалить. Перейдите на github и измените ветку по умолчанию удаленного хранилища.
Источник
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
mbed/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_MICRO/stm32l152re.sct(34): error: L6235E: More than one section matches selector - cannot all be FIRST/LAST.
So how about telling me which sections they
are?!
I have exported an mbed project from the online compiler,
and simply opened it in uVision-4 and tried to build it.
I have made no changes at all.
This is the stm32l152re.sct file — error line
highlighted:
; STM32L152RE: 512KB FLASH + 80KB SRAM LR_IROM1 0x08000000 0x80000 { ; load region size_region ER_IROM1 0x08000000 0x80000 { ; load address = execution address *.o (RESET, +First) *(InRoot$$Sections) .ANY (+RO) } ; 73 vectors = 292 bytes (0x124) to be reserved in RAM RW_IRAM1 (0x20000000+0x124) (0x14000-0x124) { ; RW data .ANY (+RW +ZI) } }
Any hints on how to find the offending Sections?
-
Not sure exactly how best to search.
But it complains that more than one source file contains «AREA
RESET».For example a *.s file with a line:
AREA RESET, DATA, READONLY
What *.o files will match if you do grep for RESET?
-
Well, just deleting the Scatter file gives me a load of «Multiple
Definition» errors:.buildNucleo_printf.axf: Error: L6200E: Symbol __Vectors_Size multiply defined (by startup_stm32l152xe.o and startup_stm32l1xx_hd.o). : : .buildNucleo_printf.axf: Error: L6200E: Symbol HardFault_Handler multiply defined (by startup_stm32l152xe.o and startup_stm32l1xx_hd.o). : : .buildNucleo_printf.axf: Error: L6200E: Symbol ADC1_IRQHandler multiply defined (by startup_stm32l152xe.o and startup_stm32l1xx_hd.o). .buildNucleo_printf.axf: Error: L6200E: Symbol COMP_ACQ_IRQHandler multiply defined (by startup_stm32l152xe.o and startup_stm32l1xx_hd.o). .buildNucleo_printf.axf: Error: L6200E: Symbol COMP_IRQHandler multiply defined (by startup_stm32l152xe.o and startup_stm32l1xx_hd.o). .buildNucleo_printf.axf: Error: L6200E: Symbol DAC_IRQHandler multiply defined (by startup_stm32l152xe.o and startup_stm32l1xx_hd.o). .buildNucleo_printf.axf: Error: L6200E: Symbol DMA1_Channel1_IRQHandler multiply defined (by startup_stm32l152xe.o and startup_stm32l1xx_hd.o). : :
So there we have it: startup_stm32l152xe.o and
startup_stm32l1xx_hd.o are, presumably, the ones causing the
duplicates.So why couldn’t the L6235E message have told me this??
Grrrr
In CubeMX my project has the option «Dual Core Boot Mode» = «Both CPUs booting at once». After generating code, I compile it in Keil. Linker complains:
«
Build target ‘new from scratch Eval_CM7’
linking…
new from scratch Eval_CM7new from scratch Eval_CM7.sct(7): error: L6235E: More than one section matches selector — cannot all be FIRST/LAST.
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 1 error messages.
«new from scratch Eval_CM7new from scratch Eval_CM7.axf» — 1 Error(s), 0 Warning(s).
«
Should I fix something in CubeMX or in Keil options?
Create a *very* simple project. For example, have each core toggle a pin that you would put an LED on (the embedded «hello world»).
I suspect (have zero direct cubeMX experience, that keil has command-line options that will fix the problem.
A simple google «cubemx» found this forum: https://community.arm.com/developer/tools-software/tools/f/keil-forum/35995/should-i-use-cubemx
and https://www.keil.com/pack/doc/STM32Cube/General/html/cubemx.html
Thank you for support. I tried few very simple projects in CubeMX on DualCore STM32H747 — the same problem happens in Keil: conflict in .sct file. This file is generated by Keil, not CubeMX.
I have positive experience with CubeMX + Keil on the SingleCore STM32F745, it works well with all ADCs DACs UART etc. It’s .sct file is:
; *************************************************************
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************
LR_IROM1 0x08000000 0x00100000 { ; load region size_region
ER_IROM1 0x08000000 0x00100000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
}
RW_IRAM1 0x20000000 0x00040000 { ; RW data
.ANY (+RW +ZI)
}
}
For the DualCore STM32H747 M7 core the .sct file looks the same, especially the problem 7th line in bold:
; *************************************************************
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************
LR_IROM1 0x08000000 0x00100000 { ; load region size_region
ER_IROM1 0x08000000 0x00100000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
}
RW_IRAM1 0x20000000 0x20020000{ ; RW data
.ANY (+RW +ZI)
}
}
There are two .sct files, for each core. This is the M4 .sct file:
; *************************************************************
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************
LR_IROM1 0x08100000 0x00100000 { ; load region size_region
ER_IROM1 0x08100000 0x00100000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
}
RW_IRAM1 0x10000000 0x10048000{ ; RW data
.ANY (+RW +ZI)
}
}
Linker tab in Target Options has these lines:
—cpu Cortex-M4.fp *.o
—library_type=microlib —strict —scatter «new from scratch Eval_CM4new from scratch Eval_CM4.sct»
—summary_stderr —info summarysizes —map —xref —callgraph —symbols
—info sizes —info totals —info unused —info veneers
—list «new from scratch Eval_CM4.map»
-o «new from scratch Eval_CM4new from scratch Eval_CM4.axf»
Addresses in .sct files are different, but the problem 7th line is always the same. I guess, Linker is confused which core goes first? No problem for the SingleCore MCU… How to edit this? And what’s the purpose of .sct file?
Thanks!
Not having the tools..
I would look at the command-line options for all of the tools, esp the ones that generates the .sct files.
Have you tried editing a .sct file and changing +First to +Second ?
You can also call customer service at Keil….
it’s all here:
https://developer.arm.com/docs/100070/0612/scatter-loading-features
a lot of reading, and no any simple working example for the DualCore MCU…
L6235E
:
More than one section matches selector - cannot all be FIRST/LAST.
See the following in the armlink User Guide:
- Section placement with the FIRST and LAST attributes.
- Syntax of an input section description.
quote: If you are not using scatter-loading, use the --first
and --last
linker command-line options to place input sections.
So — are you using the —first options? Have you tried using —last on the second file compile?
Not clear to me when you have three compiled units &7 want to link them.
I switched off .sct files usage, and set —first for CM7 and —last for CM4. Linker thrown hundred errors like this:
new from scratch Eval_CM7new from scratch Eval_CM7.axf: Error: L6200E: Symbol ADC3_IRQHandler multiply defined (by startup_stm32h747xx_cm7.o and startup_stm32h747xx_cm4.o).
new from scratch Eval_CM7new from scratch Eval_CM7.axf: Error: L6200E: Symbol ADC_IRQHandler multiply defined (by startup_stm32h747xx_cm7.o and startup_stm32h747xx_cm4.o).
I guess: the same parameter is declared twice, in CM4 and CM7. May be problem is here. Apparently for the working example, both .sct files use option First, only memory layout is different (that’s what I don’t understand):
CM4.sct:
LR_IROM1 0x08100000 0x00100000 { ; load region size_region
ER_IROM1 0x08100000 0x00100000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
}
RW_IRAM1 0x10000000 0x00040000 { ; RW data
.ANY (+RW +ZI)
}
}
CM7.sct:
LR_IROM1 0x08000000 0x00100000 { ; load region size_region
ER_IROM1 0x08000000 0x00100000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
}
RW_IRAM1 0x24000000 0x00080000 { ; RW data
.ANY (+RW +ZI)
}
}
i would call keil — it’s their toolchain.
This also has the flavor of something «minor» is missing — the solution is missing but «minor», in the sense when you find the solution, it will be a single small detail.
and solution was: in Keil Application/MDK-ARM folder (which had two files), delete this M4 file
startup_stm32h747xx_CM4.s
and keep this M7 file
startup_stm32h747xx_CM7.s
They are exactly the same. Who put two of them, not sure, maybe CubeMX? All other non-CubeMX examples have only single file
startup_stm32h747xx.s
Yep — one of those problems creating forehead-shaped holes that have a simple solution. The Deamon Murphy has a 3-day attention span.
Thasnks for letting us know what the solution was.
yours … bandit
My experience is not with this particular processor, so this is speculation.
I have been using the STM32WB55 dual core processor both on the eval boards and a project.
When I used CubeMX to generate base code, it would not run properly. However, the non-CubeMX example code would run properly.
I compared the load files (*.ld) and found that the load addresses were different in the examples and the generated files.
I suggest that you try one of the examples to see that they work and then use the LD file from the example. Be careful, though. When CubeMX generates code, it also writes over the ld file, so you will need to copy the correct ld file over the generated one.
Just a guess that you have the same scenario. Worth a check.
Thanks for the support. Yes, I tried example codes: Dual-Core Blinky and FPU Fractals — the only two examples available today for STM32H747. They both are non-CubeMX. I compiled them, loaded, they work great. They have .ld files! But my CubeMX-initiated project, after compilation in Keil, doesn’t have .ld files…
BTW those working non-CubeMX initiated examples, also have .sct files, with the same 7th line, which Keil complains about in my project:
*.o (RESET, +First)
although these blocks are different:
RW_IRAM1 0x38000000 0x00010000 { ; RW data
.ANY (+RW +ZI)
}
RW_IRAM2 0x24000000 0x00080000 {
.ANY (+RW +ZI)
}
Is .ld file mandatory? And what’s the purpose of this code above in .sct files?
Thanks!
Sorry, I don’t use Keil, so I can’t speak to that.
I use the STM32CubeIDE and that was the source of the erroneous load file.
But, having a working example is a great place to start when comparing non-working support files with working ones. Has to be there. Getting Hello World or Blinky wrong is hard to do.
Форум РадиоКот • Просмотр темы — Почему error: L6236E: No section… в STM32CubeMX + Keil?
Сообщения без ответов | Активные темы
ПРЯМО СЕЙЧАС: |
Автор | Сообщение |
---|---|
|
Заголовок сообщения: Почему error: L6236E: No section… в STM32CubeMX + Keil? Добавлено: Пт ноя 16, 2018 20:13:30 |
Прорезались зубы
Карма: -3 Рейтинг сообщения: 0
|
Только что скачал с оф. сайта STM32CubeMX 4.27.0 генерировал проект для Keil 5.24a, ничего не писал, попробовал скомпилировать, и получил ошибку: Код: STM32F103C6STM32F103C6.sct(7): error: L6236E: No section matches selector — no section to be FIRST/LAST. что я не так делаю? |
Вернуться наверх |
Профиль
|
Реклама | |
|
|
dosikus
|
Заголовок сообщения: Re: Почему error: L6236E: No section… в STM32CubeMX + Kei Добавлено: Пт ноя 16, 2018 20:44:57 |
||
Карма: 30 Рейтинг сообщения: 0
|
Слишком жЫрное что то, не лезет… |
||
Вернуться наверх | |||
Реклама | |
|
|
DENIS451
|
Заголовок сообщения: Re: Почему error: L6236E: No section… в STM32CubeMX + Kei Добавлено: Пт ноя 16, 2018 21:20:52 |
Карма: -3 Рейтинг сообщения: 0
|
|
Вернуться наверх | |
dosikus
|
Заголовок сообщения: Re: Почему error: L6236E: No section… в STM32CubeMX + Kei Добавлено: Пт ноя 16, 2018 21:23:45 |
||
Карма: 30 Рейтинг сообщения: 0
|
Думаешь мы что -то поняли? |
||
Вернуться наверх | |||
Реклама | |
|
Выгодные LED-драйверы для решения любых задач КОМПЭЛ представляет со склада и под заказ широкий выбор LED-драйверов производства MEAN WELL, MOSO, Snappy, Inventronics, EagleRise. Линейки LED-драйверов этих компаний, выполненные по технологии Tunable White и имеющие возможность непосредственного встраивания в систему умного дома (димминг по шине KNX), перекрывают практически полный спектр применений: от простых световых указателей и декоративной подсветки до диммируемых по различным протоколам светильников внутреннего и наружного освещения. Подобрать LED-драйвер>> |
DENIS451
|
Заголовок сообщения: Re: Почему error: L6236E: No section… в STM32CubeMX + Kei Добавлено: Пт ноя 16, 2018 21:36:10 |
Карма: -3 Рейтинг сообщения: 0
|
|
Вернуться наверх | |
Реклама | |
|
|
Реклама | |
|
LIMF – источники питания High-End от MORNSUN со стандартным функционалом на DIN-рейку На склад Компэл поступили ИП MORNSUN (крепление на DIN-рейку) с выходной мощностью 240 и 480 Вт. Данные источники питания обладают 150% перегрузочной способностью, активной схемой коррекции коэффициента мощности (ККМ; PFC), наличием сухого контакта реле для контроля работоспособности (DC OK) и возможностью подстройки выходного напряжения. Источники питания выполнены в металлическом корпусе, ПП с компонентами покрыта лаком с двух сторон, что делает ее устойчивой к соляному туману и пыли. Изделия соответствуют требованиям ANSI/ISA 71.04-2013 G3 на устойчивость к коррозии, а также нормам ATEX для взрывоопасных зон. Подробнее>> |
dosikus
|
Заголовок сообщения: Re: Почему error: L6236E: No section… в STM32CubeMX + Kei Добавлено: Пт ноя 16, 2018 21:46:36 |
||
Карма: 30 Рейтинг сообщения: 0
|
Если сравнивать все с авр все всегда будет не просто. Для начала -убрать в путях кириллицу… |
||
Вернуться наверх | |||
Z_h_e
|
Заголовок сообщения: Re: Почему error: L6236E: No section… в STM32CubeMX + Kei Добавлено: Пт ноя 16, 2018 21:54:00 |
||
Карма: 25 Рейтинг сообщения: 0
|
Выложил проект STM32F103C6.zip: https://yadi.sk/d/FLldW2rBgdce5g Почему то проекты Atmel Studio для AVR в архиве весят 250 кб. а этот 16 мб. это нормально ?! А какая разница сколько весит проект? При желании можно комментариев на МБты нахерачить. А если 250К это объем исполняемого кода, то . |
||
Вернуться наверх | |||
DENIS451
|
Заголовок сообщения: Re: Почему error: L6236E: No section… в STM32CubeMX + Kei Добавлено: Пт ноя 16, 2018 21:54:30 |
Карма: -3 Рейтинг сообщения: 0
|
Попробовал убрать кириллицу — без изменений ошибка осталась. |
Вернуться наверх | |
Oxford
|
Заголовок сообщения: Re: Почему error: L6236E: No section… в STM32CubeMX + Kei Добавлено: Пт ноя 16, 2018 21:55:48 |
||
Карма: 4 Рейтинг сообщения: 1
|
Решение простое. Telegram чат: https://t.me/radiowolf или в поиске приложения @radiowolf. Личка:@cncoxford |
||
Вернуться наверх | |||
DENIS451
|
Заголовок сообщения: Re: Почему error: L6236E: No section… в STM32CubeMX + Kei Добавлено: Пт ноя 16, 2018 22:11:55 |
Карма: -3 Рейтинг сообщения: 0
|
Oxford спасибо, ошибка исчезла! Почему этот файл сам не добавился куда надо? Почему hex файл пустого проекта весит 8,5кб ?! |
Вернуться наверх | |
Мурик
|
Заголовок сообщения: Re: Почему error: L6236E: No section… в STM32CubeMX + Kei Добавлено: Пт ноя 16, 2018 22:51:38 |
||||
Карма: 1 Рейтинг сообщения: 0
|
DENIS451 писал(а): Почему то проекты Atmel Studio для AVR в архиве весят 250 кб. а этот 16 мб. это нормально ?! Этот проект весит 202 КБ. DENIS451 писал(а): Почему hex файл пустого проекта весит 8,5кб ?! Не 8, а 6, (смотрите архив). Код: Program size (bytes): 2084 R/W Memory (bytes): 1580 === Сборка закончена: 0 errors, 0 warnings (0 minutes, 1 seconds) === Проект не пустой. В нем есть инициализация МК. Вот для примера прошивка размером 48 байт. http://purebasic.mybb.ru/viewtopic.php?id=575#p7592
|
||||
Вернуться наверх | |||||
afz
|
Заголовок сообщения: Re: Почему error: L6236E: No section… в STM32CubeMX + Kei Добавлено: Сб ноя 17, 2018 13:15:04 |
||
Карма: 12 Рейтинг сообщения: 0
|
dosikus писал(а): Ну а 16 метров всяко -хрень, и я выше писал что слишком жЫрно, нелезет в секцию… Все проще — у кубиков в Project Setting на закладке Code generator в самом верху стоит выбор, что из библиотек копировать в папки проекта. И дефолтно там стоит Copy all used libraries into the project folder. Вот он и копирует весь пакет для выбранного камня в папку Drivers проекта. |
||
Вернуться наверх | |||
Мурик
|
Заголовок сообщения: Re: Почему error: L6236E: No section… в STM32CubeMX + Kei Добавлено: Сб ноя 17, 2018 14:13:27 |
||
Карма: 1 Рейтинг сообщения: 0
|
afz писал(а): И дефолтно там стоит Copy all used libraries into the project folder. По умолчанию копируются только необходимые библиотеки, а «Copy all used libraries into the project folder» в неактивном состоянии и выбрать нельзя. |
||
Вернуться наверх | |||
afz
|
Заголовок сообщения: Re: Почему error: L6236E: No section… в STM32CubeMX + Kei Добавлено: Сб ноя 17, 2018 17:49:06 |
||
Карма: 12 Рейтинг сообщения: 0
|
Странно, а у меня почему-то открыты все три пункта, дефолтно выбран первый. Может от камня зависит? CubeMX 4.27.0 |
||
Вернуться наверх | |||
Мурик
|
Заголовок сообщения: Re: Почему error: L6236E: No section… в STM32CubeMX + Kei Добавлено: Вс ноя 18, 2018 12:53:22 |
||
Карма: 1 Рейтинг сообщения: 0
|
Скрин выше для STM32F103C6T6. Вероятно зависит от среды для которой создается проект. У меня выбрана TrueSTUDIO, а проект использую для EmBitz. |
||
Вернуться наверх | |||
afz
|
Заголовок сообщения: Re: Почему error: L6236E: No section… в STM32CubeMX + Kei Добавлено: Вс ноя 18, 2018 18:55:36 |
||
Карма: 12 Рейтинг сообщения: 0
|
Да, очень похоже. И у меня, и у ТС Кейл, а на эту вкладку, обычно, никто не смотрит, вот CubeMX и копирует весь пакет. |
||
Вернуться наверх | |||
Кто сейчас на форуме |
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 7 |
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения |
Dear all, I wanted go a step forward on BLE services and characteristics trying include two characteristics on a BLE
service, I think one of best examples is Github ble_app_lbs_master. The example was downloaded for SDK 8.0.0, it seems there are not updated
exampe for SDK 9.0.0, anyway CMSIS and CMSIS Device components were missing. I Just added these components but after compilation one error is
remaining «more than one section matches selector — cannot all be FIRST/LAST». It seems the problem is on pstorage.c and pstorage_platform.h, parameter PSTORAGE_MAX_APPLICATIONS that has value 2 anybody can help?
Thanks and regards.
Luis Tenedorio
Globaltronic SA
-
Hi Luis,
This is an error I’ve seen when you have two arm_startup_nrf51.s files in your project.
Could you verify if you have two of these (one in «Device» from packs, and one in «Source code» for instance) and if yes; remove one of them?Cheers,
Håkon -
Dear Hakon, first I would like thank you your support for my e-mail. I will repeat here:
Hi Luis,
This is an error I’ve seen when you have two arm_startup_nrf51.s files in your project. Could you verify if you have two of these (one in «Device» from packs, and one in «Source code» for instance) and if yes; remove one of them?Cheers, Håkon
Yes Hakon, you have reason, there was two arm_startup_nrf51.s files, I just removed one of them (startup flolder, not CMSIS Device folder) and problem is cleared, now I have no errors but after flash programming nRFgo Studio says that application must be programmed without softdevice alone previous programming, OK, programm was flashed without problems but after didn’t appears on Master Control Panel, can you help?
Regards.
Luis -
Dear Hakon, first I would like thank you your support for my e-mail. I will repeat here:
Hi Luis,
This is an error I’ve seen when you have two arm_startup_nrf51.s files in your project. Could you verify if you have two of these (one in «Device» from packs, and one in «Source code» for instance) and if yes; remove one of them?Cheers, Håkon
Yes Hakon, you have reason, there was two arm_startup_nrf51.s files, I just removed one of them (startup flolder, not CMSIS Device folder) and problem is cleared, now I have no errors but after flash programming nRFgo Studio says that application must be programmed without softdevice alone previous programming, OK, programm was flashed without problems but after didn’t appears on Master Control Panel, can you help?
Regards.
Luis -
You next question is completely different question that the one you asked.
Håkon’s answer helped you, so please accept his answer and open a new question for the problem you are facing now. -
OK Aryan, thanks, I’ll open a new question soon.
RegardsLuis Tenedorio