Embedded programming


#PCB


Trulli

I try to design a boad that I can use to test the programmer and the bootloader.


In the configuration, there are two LEDs. I can use them as light or sensor.


Trulli

The result



test programe1


One LED is programmed as sensor. The delay time is controlled by Analogread value



One LED is programmed as sensor. The other LED's condition is controlled by Analogread value When the light sensor senses no light, the other LED will be turned on I found that it can be use as button when a finger blocks the environment light



Testing the OpenOCD and EDBG


I try to use my M1 MAC to upload programmer and bootloader; however, I encounter an issue It seems that OpenOCD's unlock program doesn't work. Therefore, I have to use my another windows computer to unlock the ship; then, the MAC is able to upload the program


The following is my test result


Trulli


GROUP ASSIGNMENT




Oct 19 2022