Code Monkey home page Code Monkey logo

ch58x-hal's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

ch32-rs

ch58x-hal's Issues

Can you please help me get blinky example to work?

Hello Slappy, may I have some help please? I am trying to learn

I flash blinky, but I see no light. See my cargo run output below

Also, is it normal I need to pull usb out, hold down bootloader button, and plug usb in again to flash? And if I wait too long I cant flash and have to pull usb out again. Is there easier way?

Thank you


❯ cargo run --example blinky
    Finished dev [unoptimized + debuginfo] target(s) in 0.03s
     Running `wchisp flash target\riscv32imac-unknown-none-elf\debug\examples\blinky`
06:16:47 [INFO] Chip: CH582[0x8216] (Code Flash: 448KiB, Data EEPROM: 32KiB)
06:16:47 [INFO] Chip UID: 24-7F-A9-26-3B-38-08-DE
06:16:47 [INFO] BTVER(bootloader ver): 02.40
06:16:47 [INFO] Current config registers: ffffffffffffffff4f3f0f4d
RESERVED: 0xFFFFFFFF
WPROTECT: 0xFFFFFFFF
  [0:0]   NO_KEY_SERIAL_DOWNLOAD 0x1 (0b1)
    `- Enable
  [1:1]   DOWNLOAD_CFG 0x1 (0b1)
    `- PB22(Default set)
USER_CFG: 0x4D0F3F4F
  [2:0]   RESERVED 0x7 (0b111)
    `- Changed
  [3:3]   CFG_RESET_EN 0x1 (0b1)
    `- Enable
  [4:4]   CFG_DEBUG_EN 0x0 (0b0)
    `- Disable
  [5:5]   RESERVED 0x0 (0b0)
  [6:6]   CFG_BOOT_EN 0x1 (0b1)
    `- Enable
  [7:7]   CFG_ROM_READ 0x0 (0b0)
    `- Disable the programmer to read out, and keep the program secret
  [27:8]  RESERVED 0xD0F3F (0b11010000111100111111)
    `- Changed
  [31:28] VALID_SIG 0x4 (0b100)
    `- Valid
06:16:47 [INFO] Read target\riscv32imac-unknown-none-elf\debug\examples\blinky as ELF format
06:16:47 [INFO] Found loadable segment, physical address: 0x08000000, virtual address: 0x08000000, flags: 0x5
06:16:47 [INFO] Section names: [".text"]
06:16:47 [INFO] Found loadable segment, physical address: 0x080011e0, virtual address: 0x080011e0, flags: 0x4
06:16:47 [INFO] Section names: [".rodata"]
06:16:47 [INFO] Firmware size: 6144
06:16:47 [INFO] Erasing...
06:16:47 [WARN] erase_code: set min number of erased sectors to 8
06:16:47 [INFO] Erased 8 code flash sectors
06:16:48 [INFO] Erase done
06:16:48 [INFO] Writing to code flash...
███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ 6144/614406:16:50 [INFO] Code flash 6144 bytes written
06:16:50 [INFO] Verifying...
███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ 6144/614406:16:52 [INFO] Verify OK
06:16:52 [INFO] Now reset device and skip any communication errors
06:16:52 [INFO] Device reset

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.