Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not driver found in can bus samples for olimexino_stm32 #22452

Closed
boonpin1975 opened this issue Feb 4, 2020 · 12 comments
Closed

not driver found in can bus samples for olimexino_stm32 #22452

boonpin1975 opened this issue Feb 4, 2020 · 12 comments
Assignees
Labels

Comments

@boonpin1975
Copy link

is the canbus supported for olimexino_stm32 ?
reproduce :
west build -b olimexino_stm32 samples/drivers/CAN
console output :
uart:~$ �*** Booting Zephyr OS build zephyr-v2.1.0-1628-gb45b1e393c95 ***
CAN: Device driver not found.

uart:$ canbus
canbus - CAN commands
Subcommands:
send :Send a CAN frame.
Usage: send device_name [-re] id [byte_1 byte_2 ...]
-r Remote transmission request
-e Extended address
attach :Attach a message filter and print those messages.
Usage: attach device_name [-re] id [mask [-r]]
-r Remote transmission request
-e Extended address
detach :Detach the filter and stop receiving those messages
Usage: detach device_name filter_id
uart:
$

@erwango erwango self-assigned this Feb 4, 2020
@erwango
Copy link
Member

erwango commented Feb 4, 2020

I don't have hardware to test but CAN support on olimexino_stm32 is enabled since 2302d26.

Maybe @alexanderwachter you can comment on this ?

@alexanderwachter
Copy link
Member

@boonpin1975 Can you turn on the debug log-level for the CAN driver and send the logs?

@alexanderwachter
Copy link
Member

@boonpin1975 don't forget to connect the board to a CANbus that is terminated.
Otherwise, the driver does not initialize, because it needs 11 recessive bits on the bus to initialize.

@boonpin1975
Copy link
Author

boonpin1975 commented Feb 5, 2020

hi all ,

I am connecting the olimexino_stm32 to the komodo can solo for verification purposes , CANH -> CAN+ ( komodo ) , CANL - > CAN- (komodo) , GND -> GND ( komodo )
image

there is no can log in the uart console , can you please clarify ?

uart:~$ �*** Booting Zephyr OS build zephyr-v2.1.0-1662-ga28f8fbef542 ***
CAN: Device driver not found.
my prj.conf
CONFIG_CAN=y
CONFIG_CAN_INIT_PRIORITY=80
CONFIG_CAN_MAX_FILTER=5
CONFIG_CAN_STM32=y
CONFIG_CAN_1=y
CONFIG_CAN_LOG_LEVEL_DBG=y
CONFIG_SHELL=y
CONFIG_CAN_SHELL=y
CONFIG_DEVICE_SHELL=y

@alexanderwachter
Copy link
Member

alexanderwachter commented Feb 5, 2020

Are you on the latest master?

I just built it and the labels seem to be generated correctly. Unfortunately, I don't have a board to test.

@boonpin1975
Copy link
Author

boonpin1975 commented Feb 5, 2020

the version is 2.1.99 . I can build the example but it can not loaded the CAN driver when connected to komodo can analyzer
=== status of zephyr (zephyr):
On branch master
Your branch is up to date with 'origin/master'.

@alexanderwachter
Copy link
Member

@walzert can you check if the tip of master works on your setup?

@walzert
Copy link

walzert commented Feb 5, 2020

@alexanderwachter will do that tomorrow.

@alexanderwachter
Copy link
Member

@boonpin1975 did you get your board working?

@alexanderwachter
Copy link
Member

No response from issuer since two weeks.

@songmaotian
Copy link

I have same problem,I open the can Log,and it's seems because it's doesn't get 11 recessive bits on the bus to leave sleep mode

@erwango
Copy link
Member

erwango commented Mar 13, 2020

@songmaotian

I have same problem,I open the can Log,and it's seems because it's doesn't get 11 recessive bits on the bus to leave sleep mode

Can you open a new issue? Please provide as much as possible information on your environment and application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants