Comments (11)
I also observed with the oscilloscope that the CAN_RX(PB8) pin always remains at 3.3V.
Do I need to use any particular function to see the exchange of messages between the two nodes ?
from canopenstm32.
@JTLGE, it seems that the example ran successfully on your board. Try when you turn the board on, you should be able to see a single packet going through the CAN Bus only at the startup procedure. If that's not easy for you to observe, you can use CAN Analyzer or just simply try to set HeartBeat Producer time to 1000. You can do that by generating OD files, or simply open "CANOpen_STM32F3xx/OD.c" and change this line :
.x1017_producerHeartbeatTime = 0x03ED,
and save the OD and program the microcontroller, and you should be able to see Hearbeat message every 1005ms.
from canopenstm32.
I have tried to carry out your modifications, but I have not noticed any changes, I do not see any messages.
from canopenstm32.
Try to set a breakpoint at prv_send_can_message
function and if it is being called, then most probably the problem is with your hardware side, probably wrong pins, wrong inspection method, and etc .
from canopenstm32.
I set the breckpoint where you said and i saw that i go in this point of code, but I don't see any received message on the virtual com with teraterm.
I also tried to see the pin CAN_TX PB9 with an oscilloscope but I saw that the signal is fixed at 3.3V
How can I verify and see the correctly comunicartion between boards?
from canopenstm32.
Sorry @JTLGE can't help much there. apparently it is not the CANOpenNode stack issue anymore. it is more like on your hardware side I would say. Double check that you are measuring the right pin, check that your oscilloscope or measuring device logging correctly. I would use logic analyzer anyway to be able to record the transmission. Anyway as far as I can tell, this code is working on my hardware and couple of other people, so be almost sure of the stack side. But I can't tell much about rest of stuff.
Maybe try writing a CAN transmission code from zero to just test the hardware first and then switch over to CANOpenNode.
from canopenstm32.
thank you @HamedJafarzadeh, could you suggest me a logic analyzer for this application?
from canopenstm32.
I'm using something like this in conjunction with PulseView.
from canopenstm32.
Thank you so much, I'll try it.
from canopenstm32.
@JTLGE, would you please close this issue if your problem has been solved ?
from canopenstm32.
No comment after a year. So I'll close it.
from canopenstm32.
Related Issues (20)
- HAL_FDCAN_ActivateNotification asserts HOT 1
- CUBEMX for STM32H7 initialise issue HOT 1
- Missing CO_new() in canopen_app_process ? HOT 6
- Remove the dependency on TICK timer
- Timer interrupt needs to be stopped during reset communication procedure
- Overflow flag in STM32L4xx HOT 5
- TPDO not working on STM32F1 HOT 3
- Issue with running on STM32H735-DK
- STM32F4DISCOVERY CAN port cannot communicate HOT 3
- More just as request for help than an actual issue. HOT 1
- SDO download fails with message flood HOT 2
- connectivity issue with Nucleo-F103RB HOT 6
- node ID is not added to COB ID in EDS file HOT 4
- error handling requirement HOT 1
- STM32H735 Example Nothing after bootup Message HOT 2
- Configuring the micro as MASTER problem, CO_NMT_sendCommand() not defined. HOT 3
- STM32H735_DK Example Issue With SDO HOT 1
- How can I detect that an slave node is connected to the CAN bus before the HeartBeat message HOT 2
- Trying to communicate with CAN 500kbps HOT 9
- Trying to receive SDO messages in SDO client over CO_SDOclient_receive HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from canopenstm32.