Giter VIP home page Giter VIP logo

canopennode-cubemx-hal's Introduction

Hi ๐Ÿ‘‹, I'm Andrii Shylenko

Firmware and Hardware Engineer

I am connecting machines ๐Ÿ’™ to the cloud.

I work in Research and development for IoT systems, from the specification to architecture, including firmware, validation and production.

Resources

w1ne

w1ne andriishylenko

canopennode-cubemx-hal's People

Contributors

w1ne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

canopennode-cubemx-hal's Issues

Libraries update

AS this is CanopenNode based on the initial canopenNode implemented some years ago from
https://github.com/CANopenNode/CANopenNode, and as this previous repository is being developed improving new features and fixing bug, would it be possible to update this STM32 Repository from time to time?

I feel that we are missing a lot of good updates

David.-

Port CanOpenNode to support HAL

Hello Andrii, i need to work with canopen library for a robotic application, unfortunately the main part of the project has been developped using HAL library and i don't have enough time to make CanOpenNode HAL compatible, do you succeed in this task?

CAN HAL configuration being erased by CO_CANmodule_init function

Hello,

I have a little question regarding CAN peripheral HAL settings being erased by the driver (in CO_CANmodule_init() function).

The CAN peripheral is initialized in MX_CAN1_Init() function, see below :

/* CAN1 init function */
void MX_CAN1_Init(void)
{
hcan1.Instance = CAN1;
hcan1.Init.Prescaler = 40;
hcan1.Init.Mode = CAN_MODE_NORMAL;
hcan1.Init.SyncJumpWidth = CAN_SJW_1TQ;
hcan1.Init.TimeSeg1 = CAN_BS1_13TQ;
hcan1.Init.TimeSeg2 = CAN_BS2_2TQ;
hcan1.Init.TimeTriggeredMode = DISABLE;
hcan1.Init.AutoBusOff = DISABLE;
hcan1.Init.AutoWakeUp = DISABLE;
hcan1.Init.AutoRetransmission = DISABLE;
hcan1.Init.ReceiveFifoLocked = DISABLE;
hcan1.Init.TransmitFifoPriority = DISABLE;
if (HAL_CAN_Init(&hcan1) != HAL_OK)
{
_Error_Handler(__FILE__, __LINE__);
}
}

However, it seems the peripheral settings are being re-written in the CO_CANmodule_init function, is this normal ?
Shouldn't the following lines be deleted to keep previous HAL settings actives ?

CANmodule->CANbaseAddress->Instance = CAN1;
CANmodule->CANbaseAddress->Init.Mode = CAN_MODE_NORMAL;
CANmodule->CANbaseAddress->Init.SyncJumpWidth = CAN_SJW_1TQ;
CANmodule->CANbaseAddress->Init.TimeTriggeredMode = DISABLE;
CANmodule->CANbaseAddress->Init.AutoBusOff = DISABLE;
CANmodule->CANbaseAddress->Init.AutoWakeUp = DISABLE;
CANmodule->CANbaseAddress->Init.AutoRetransmission = ENABLE;
CANmodule->CANbaseAddress->Init.ReceiveFifoLocked = DISABLE;
CANmodule->CANbaseAddress->Init.TransmitFifoPriority = DISABLE;
CANmodule->CANbaseAddress->Init.TimeSeg2 = CAN_BS2_2TQ;
CANmodule->CANbaseAddress->Init.TimeSeg1 = CAN_BS1_13TQ;

It's not causing problem here as the settings are the same but it caused be some problem because my HAL settings were not the same as you and were being erased by your config.

Thanks a lot.

Issue in the CANopen.c file

In the line 363,

err =CO_CANmodule_init( CO->CANmodule[0], CANbaseAddress, CO_CANmodule_rxArray0, CO_RXCAN_NO_MSGS, CO_CANmodule_txArray0, CO_TXCAN_NO_MSGS, bitRate);

CANbaseAddress is an int whereas the function CO_CANmodule_init() takes a pointer as its second argument which creates the following error

"..\CANopen Src\CANopen.c(365): error: #167: argument of type "int32_t" is incompatible with parameter of type "CAN_HandleTypeDef *""

What's the recommended course of action? Modify the CO_CANmodule_init() or is there anything else to do?

Function task_time_slice

Hello w1ne,

First of all thanks for your work. In the main loop of the programm, you call task_time_slice() function. However this is never defined, what is supposed to be the contents of this function ?

Regards,

Fszta

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.