Search found 199 matches

by pito
Sat Mar 26, 2016 7:36 am
Forum: ChibiStudio
Topic: STLink v2 dongle clone cfg
Replies: 4
Views: 2544

Re: STLink v2 dongle clone cfg

It works with F4Discovery board too - with standard ST_LInk V2 settings but:
openocd/scripts/target/stm32f4x.cfg
selected.
by pito
Fri Mar 25, 2016 7:52 pm
Forum: ChibiStudio
Topic: STLink v2 dongle clone cfg
Replies: 4
Views: 2544

Re: STLink v2 dongle clone cfg

OK, with ST-link V2 and
..openocd/scripts/target/stm32f1x.cfg
it starts to work!
by pito
Fri Mar 25, 2016 7:27 pm
Forum: ChibiStudio
Topic: STLink v2 dongle clone cfg
Replies: 4
Views: 2544

Re: STLink dongle cfg

I've tried the stm32f4discovery.cfg (as the dongle is v2) and I've got a bit better result, but the chip does not match (working with stm32vldisco): Warn : Interface already configured, ignoring Error: already specified hl_layout stlink Info : The selected transport took over low-level target contro...
by pito
Fri Mar 25, 2016 7:09 pm
Forum: ChibiStudio
Topic: STLink v2 dongle clone cfg
Replies: 4
Views: 2544

STLink v2 dongle clone cfg

Hi, trying to use the stlink dongle clone for programming/debug out of chibistudio. The clone has got the latest firmware and it works fine with stlink-utility (when flashing the .bin). While trying to use it under chibistudio (stlink v1, v2, v2-1) I get with st32vldiscovery.cfg (vldisco onboard stl...
by pito
Sun Mar 20, 2016 1:51 pm
Forum: ChibiOS/RT
Topic: US2ST with ULL
Replies: 1
Views: 806

US2ST with ULL

While playing with VLdisco demo (cpu @40MHz) I've tried to use chThdSleepMicroseconds(2000100); //2.0001sec The macro flows over with CH_CFG_ST_FREQUENCY=10000 so I've modified it #define US2ST(usec) \ ((systime_t)(((((uint64_t)(usec)) * \ ((uint64_t)CH_CFG_ST_FREQUENCY)) + 999999ULL) / 1000000ULL))...
by pito
Sun Mar 20, 2016 12:54 pm
Forum: ChibiStudio
Topic: Macro Expansion chThdSleepMilliseconds
Replies: 4
Views: 1038

Re: Macro Expansion chThdSleepMilliseconds

Ok, after "Index->Freshen All Files" it starts to copy the actual value of CH_CFG_ST_FREQUENCY into the chThdSleepMilliseconds macro expansion.
Tkanks!
by pito
Sun Mar 20, 2016 12:43 pm
Forum: ChibiStudio
Topic: Macro Expansion chThdSleepMilliseconds
Replies: 4
Views: 1038

Re: Macro Expansion chThdSleepMilliseconds

I know, but it shows 10000 even the CH_CFG_ST_FREQUENCY is set to 3000, for example (ie VLDiscovery demo).
by pito
Sun Mar 20, 2016 12:26 pm
Forum: ChibiStudio
Topic: Macro Expansion chThdSleepMilliseconds
Replies: 4
Views: 1038

Macro Expansion chThdSleepMilliseconds

Hi, when looking at macro expansion of chThdSleepMilliseconds I always see ((uint32_t)10000) in

chThdSleep(((systime_t)(((((uint32_t)(500)) * \
((uint32_t)10000)) + 999UL) / 1000UL)))

independently of CH_CFG_ST_FREQUENCY settings. Is that ok?
by pito
Tue Dec 29, 2015 11:24 am
Forum: Development and Feedback
Topic: Dynamic core clocking
Replies: 6
Views: 1442

Re: Dynamic core clocking

With F4 you may derive the clock for ie. "tick" timer etc. from the external source, ie. from main xtal oscillator (from its output pin). Thus the timer's clock will not change when you switch from 168MHz to the xtal's base freq (or any other freq.)..
by pito
Tue Mar 31, 2015 1:23 pm
Forum: General Support
Topic: SPI send problems
Replies: 11
Views: 3456

Re: SPI send problems

The fig.13 of the L6474 datasheet shows it clocks out the data on the rising edge.
Try and see.

Go to advanced search