Coder Social home page Coder Social logo

Comments (2)

sergioxdev avatar sergioxdev commented on August 29, 2024

Hi Guys
I update you, doing research I found the following posts:

I am tested it a metro m4 airlift, because i want to update the SAMD51 via serial UART,

  1. I made these changes to the uf2.h file
    // ------------------------------------------------ ---------
    #define USE_LOGS 0
    #define USE_ASSERT 0
    #define USE_FAT 0
    #define USE_INDEX_HTM 0
    #define USE_CDC 1
    #define USE_UART 1
    #define USE_HID 0
    #define USE_WEBUSB 0
    #define USE_MSC 1

#define USE_SINGLE_RESET 1

#define USE_HID_SERIAL 0
#define USE_HID_EXT 0
#define USE_HID_HANDOVER 0
#define USE_MSC_HANDOVER 0
#define USE_MSC_CHECKS 0
#define USE_CDC_TERMINAL 0
#define USE_DBG_MSC 0
// ------------------------------------------------ ---------

  1. I connected a FT232R on the RX / TX pins of the metro

  2. I try to send the same bytes as the BOSSA, "0x4e, 0x23, 0x56, 0x23", to start the boot programming

but I don't get any response
some suggestions, to understand where I'm wrong
Thanks in advance

from uf2-samdx1.

sergioxdev avatar sergioxdev commented on August 29, 2024

Hi Guys

I update you, doing some debugging I found the problem

uf2-samdx1/src/main.c

if (!main_b_cdc_enable && usart_sharp_received()) {

the problem is about usart_sharp_received ()

going backwards.

uf2-samdx1/src/usart_sam_ba.c

if (usart_is_rx_ready()) {

the problem is about usart_is_rx_ready ()

going backwards.

bool usart_is_rx_ready(void) {

the problem is here, however FT232R is connected with the RX / TX pins of the Metro,
I try to send "#" on the serial, but usart_is_rx_ready () always returns false;

I also tried always on main to send a byte on UART1 (SERCOM3) with:
usart_putc (1);
but it does not send anything

Any suggestions

from uf2-samdx1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.