Search found 7 matches

by asdasdasd
Thu Jul 28, 2022 8:04 am
Forum: STM32 Support
Topic: STM32f7 clock halt
Replies: 1
Views: 1840

STM32f7 clock halt

Hi,
I have got a new board " waveshare" with "stm32f746Igt" (CRYSTAL 8MHZ ). Core746I-Schematic .
I have started with chibios demo chibios2111/demos/STM32/RT-STM32F746ZG-NUCLEO144 . my programmer is st-link v2 .
The code is freezing in "stm32_clock_init" function. I haven't have any idea what is the ...
by asdasdasd
Wed Jul 07, 2021 11:51 am
Forum: General Support
Topic: How to use Objects FIFO?
Replies: 1
Views: 3060

How to use Objects FIFO?

Hi,
I want to use FIFO object to transfer array data from one thread to another but the data received wrong .

At first I have initialize the FIFO:

#define FIFO_obj_available 2
union U_g_b{
GPS_b_msg GPS_b;
uint8_t data[sizeof(GPS_b_msg)];
}u_msg_send,u_msg_rec;
#define FIFO_OBJ_SIZE ...
by asdasdasd
Mon Jul 05, 2021 7:08 am
Forum: STM32 Support
Topic: How to get real continuous time
Replies: 4
Views: 3465

Re: How to get real continuous time

One of the following solutions:

1) Use an STM32 with a 32 bits timer.
2) Disable tick-less mode, that will use a 32 bits counter variable.
3) Use 64 bits time stamps, this is available on RT7 and forward.

Giovanni

thanks for fast replay,
but I didn't understand what is "RT7" and how to use 64 ...
by asdasdasd
Sun Jul 04, 2021 2:39 pm
Forum: STM32 Support
Topic: How to get real continuous time
Replies: 4
Views: 3465

How to get real continuous time

Hi,
I have stm32f103,
I have used

Code: Select all

TIME_I2MS(chVTGetSestemTime())

to get real time but the time reset every 32s (16bit).
How can I get 32bit time or 64?

Thanks for any help.
by asdasdasd
Thu Apr 01, 2021 10:51 am
Forum: STM32 Support
Topic: can reseved problem
Replies: 8
Views: 10492

Re: can reseved problem

Giovanni wrote:Try removing the chprintf(), that is slowing down the loop for sure because it is bound by the serial port speed.

Giovanni


thanks for replay :
i will test it,
if I set CAN_ENFORCE_USE_CALLBACKS TRUE, can i have faster speed?
and how can i use callback function?
by asdasdasd
Thu Apr 01, 2021 9:37 am
Forum: STM32 Support
Topic: can reseved problem
Replies: 8
Views: 10492

Re: can reseved problem

Hard to tell without looking at the actual traffic, most of the work is done by the peripheral in HW, the driver itself is very thin.

Few questions:
- Are you emptying the RX queues when you get a CAN event? you need to read until it is empty.
- Do you get CAN errors?

Giovanni

I am using this ...
by asdasdasd
Wed Mar 31, 2021 1:39 pm
Forum: STM32 Support
Topic: can reseved problem
Replies: 8
Views: 10492

can reseved problem

Hi all ,
I am using stm32f103 with chibios v20,
I have modified can example to communicate with can radar, but i have problem in received packet .
when i have received a msg more than three packet the first three packet is OK and others sequence become wrong .?
any suggestion ?

best regards,
asd