Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make fails, mising nano.specs file #1

Closed
galileo-pkm opened this issue Sep 21, 2020 · 8 comments
Closed

Make fails, mising nano.specs file #1

galileo-pkm opened this issue Sep 21, 2020 · 8 comments

Comments

@galileo-pkm
Copy link

Make fails with:
arm-none-eabi-gcc: fatal error: cannot read spec file 'nano.specs': No such file or directory

Uncommitted file?

@DiSlord
Copy link
Owner

DiSlord commented Sep 24, 2020

no 'nano.specs' file in my NanoVNA folder
See
https://stackoverflow.com/questions/26931979/gnu-arm-nano-specs-not-found

@galileo-pkm
Copy link
Author

Installing arm-none-eabi-newlib package (Fedora 32) fixes that error.
The nano in the file name threw me of ...

Unfortunately compile now fails with a nonsensical error:

Compiling hal_lld.c ChibiOS/os/hal/ports/STM32/STM32F0xx/hal_lld.c:54:40: error: expected identifier or '(' before 'void' 54 | static void hal_lld_backup_domain_init(void) { | ^~~~ ChibiOS/os/hal/ports/STM32/STM32F0xx/hal_lld.c: In function 'hal_lld_init': ChibiOS/os/hal/ports/STM32/STM32F0xx/hal_lld.c:235:30: error: expected expression before ')' token 235 | hal_lld_backup_domain_init(); | ^ make: *** [ChibiOS/os/common/startup/ARMCMx/compilers/GCC/rules.mk:216: build/obj/hal_lld.o] Error 1

Kind of strange considering that edy555 repo compiles without issues.

@DiSlord
Copy link
Owner

DiSlord commented Sep 25, 2020

Comment call (it not used, and should be disabled)
// hal_lld_backup_domain_init();
in "ChibiOS/os/hal/ports/STM32/STM32F0xx/hal_lld.c"

Also need change in "ChibiOS\os\hal\ports\STM32\LLD\ADCv3\hal_adc_lld.c"
OSAL_IRQ_HANDLER(STM32_ADC1_HANDLER) {
to
attribute((weak)) OSAL_IRQ_HANDLER(STM32_ADC1_HANDLER) {

@igor-m
Copy link

igor-m commented Sep 25, 2020

attribute((weak)) OSAL_IRQ_HANDLER(STM32_ADC1_HANDLER) {

With 2+2 underscores..
__attribute__((weak)) OSAL_IRQ_HANDLER(STM32_ADC1_HANDLER) {

@DiSlord
Copy link
Owner

DiSlord commented Sep 25, 2020

Yes, __ lost on formatting (made text as bold)

@DiSlord DiSlord closed this as completed Sep 25, 2020
@DiSlord DiSlord reopened this Sep 25, 2020
@galileo-pkm
Copy link
Author

If you are modifying upstream libraries you should fork ChibiOS
or add comments about the changes in the Readme.
For now I have just commented out the -DVNA_AUTO_SELECT_RTC_SOURCE line in the Makefile.
It builds, haven't tested it yet.

@DiSlord
Copy link
Owner

DiSlord commented Sep 26, 2020

On commented VNA_AUTO_SELECT_RTC_SOURCE you need manually select RTC source, by default use LSI

@galileo-pkm
Copy link
Author

Ok, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants