• AVR Freaks

Hot!CAN transmitted message error

Author
BHUSHAN
Junior Member
  • Total Posts : 92
  • Reward points : 0
  • Joined: 2019/02/04 23:17:18
  • Location: 0
  • Status: offline
2019/10/25 07:12:28 (permalink)
0

CAN transmitted message error

Greetings,
I am using dsPIC33FJ64GP804 for my project. I am using "cross-wire communication between ECAN1 and ECAN2" example provided by microchip. I modified that code for using only  ECAN1. I have set the CAN baud rate to 125kbps, my Fosc=8MHz,Fcy=40MHz and UART baud rate =9600. I am seeing the CAN bus signals on Microchip CAN Bus analyzer.
I am getting the wrong data on CAN bus analyzer. I used the same code(with some register based modifications) for dsPIC33EP512MU810 and there I got what I was transmitting but this microcontroller(dsPIC33FJ64GP804) is giving a lot of trouble(from programming to this CAN bus issue). 
I am attaching my code and screenshot of CAN bus analyzer with next consecutive post. Kindly help me in troubleshooting this issue.
Thanks
Best Regards
Bhushan
#1

4 Replies Related Threads

    BHUSHAN
    Junior Member
    • Total Posts : 92
    • Reward points : 0
    • Joined: 2019/02/04 23:17:18
    • Location: 0
    • Status: offline
    Re: CAN transmitted message error 2019/10/25 07:17:50 (permalink)
    0
    Greetings,
    I am not able to upload a project zip using this post thread,why?. When I tried attaching zip file to one of my previous post then I succeeded. Why??
    Thanks
    Best Regards
    Bhushan
    #2
    du00000001
    Just Some Member
    • Total Posts : 3835
    • Reward points : 0
    • Joined: 2016/05/03 13:52:42
    • Location: Germany
    • Status: offline
    Re: CAN transmitted message error 2019/10/25 07:32:08 (permalink)
    0
    The attach function clearly denotes the limitation to .gif, .txt, .jpg
    You may complain about this - or e.g. add an extension to your .zips name.
     
    (Feel free to give me the link to a posting where you were able to upload a .zip.
    Although, the policies may have changed...)

    PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
    #3
    BHUSHAN
    Junior Member
    • Total Posts : 92
    • Reward points : 0
    • Joined: 2019/02/04 23:17:18
    • Location: 0
    • Status: offline
    Re: CAN transmitted message error 2019/10/25 21:28:39 (permalink)
    0
    du00000001
    The attach function clearly denotes the limitation to .gif, .txt, .jpg
    You may complain about this - or e.g. add an extension to your .zips name.
     
    (Feel free to give me the link to a posting where you were able to upload a .zip.
    Although, the policies may have changed...)


    Greetings du00000001,
    Last time I posted a zip file of my project. I don't know why not today.
    Anyway I will shortly post my code.
    Thanks
    Best Regards
    Bhushan
    #4
    BHUSHAN
    Junior Member
    • Total Posts : 92
    • Reward points : 0
    • Joined: 2019/02/04 23:17:18
    • Location: 0
    • Status: offline
    Re: CAN transmitted message error 2019/10/26 01:40:44 (permalink)
    0
    Greetings,
    I checked my code again and I found that I am able to receive correct data from CAN bus analyzer. Then I checked my code further and found that I placed wrong address in DMA RAM Primary Start Address register.
    Now I am able to transmit correct message on CAN bus. However I still have issue with this micro-controller version.
    While programming I get this error message on MPLAB X IPE terminal:-
    2019-10-26 13:40:35 +0530 - Hex file(s) loaded successfully.
    2019-10-26 13:40:39 +0530 - Programming...


    You are trying to change protected boot memory. In order to do this you must select the "Boot, Secure and General Segments" option on the debug tool Secure Segment properties page.
    Failed to program device.
     
    I usually disconnect power and PICKIT3 and reconnect to program the ic. Why this error keep on popping?
    Microchip forum should at least provide provision for uploading zip files of our projects.
     
    Thanks
    Best Regards
    Bhushan
    #5
    Jump to:
    © 2020 APG vNext Commercial Version 4.5