HW_JumpToBootloader

Universal CAN Converter
Post Reply
savage321
Posts: 2
Joined: Tue 3. Apr 2018, 13:42

HW_JumpToBootloader

Post by savage321 » Tue 3. Apr 2018, 13:47

Trying to implement HW_JumpToBootloader function to a baudrate of 250k. Seems to always jump to 500k. Advice as to how to make the bootloader run at 250k would be appreciated as runningon a 250k CAN network. Thanks

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: HW_JumpToBootloader

Post by M.Maidhof » Tue 3. Apr 2018, 14:05

Hi,

please see declaration of HW_JumpToBootloader in hardware.h or see Examples\4_BOOTLOADER on how to change the bootloader baudrate:

Code: Select all

//! Jumps to the Bootloader. This function will never return. Using '0' for
//! the baudrate will instruct the Bootloader to use the default baudrate.
//!
//! @param		baudrate		baudrate for the bootloader, see can_user.h
//!
//! @return		this function will never return
void		HW_JumpToBootloader ( u32_t  baudrate);

regards

Michael

savage321
Posts: 2
Joined: Tue 3. Apr 2018, 13:42

Re: HW_JumpToBootloader

Post by savage321 » Tue 3. Apr 2018, 19:15

Tried that, I've uploaded the 4_BOOTLOADER example, transmitted:
54Ah 8 55h AAh 00h 00h 0Fh 00h 2Ah 00h

bootloader starts > pcanflash only detects module at 500k. Any other ideas?

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: HW_JumpToBootloader

Post by M.Maidhof » Wed 4. Apr 2018, 10:57

Hi,

please call the bootloader as follows:

Code: Select all

HW_JumpToBootloader (CAN_BAUD_250K);
I also tested the example again, works as aspected. Looks like you didn't note the need of the last 4 bytes of the CAN message, which will contain the baudrate settings for 250k:

54Ah 8 55h AAh 00h 00h 0Fh 00h 2Ah 00h

regards

Michael

Post Reply