cancel
Showing results for 
Search instead for 
Did you mean: 

Legacy Microcontrollers

User22857
New Contributor
Hello,

I'm trying to develop a firmware to toggle the P7.3 pin from XC2267 after jumping by my own Secondary Bootstrap Loader (ASC)

To do this, I am entering in BSL mode, sending byte 0x00 and receiving the acknowledge (0xD5) correctly.
Then I send 32 bytes from the Secondary Bootloader so that I can receive a bigger firmware (in this case my secondary bootloader will receive 1066 bytes).
After sending 1066 bytes, the secondary bootloader jumps to the address 0x0E00020 that will toggle pin P7.3 (I called as BlinkLed)
After jumping, I'm expecting for pin P7.3 to be in high and low level as the firmware enter into a loop that only has those instructions, but nothing happens.
I thought the problem was because it was configured as UART and I couldn't toggle the pin, so I changed the firmware to send a byte via UART (by pin p.7.3), but it didn't work either.
Now what I believe is that my BlinkLed project is not working because I should configure the project to run on address 0x0E00020 instead of 0xC000000, but I'm not sure.

Does someone have an ideia on how to configure those two projects, to enter in Bootstrap mode then jump to C application and toggle a pin ?
Below are the pieces of my code

Secondary Bootloader (assembly)
5448.attach

Code to toggle PIN (written in C)
5449.attach

C Code configuration
5451.attach


I also have attached below the complete code of my two projects
Hope someone can help me, because I'm working over a week on this


Some more information that might be helpful:
IDE: Dave2(creating and configurating the project) + uvision5
Compiler: keil


Thanks
0 Likes
0 Replies
Top labels