Search found 15 matches

by LHelge
Thu Nov 24, 2016 8:13 pm
Forum: Bug Reports
Topic: Makefiles improvements
Replies: 2
Views: 4664

Makefiles improvements

It would be neat with a similar hook for the clean recipe so I could clean up my generated files as well.
by LHelge
Thu Nov 24, 2016 9:25 am
Forum: Development and Feedback
Topic: Makefiles improvements
Replies: 10
Views: 10499

Re: Makefiles improvements

I solved it, wasn't that difficult.

Added this to the project makefile:

Code: Select all

# Hook for generating code
PRE_MAKE_ALL_RULE_HOOK: gencode

gencode:
   @python script/genParList.py
   @python script/genErrList.py
by LHelge
Thu Nov 24, 2016 8:51 am
Forum: Development and Feedback
Topic: Makefiles improvements
Replies: 10
Views: 10499

Re: Makefiles improvements

Any example of how this is used? My makefile-fu is a little low at this time.

I want to run a python-script to generate some *.c and *.h files before compilation and the PRE_MAKE_ALL_RULE_HOOK seems lite the way to accomplish that without hacking anything other than the project makefile.
by LHelge
Wed Jun 08, 2016 2:49 pm
Forum: Development and Feedback
Topic: ChibiStudio board configuration generator
Replies: 2
Views: 3777

Re: ChibiStudio board configuration generator

Ahh, nice, can't believe I didn't think of that :)

Thanks
by LHelge
Wed Jun 08, 2016 1:30 pm
Forum: Development and Feedback
Topic: ChibiStudio board configuration generator
Replies: 2
Views: 3777

ChibiStudio board configuration generator

Hi,

When creating a new chibios project i usually keep the board folder in the root of my project workspace instead of referring to the os/hal/boards/#boardname#/ since you can set the output path to .. this works fine. the annoying thing is that the path in the generated makefile points to the ...
by LHelge
Thu Apr 14, 2016 9:08 am
Forum: STM32 Support
Topic: Calling stm32 internal bootloader from application
Replies: 9
Views: 13459

Re: Calling stm32 internal bootloader from application

What is the benefit of doing this in __early_init() instead of in the beginning of main() I can the that the former is called first by the bootup code but will it make any difference?`

I would rather have the bootloader check in main() for two reasons, the __early_init() will be overwritten each ...
by LHelge
Thu Nov 12, 2015 8:39 am
Forum: STM32 Support
Topic: Bug in STM32F0xx port (STM32F042Cx6) chibios 3.0.2
Replies: 1
Views: 2241

Bug in STM32F0xx port (STM32F042Cx6) chibios 3.0.2

I noticed this in the chibios3 release in ChibiStudio14 (3.0.2 i think)

File: chibios3/hal/ports/STM32/STM32F0xx/stm32_registry.h

813: /* USART attributes.*/
814: #define STM32_HAS_USART1 TRUE
815: #define STM32_UART_USART1_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 3)
816: #define ...
by LHelge
Tue Jul 07, 2015 10:15 am
Forum: ChibiOS/HAL
Topic: USB LLD macros for connect/disconnect in OTGv1 driver
Replies: 3
Views: 4645

Re: USB LLD macros for connect/disconnect in OTGv1 driver

How will I then get enumeration to begin? The pull-up on the data line on this particular board is enabled by GPIOC_11, is there some way I can make the driver point to this pin for enabling the pull-up?
by LHelge
Tue Jul 07, 2015 7:34 am
Forum: ChibiOS/HAL
Topic: USB LLD macros for connect/disconnect in OTGv1 driver
Replies: 3
Views: 4645

USB LLD macros for connect/disconnect in OTGv1 driver

I'm currently playing around with a Olimex STM32-P405 board together with ChibiOS 3.0.0p5. The board is essentialy the same as the P103 but with an STM32F405RG micro instead. I made my own board definition based on the included one for P103 mixed up with the one for STM32F4Discovery.

I've run into ...
by LHelge
Fri Jun 12, 2015 2:58 pm
Forum: Development and Feedback
Topic: STM32F7xx manuals released
Replies: 5
Views: 4823

Re: STM32F7xx manuals released

Nice!

Will give GCC a try this weekend if I have the time.