HW_JumpToBootloader
HW_JumpToBootloader
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
Re: HW_JumpToBootloader
Hi,
please see declaration of HW_JumpToBootloader in hardware.h or see Examples\4_BOOTLOADER on how to change the bootloader baudrate:
regards
Michael
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
Re: HW_JumpToBootloader
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?
54Ah 8 55h AAh 00h 00h 0Fh 00h 2Ah 00h
bootloader starts > pcanflash only detects module at 500k. Any other ideas?
Re: HW_JumpToBootloader
Hi,
please call the bootloader as follows:
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
please call the bootloader as follows:
Code: Select all
HW_JumpToBootloader (CAN_BAUD_250K);
54Ah 8 55h AAh 00h 00h 0Fh 00h 2Ah 00h
regards
Michael