Search found 199 matches

by pito
Sun Oct 06, 2013 6:32 pm
Forum: STM32 Support
Topic: CB3.0 F100 - I2C issues
Replies: 19
Views: 9085

Re: CB3.0 F100 - I2C issues

It hangs on

Code: Select all

RTC_PCF8563_status = i2cMasterTransmitTimeout(&I2CD1, PCF8563_ADDRESS, txbuf, 1, rxbuf, 9, TMO);
by pito
Sun Oct 06, 2013 5:46 pm
Forum: STM32 Support
Topic: CB3.0 F100 - I2C issues
Replies: 19
Views: 9085

Re: CB3.0 F100 - I2C issues

I run with static const I2CConfig i2cfg1 = { OPMODE_I2C, 400000, FAST_DUTY_CYCLE_16_9 } and 40MHz clock my code fine under trunk. The same with 3.0 (and w/ the changes we discussed earlier) stops. So there must be something different, I do not see on the third glance :) I see a new parameter #define...
by pito
Sun Oct 06, 2013 12:16 pm
Forum: STM32 Support
Topic: CB3.0 F100 - I2C issues
Replies: 19
Views: 9085

CB3.0 F100 - I2C issues

Thread [1] (Suspended: Signal 'SIGINT' received. Description: Interrupt.) 5 chSysHalt() core_cmFunc.h:342 0x08001018 4 i2c_lld_set_clock() i2c_lld.c:188 0x08001018 3 i2c_lld_start() i2c_lld.c:629 0x08001018 2 i2cStart() i2c.c:105 0x08001018 1 main() main.c:253 0x08001018 at osalDbgAssert((STM32_PCL...
by pito
Sun Oct 06, 2013 11:58 am
Forum: STM32 Support
Topic: CB3.0 F100 - chSysLock and chTimeNow
Replies: 6
Views: 3634

Re: CB3.0 F100 - chSysLock and chTimeNow

moved
by pito
Sun Oct 06, 2013 10:59 am
Forum: STM32 Support
Topic: CB3.0 F100 - chSysLock and chTimeNow
Replies: 6
Views: 3634

Re: CB3.0 F100 - chSysLock and chTimeNow

Thanks, it compiles now clean, but crashes: Thread [1] (Suspended: Signal 'SIGINT' received. Description: Interrupt.) 5 chSysHalt() core_cmFunc.h:342 0x08001e04 4 _dbg_check_enter_isr() chdebug.c:168 0x08001e04 3 VectorD4() serial_lld.c:263 0x08002bd0 2 <symbol is not available> 0xfffffffc 1 <symbol...
by pito
Sat Oct 05, 2013 9:49 pm
Forum: STM32 Support
Topic: CB3.0 F100 - chSysLock and chTimeNow
Replies: 6
Views: 3634

Re: CB3.0 F100 - chSysLock and chTimeNow

chSysLockFromISR (was ...FromIsr)

still coping with chTimeNow() defined in chvt.h as

Code: Select all

#define chTimeNow() (vtlist.vt_systime)


in my source: chTimeNow()

seems like not being included..
by pito
Sat Oct 05, 2013 8:40 pm
Forum: STM32 Support
Topic: CB3.0 F100 - chSysLock and chTimeNow
Replies: 6
Views: 3634

Re: CB3.0 F100 - chSysLock and chTimeNow

#include "osal.h" must be included in main, also into my rtc driver... NO it does not help.. still the issue above.. Also: msg_t RTC_PCF8563_status = RDY_OK; .. C:\ChibiStudio\Chibi30/os/various/chTinyRTC8563.c:46:28: error: 'RDY_OK' undeclared here (not in a function)
by pito
Sat Oct 05, 2013 8:32 pm
Forum: STM32 Support
Topic: CB3.0 F100 - chSysLock and chTimeNow
Replies: 6
Views: 3634

CB3.0 F100 - chSysLock and chTimeNow

Compiling main.c main.c: In function 'pwmpcb': main.c:128:3: warning: implicit declaration of function 'chSysLockFromIsr' [-Wimplicit-function-declaration] main.c:130:3: warning: implicit declaration of function 'chSysUnlockFromIsr' [-Wimplicit-function-declaration] main.c: In function 'Thread1': m...
by pito
Sat Oct 05, 2013 4:59 pm
Forum: STM32 Support
Topic: Invalid DMA stream associated to I2C1 RX/TX
Replies: 5
Views: 3902

Re: Invalid DMA stream associated to I2C1 RX/TX

It seems we miss definitions of

Code: Select all

STM32_I2C1_RX_DMA_MSK
STM32_I2C1_TX_DMA_MSK

in stm32_registry.h ..
by pito
Sat Oct 05, 2013 4:33 pm
Forum: STM32 Support
Topic: Invalid DMA stream associated to I2C1 RX/TX
Replies: 5
Views: 3902

Invalid DMA stream associated to I2C1 RX/TX

Hi, moving to chibi3.0 with my source (stm32VL) and getting this error: Compiling hal.c In file included from C:\ChibiStudio\Chibi30/os/hal/include/i2c.h:89:0, from C:\ChibiStudio\Chibi30/os/hal/include/hal.h:53, from C:\ChibiStudio\Chibi30/os/hal/src/hal.c:29: C:\ChibiStudio\Chibi30/os/hal/ports/ST...

Go to advanced search