It says, V5.778 in the toolchain. I did notice and have worked on trying to get the bootloader to work with usart2 with no success. I don't understand why?
I have attached the modified version. Maybe if you can, take a look?
It says, V5.778 in the toolchain. I did notice and have worked on trying to get the bootloader to work with usart2 with no success. I don't understand why?
I have attached the modified version. Maybe if you can, take a look?
Dave Purola,
N8NTA
EN82fn
All of the control registers for UART1 are in the access bank so you can get away with not using banksel to get to them.
UART2 registers are in a different bank (bank 14, 0x0E99-0x0E9F) so you have to load the BSR (ie BANKSEL RC2STA) to access them.
You can still use UART1 but assign it to different pins with the PPS... that would be a lot easier (and smaller) than adding all the code to get at UART2.
Tumbleweed, I think I will go the ( BANKSEL RC2STA) route because I use the uart1 for different communications to remote arrays. Thanks for the advice, I should have seen that. I am by no means an asm guru but I do know enough to get into trouble.....
Dave Purola,
N8NTA
EN82fn
Well, This has been a prosperous morning as I have the bootloader running on com2. For this project I need to bootload it over Bluetooth. Thanks so much Tumbleweed for the advice. I can see a whole new future with these K40's.... Thanks...
Dave Purola,
N8NTA
EN82fn
Bookmarks