Search found 34 matches

by vitor_boss
Thu Jul 20, 2017 8:21 pm
Forum: STM32generic
Topic: STM32GENERIC Arduino implementation
Replies: 12
Views: 284

Re: STM32GENERIC Arduino implementation

danieleff thank you very much for HardwareTimer library. Your repo rocks
by vitor_boss
Fri Jul 14, 2017 2:54 am
Forum: STM32generic
Topic: [STM32GENERIC] HAL Timer
Replies: 6
Views: 252

Re: [STM32GENERIC] HAL Timer

sorry but I'm not understanding this timer structure. Could you provide examples on how use this with your code? Timer3.attachInterrupt(1, ignitionSchedule1Interrupt); Timer3.attachInterrupt(2, ignitionSchedule2Interrupt); Timer3.attachInterrupt(3, ignitionSchedule3Interrupt); Timer3.attachInterrupt...
by vitor_boss
Sat Jul 08, 2017 10:56 pm
Forum: Cores
Topic: List of cores currently available
Replies: 53
Views: 6694

Re: List of cores currently available

The most complex to me is Timers initialization, I have been ported Speeduino code to STM32, I have to use up to 16 comparators to make all injectors , coils, VVT, IDLE and others PWM channels working. That is a big deal for me
by vitor_boss
Sat Jul 08, 2017 5:29 am
Forum: Cores
Topic: List of cores currently available
Replies: 53
Views: 6694

Re: List of cores currently available

STM32GENERIC

Advantages
  • Uses much less RAM than maple core
  • Already enabled FPU
  • Generate a smaller code 8~15% on Os
Disadvantages
  • Complex GPIO and HAL initialization aren't noob friendly
by vitor_boss
Fri Jul 07, 2017 1:36 am
Forum: STM32F4 Boards
Topic: [libmaple] Black F407VET6
Replies: 96
Views: 2307

Re: [libmaple] Black F407VET6

https://github.com/Marzogh/SPIFlash
This lib works on STM32GENERIC, with yours I'm getting no lucky.

EDIT: Default EEPROM is W25Q16, I have to replace mine because was return wrong numbers, now is W25Q64.
by vitor_boss
Thu Jul 06, 2017 5:42 am
Forum: STM32F4 Boards
Topic: [libmaple] Black F407VET6
Replies: 96
Views: 2307

Re: [libmaple] Black F407VET6

There is a macro missing from arduino Word(h,l); Just insert those lines on wirish_math.h on line 36 #include <stdint.h> and those at 152 uint16_t makeWord(uint16_t w); uint16_t makeWord(uint8_t h, uint8_t l); #define word(...) makeWord(__VA_ARGS__) and this at the end of wirish_math.cpp : extern ui...
by vitor_boss
Thu Jul 06, 2017 5:17 am
Forum: STM32F4 Boards
Topic: [libmaple] Black F407VET6
Replies: 96
Views: 2307

Re: [libmaple] Black F407VET6

To enable FPU need few things. Insert this on Start_c.c #if (__ARM_PCS==1 || __ARM_PCS_VFP==1) //using FP on code? #if defined (__FP_FAST_FMAF) //mfloat-abi=hard or mfloat-abi=softfp #warning enabling harware fpu __asm volatile ( " ldr.w r0, =0xE000ED88 \n" /* The FPU enable bits are in the CPACR. *...
by vitor_boss
Fri Jun 23, 2017 2:20 pm
Forum: STM32F4 Boards
Topic: [libmaple] SDIO
Replies: 61
Views: 975

Re: [libmaple] SDIO

Vitor, this is SDIO, not SPI. And higher frequencies than 37MHz for SDIO (tested by Pito) do not work reliable anymore. This is a HW limitation of the F4 chip. while ( i-- ) { // do 8 byte copies, is much faster than single byte copy *dst++ = *src++; *dst++ = *src++; *dst++ = *src++; *dst++ = *src+...
by vitor_boss
Thu Jun 22, 2017 4:39 pm
Forum: STM32F4 Boards
Topic: [libmaple] SDIO
Replies: 61
Views: 975

Re: [libmaple] SDIO

100MB F407 I get with my: Use a freshly formatted SD for best performance. Type any character to start ************************************************* Opening the read file.. Opening the write file.. Reading and Writing.. ************************************************* Done in 61039 msecs *****...
by vitor_boss
Wed Jun 21, 2017 7:08 pm
Forum: Problems with libraries
Topic: Compile Error: 'digitalPinToInterrupt' was not declared in this scope
Replies: 9
Views: 241

Re: Compile Error: 'digitalPinToInterrupt' was not declared in this scope

For STM32, there is one EXTi per GPIO pin number. So, 16 EXTI (PX0 to Px15). Warning: set an EXTI on PA0 and PB0 will raised the same EXTI without way to know which GPIO port it is. ... Really we need an API change so that attachInterrupt can return bool, but Arduino are not usually happy to change...