Search found 11 matches

by am3syl
Mon Jun 20, 2016 4:22 pm
Forum: ChibiOS/HAL
Topic: STM32F446 and ULPI
Replies: 2
Views: 2266

Re: STM32F446 and ULPI

Ok thanks,

I will keep the 427 for now and check what happens on 446 in few weeks. I will keep you in touch.
by am3syl
Mon Jun 20, 2016 11:50 am
Forum: ChibiOS/HAL
Topic: STM32F446 and ULPI
Replies: 2
Views: 2266

STM32F446 and ULPI

Hello,

I have some problems to run the USB Driver with ULPI on STM32F446.

The same code ( except that the ULPI_D4 pin change ) run perfectly on a STM32F427 ( I use the same board but swap the mcu)

Does anyone have run the ULPI driver on STM32F446 with success?

Thanks !
by am3syl
Thu Jan 14, 2016 5:40 pm
Forum: STM32 Support
Topic: chThdSleep strange behaviour
Replies: 13
Views: 5633

Re: chThdSleep strange behaviour

Ok I got it.

Well the chconf used contains CORTEX_VTOR_INIT at the last line and I didn't see it.
The line relocate vector outside the flash. Costly mistake.

Thanks for your support!!
by am3syl
Thu Jan 14, 2016 4:33 pm
Forum: STM32 Support
Topic: chThdSleep strange behaviour
Replies: 13
Views: 5633

Re: chThdSleep strange behaviour

Good idea, I have flashed the F429 demo on my board without change expect HSI use and systick ISR is called!

Now I have to replace file by file to see where is the problem.
by am3syl
Thu Jan 14, 2016 3:25 pm
Forum: STM32 Support
Topic: chThdSleep strange behaviour
Replies: 13
Views: 5633

Re: chThdSleep strange behaviour

Yes I use the stm32f429 ld file but its the same family

In the map file I see VectorB0 (systick vector) is linked at std_lld.o, its seems ok

But its like VectorB0 is not implemented, the flag is set but is never processed.
I looked to the nvic registry, interrupt is set and flag too.

I will ...
by am3syl
Thu Jan 14, 2016 12:55 pm
Forum: STM32 Support
Topic: chThdSleep strange behaviour
Replies: 13
Views: 5633

Re: chThdSleep strange behaviour

Some details:

Its seems I never go in the systick ISR.

TIM2 is higher than the CCR1 value, the compare/capture flag is set but no interrupt happens.

I will check the interrupt register and vectors things.
by am3syl
Thu Jan 14, 2016 10:26 am
Forum: STM32 Support
Topic: chThdSleep strange behaviour
Replies: 13
Views: 5633

Re: chThdSleep strange behaviour

Forget the posts above, I'm sure of nothing :(

How I can ensure the chthdSleep is not exited? There is a interrupt to watch or something?
by am3syl
Thu Jan 14, 2016 9:33 am
Forum: STM32 Support
Topic: chThdSleep strange behaviour
Replies: 13
Views: 5633

Re: chThdSleep strange behaviour

Errata the timer count but very slowly, probably prescaler settings
by am3syl
Thu Jan 14, 2016 8:55 am
Forum: STM32 Support
Topic: chThdSleep strange behaviour
Replies: 13
Views: 5633

Re: chThdSleep strange behaviour

Yes I'm sure, the timer associate to system tick doesn't count even with HSI clock. I replace the stm32f427 by another but same thing happens.

I'm already in O0 optimisation.

It's look like a bad configuration or hardware malfunction. I will start over from scratch.
by am3syl
Wed Jan 13, 2016 4:27 pm
Forum: STM32 Support
Topic: chThdSleep strange behaviour
Replies: 13
Views: 5633

Re: chThdSleep strange behaviour

The program is in the infinite loop of the idle_thread, waiting for a timer interrupt which never came ( port_wait_for_interrupt ).

As you said it's probably the oscillator but I tried to change to HSI with:

#define STM32F4xx_MCUCONF

/*
* HAL driver system settings.
*/
#define STM32_NO ...