跳转至内容
  • ytc导入历程时出现提示

    未解决 开发环境搭建
    2
    0 赞同
    2 帖子
    621 浏览
    李富贵

    image.png
    image.png这里下载

  • 0 赞同
    5 帖子
    450 浏览
    nguyan2N

    Diga 在 YTM32B1MD14 - MPU Configuration - Can I grant permission rw-|r-- for a memory section? 中说:

    ARMv7 can support your case. YTM32B1HA01's core is CORTEX-M7 with ARMv7.
    b514bd3a-96f7-4073-8763-eca5918191c8-image.png

    Thanks for your suggestion but unfortunately we can't change the chipset.

    Is there any mechanism or any demo code to switch between Supervisor mode and User mode for YTM32B1MD14?

  • 0 赞同
    2 帖子
    498 浏览
    yt0503Y

    image.png

  • YTM32B1MD2_0_9_1 Release Notes

    MCAL Release Notes
    1
    0 赞同
    1 帖子
    362 浏览
    尚无回复
  • ME05 电源跌落实验

    YTM32B1M系列
    4
    0 赞同
    4 帖子
    530 浏览
    MrluM

    问题补充:
    1、实验方法:
    在系统电源12V上施加如下脉冲信号,循环施加次数:5000次;
    image.png

    2、正常情况:
    MCU会随着测试脉冲周期(500ms),周期重启,MCU_3.3V和MCU_reset波形如下:
    image.png

    3、异常现象:
    在试验过程中,有一台机器会概率出现卡死后无法重启(测试脉冲不停止),需停止测试脉冲,且系统供电12V掉电再上电,MCU方可重启!

    请问,此异常是否因为MCU_3.3V触发POR功能导致的?假设MCU的电源保护触发后,怎样操作可以退出?

  • 配置TP参数的时候,没有“P2扩展时间”的选项

    YTM32B1M系列
    2
    0 赞同
    2 帖子
    441 浏览
    jiankang_wangJ

    是CANTP吗?
    CANTP 是按照 ISO 15765-2:2016 开发的,里面的时间参数不叫 P2,你可以对照着看看在 15765 定义的是什么。这里的 P2 应该是 N_Bs 时间

  • CAN通讯异常出现未知TX下拉,导致通讯失败。

    YTM32B1L系列
    7
    0 赞同
    7 帖子
    1k 浏览
    HAIYANGH

    image.png在这个位置下拉的debug configuration添加.svd文件可以直接查看寄存器

  • ME0 MbedTLS中间件

    YTM32B1M系列
    3
    0 赞同
    3 帖子
    500 浏览
    qinzhaoQ

    有个基于demo修改的增加函数
    int aes_CFB_test(void) {
    psa_status_t status;
    psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT;
    psa_key_id_t key_id = 0;
    size_t output_length;
    psa_cipher_operation_t operation = PSA_CIPHER_OPERATION_INIT;
    uint8_t iv[16] = {
    0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
    0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f}; // Initialization vector for
    // CFB mode

    /* Set key attributes for AES-CFB*/
    psa_set_key_usage_flags(&attributes,
    (PSA_KEY_USAGE_ENCRYPT | PSA_KEY_USAGE_DECRYPT));
    psa_set_key_algorithm(&attributes, PSA_ALG_CFB);
    psa_set_key_type(&attributes, PSA_KEY_TYPE_AES);
    psa_set_key_bits(&attributes, 128);

    /* Import the key*/
    status = psa_import_key(&attributes, aes_key, sizeof(aes_key), &key_id);
    if (status != PSA_SUCCESS) {
    PRINTF("Key import failed! (status = %d)\n\r", status);
    return status;
    }

    /* Performing encryption*/
    CM33_DWT_Start(); // Start timing for encryption
    status = psa_cipher_encrypt_setup(&operation, key_id, PSA_ALG_CFB);
    if (status != PSA_SUCCESS) {
    PRINTF("Encryption setup failed! (status = %d)\n\r", status);
    psa_destroy_key(key_id);
    return status;
    }

    status = psa_cipher_set_iv(&operation, iv, sizeof(iv));
    if (status != PSA_SUCCESS) {
    PRINTF("Setting IV failed! (status = %d)\n\r", status);
    psa_cipher_abort(&operation);
    psa_destroy_key(key_id);
    return status;
    }

    status = psa_cipher_update(&operation, plaintext, sizeof(plaintext),
    ciphertext, sizeof(ciphertext), &output_length);
    if (status != PSA_SUCCESS) {
    PRINTF("Encryption update failed! (status = %d)\n\r", status);
    psa_cipher_abort(&operation);
    psa_destroy_key(key_id);
    return status;
    }

    status =
    psa_cipher_finish(&operation, ciphertext + output_length,
    sizeof(ciphertext) - output_length, &output_length);
    if (status != PSA_SUCCESS) {
    PRINTF("Encryption finish failed! (status = %d)\n\r", status);
    psa_cipher_abort(&operation);
    psa_destroy_key(key_id);
    return status;
    }

    // Stop timing and calculate encryption time
    uint32_t encryption_cycles = CM33_DWT_Stop();
    PRINTF("AES CFB encryption took %u cycles\r\n", encryption_cycles);
    PRINTF("CPU core clock frequency: %u Hz\r\n", cpu_freq);
    PRINTF("AES CFB encryption time: %.6f seconds\r\n",
    (float)encryption_cycles / cpu_freq);

    print_buf("Key", aes_key, DATA_LENGTH);
    print_buf("IV", iv, DATA_LENGTH);
    print_buf("Plaintext", plaintext, DATA_LENGTH);
    print_buf("Ciphertext", ciphertext, DATA_LENGTH);

    /Performing decryption/
    uint8_t decrypted[DATA_LENGTH];
    status = psa_cipher_decrypt_setup(&operation, key_id, PSA_ALG_CFB);
    if (status != PSA_SUCCESS) {
    PRINTF("Decryption setup failed! (status = %d)\n\r", status);
    psa_destroy_key(key_id);
    return status;
    }

    status = psa_cipher_set_iv(&operation, iv, sizeof(iv));
    if (status != PSA_SUCCESS) {
    PRINTF("Setting IV failed! (status = %d)\n\r", status);
    psa_cipher_abort(&operation);
    psa_destroy_key(key_id);
    return status;
    }

    status = psa_cipher_update(&operation, ciphertext, sizeof(ciphertext),
    decrypted, sizeof(decrypted), &output_length);
    if (status != PSA_SUCCESS) {
    PRINTF("Decryption update failed! (status = %d)\n\r", status);
    psa_cipher_abort(&operation);
    psa_destroy_key(key_id);
    return status;
    }

    status = psa_cipher_finish(&operation, decrypted + output_length,
    sizeof(decrypted) - output_length, &output_length);
    if (status != PSA_SUCCESS) {
    PRINTF("Decryption finish failed! (status = %d)\n\r", status);
    psa_cipher_abort(&operation);
    psa_destroy_key(key_id);
    return status;
    }

    print_buf("Decrypted", decrypted, DATA_LENGTH);

    if (buf_cmp(plaintext, decrypted, DATA_LENGTH) != 0) {
    PRINTF("Decryption failed! (status = %d)\n\r", status);
    psa_destroy_key(key_id);
    return -1;
    }

    /* Destroy the key*/
    psa_destroy_key(key_id);
    return 0;
    }可以参考一下。
    image.png

  • ME0 MbedTLS中间件 分享

    YTM32B1M系列
    12
    0 赞同
    12 帖子
    2k 浏览
    hjkjH

    请问下能否做一个AES-CFB的demo?

  • 芯片封装里的 l m n是什么意思

    Blogs
    1
    1 赞同
    1 帖子
    418 浏览
    尚无回复
  • 0 赞同
    17 帖子
    860 浏览
    MonsterM

    @junhanhuang 在 LPTMR和LINFlex2同时打开,uart能发送数据,但是lptmr无法进入中断,超时判断卡主 中说:

    这个是基于你的yct做的最简lptmr程序,我这边可以正常进中断,你刷这个代码试试
    003.zip

  • 0 赞同
    14 帖子
    1k 浏览
    ysogY

    是的,iar选择.out文件,keil选择.axf文件

  • 0 赞同
    1 帖子
    270 浏览
    尚无回复
  • YTM32B1LE14支持UART的RXD触发唤醒么?

    YTM32B1L系列
    2
    0 赞同
    2 帖子
    767 浏览
    qinzhaoQ

    可以在休眠前将RX管脚设为GPIO中断,standby支持GPIO中断唤醒;在唤醒后,再将管脚设为UART RX复用可实现。

  • le系列 lin自动波特率工程

    YTM32B1L系列
    4
    0 赞同
    4 帖子
    883 浏览
    sunxuehuS

    试了demo工程文件 未发现客户描述的问题

  • -2 赞同
    9 帖子
    700 浏览
    MonsterM

    添加ldf失败
    image.png
    16_BCM_R_LIN4_EP_v2.0.0-20251013.zip帮忙看一下这个ldf为啥不行

  • 各系列芯片的上电初始化时间

    YT SDK
    2
    0 赞同
    2 帖子
    1k 浏览
    EkkoE

    Xuan 使用ME05 demo板跑Macl,实测上电时间需要100ms左右,这边可以确认一下Macl的上电时间吗050a7eca-741d-47fa-9b5d-03a43046fae6-37ff3763d005621a9d36aa06b42b3eb.jpg

  • YUNTU IDE使用PE仿真器如何设置?

    开发环境搭建
    3
    0 赞同
    3 帖子
    1k 浏览
    kid_liK

    好的,我验证了eclipse提供插件支持PEMicro,多谢。

  • YTM32B1MD14 - MPU Configuration for CorTst

    YTM32B1M系列
    2
    0 赞同
    2 帖子
    429 浏览
    jiankang_wangJ

    These two sections cannot be placed in the same MPU region. Specifically:

    .cortst_ram_data_target0 should be placed in MPU_M33_PRIV_RWX_UNPRIV_RWX .cortst_ram_data_target1 should be placed in MPU_M33_PRIV_RW_UNPRIV_NONE

    For more information, refer to CorTst_Demo. In the demo, the corresponding sections and their locations are as follows:

    cdad0734-1b40-401c-a535-080746140f3a-image.png

    eb69771a-637d-44c8-8648-be3662a64b1d-image.png

    a0a520ff-226f-4746-848e-2bee31033565-image.png

  • Crypto模块MACL配置手册能提供一下吗

    YTM32B1M系列
    4
    0 赞同
    4 帖子
    826 浏览
    houjun_xiaoH

    云途MCAL配置与使用详解之CryptoDrivers模块.pdf这是MCAL crypto模块使用的一些解释,你看是否对你有帮助。

  • 云途开发生态介绍

    快速上手云途开发生态

  • 云途论坛规则/Yuntu Forum Rules

    发帖前请查看

  • YT CONFIG TOOL调查问卷

    帮助改进和优化YT CONFIG TOOL,有机会抽取YTM32B1ME0 EVB哦...

  • Online Users