M451 CAN application routines under Keil RTX

Post Reply
Prima
Posts: 109
Joined: 20 Mar 2017, 14:22

20 Jun 2017, 15:16

Function Description:
1 ) RTX system to establish two tasks, namely CAN send and CAN reception
2 ) Node0 through the expansion ID: 0x12345 every 2 seconds to send 2 bytes of data to the Node1 , then Node1 received data and then through a simple operation and then through the standard ID : 0x7FF sent back to Node0 .
3 ) through the serial port to view RTX under CAN communication is normal, such as Node0 send 0000 , Node1 after receiving serial print out 0000 , then Node1 high byte plus 1 and then sent back to Node0 , Node0 after receiving the data will print out 01 00 . Every 2SNode0 data will increment 1 is sent to Node1


Jliu_nuvoton

Prima
Posts: 109
Joined: 20 Mar 2017, 14:22

20 Jun 2017, 15:16

This is a total of several hanging in the above equipment, Is not as long as the ID can be fixed-point communication


Days Lingling spirit spirit

Prima
Posts: 109
Joined: 20 Mar 2017, 14:22

20 Jun 2017, 15:17

Function, not very clearly realized what a thing.


Catch insects

Prima
Posts: 109
Joined: 20 Mar 2017, 14:22

20 Jun 2017, 15:19

Yes, I use Keil, this can be used for my study

Stable and happy

PambMadia
Posts: 6
Joined: 18 Dec 2018, 06:41
Contact:

13 Aug 2019, 15:52

Собрал проект под Keil RTX проц. STM32F4xx. В проекте крутятся 8 задач. Вывод на дисплей - задача с низким приоритетом задача 2. Обработка данных и запись на флеш с большим задача 1. При старте и остановке записи на флеш - процессорное время монопольно переходит к этой задаче задача 1. После окончания записи, когда задача записи задача 1 освобождает процессорное время задача вывода на дисплей задача 2 последовательно вызывается n-ое количество раз столько, сколько раз была пропущена. Можно ли пропустить эту задачу задача 2, чтобы вызывалась только 1 раз после пропуска?
Microcontrollers

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest