Flask 页面布局layout_main.html

这段代码展示了Flask应用中的一个管理后台页面布局,使用Bootstrap和MetisMenu组件,包括导航栏、菜单结构和用户信息区。

Flask 页面布局layout_main.html  【源码来自编程浪子的flask点餐小程序】

web/templates/common/layout_main.html

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>管理后台</title>
    <link href="{{ buildStaticUrl('/bootstrap/bootstrap.min.css') }}" rel="stylesheet">
    <link href="{{ buildStaticUrl('/font-awesome/css/font-awesome.min.css') }}" rel="stylesheet">
    <link href="{{ buildStaticUrl('/css/style.css') }}" rel="stylesheet">
    {%block css %}{% endblock %}
<body>
<div id="wrapper">
    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="sidebar-collapse">
            <ul class="nav metismenu" id="side-menu">
                <li class="nav-header">
                    <div class="profile-element text-center">
                        <img alt="image" class="img-circle" src="{{ buildStaticUrl('/images/common/logo.png') }}"/>
                        <p class="text-muted">编程浪子</p>
                    </div>
                    <div class="logo-element">
                        <img alt="image" class="img-circle" src="{{ buildStaticUrl('/images/common/logo.png') }}"/>
                    </div>
                </li>
                <li class="default">
                    <a href="{{ buildUrl('/') }}"><i class="fa fa-dashboard fa-lg"></i>
                        <span class="nav-label">仪表盘</span></a>
                </li>
                <li class="account">
                    <a href="{{ buildUrl('/account/index') }}"><i class="fa fa-user fa-lg"></i> <span
                            class="nav-label">账号管理</span></a>
                </li>
                <li class="food">
                    <a href="{{ buildUrl('/food/index') }}"><i class="fa fa-book fa-lg"></i> <span
                            class="nav-label">美餐管理</span></a>
                </li>
                <li class="member">
                    <a href="{{ buildUrl('/member/index') }}"><i class="fa fa-group fa-lg"></i> <span
                            class="nav-label">会员列表</span></a>
                </li>
                <li class="finance">
                    <a href="{{ buildUrl('/finance/index') }}"><i class="fa fa-rmb fa-lg"></i> <span
                            class="nav-label">财务管理</span></a>
                </li>
                <li class="stat">
                    <a href="{{ buildUrl('/stat/index') }}"><i class="fa fa-bar-chart fa-lg"></i> <span
                            class="nav-label">统计管理</span></a>
                </li>
            </ul>

        </div>
    </nav>

    <div id="page-wrapper" class="gray-bg" style="background-color: #ffffff;">
        <div class="row border-bottom">
            <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                <div class="navbar-header">
                    <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="javascript:void(0);"><i class="fa fa-bars"></i> </a>
                </div>
                <ul class="nav navbar-top-links navbar-right">
                    <li>
						<span class="m-r-sm text-muted welcome-message">
                            欢迎使用编程浪子订餐管理管理后台
                        </span>
                    </li>
                    <li class="dropdown user_info">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);">
                            <img alt="image" class="img-circle" src="{{ buildStaticUrl('/images/common/avatar.png') }}"/>
                        </a>
                        <ul class="dropdown-menu dropdown-messages">
                            <li>
                                <div class="dropdown-messages-box">
                                    姓名:{{ current_user.nickname }} <a href="{{ buildUrl('/user/edit') }}" class="pull-right">编辑</a>
                                </div>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <div class="dropdown-messages-box">
                                    手机号码: {{ current_user.mobile }}
                                </div>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <div class="link-block text-center">
                                    <a class="pull-left" href="{{ buildUrl('/user/reset-pwd') }}">
                                        <i class="fa fa-lock"></i> 修改密码
                                    </a>
                                    <a class="pull-right" href="{{ buildUrl('/user/logout') }}">
                                        <i class="fa fa-sign-out"></i> 退出
                                    </a>
                                </div>
                            </li>
                        </ul>
                    </li>

                </ul>

            </nav>
        </div>
        {% block content %}{% endblock %}
    </div>
</div>

<script src="{{ buildStaticUrl('/plugins/jquery-2.1.1.js') }}"></script>
<script src="{{ buildStaticUrl('/bootstrap/bootstrap.min.js') }}"></script>
<script src="{{ buildStaticUrl('/plugins/layer/layer.js') }}"></script>
<script src="{{ buildStaticUrl('/js/common.js') }}"></script>
{%block js %}{% endblock %}
</body>
</html>

这段代码是一个HTML页面的代码,用于构建一个管理后台的界面。下面是对代码中各个部分的详细介绍:

  1. <!DOCTYPE html>:声明文档类型为HTML5。
  2. <html>:HTML文档的根元素。
  3. <head>:包含了一些关于文档的元数据,如字符编码、视口设置等。
  4. <meta charset="utf-8">:指定文档的字符编码为UTF-8。
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">:设置文档的视口,使其在移动设备上能够正确显示。
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">:指定IE浏览器使用最新的渲染模式。
  7. <title>管理后台</title>:设置文档的标题为"管理后台"。
  8. <link>:引入外部样式表文件,用于设置页面的样式。
  9. <body>:HTML文档的主体部分。
  10. <div id="wrapper">:页面的主要内容区域。
  11. <nav class="navbar-default navbar-static-side" role="navigation">:导航栏部分。
  12. <div class="sidebar-collapse">:导航栏的折叠部分。
  13. <ul class="nav metismenu" id="side-menu">:导航栏的菜单列表。
  14. <li>:菜单项。
  15. <a href="{{ buildUrl('/') }}">:菜单项的链接地址。
  16. <i class="fa fa-dashboard fa-lg"></i>:菜单项的图标。
  17. <span class="nav-label">仪表盘</span>:菜单项的文本标签。
  18. {% block css %}{% endblock %}:用于在此处插入自定义的CSS样式。
  19. <div id="page-wrapper" class="gray-bg" style="background-color: #ffffff;">:页面的内容区域。
  20. <div class="row border-bottom">:页面顶部的边框行。
  21. <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">:顶部导航栏。
  22. <div class="navbar-header">:导航栏的头部。
  23. <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="javascript:void(0);"><i class="fa fa-bars"></i> </a>:用于折叠导航栏的按钮。
  24. <ul class="nav navbar-top-links navbar-right">:导航栏右侧的链接列表。
  25. <li>:链接项。
  26. <span class="m-r-sm text-muted welcome-message">欢迎使用编程浪子订餐管理管理后台</span>:欢迎消息。
  27. <li class="dropdown user_info">:用户信息下拉菜单。
  28. <a class="dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);">:用户信息下拉菜单的触发按钮。
  29. <img alt="image" class="img-circle" src="{{ buildStaticUrl('/images/common/avatar.png') }}">:用户头像。
  30. <ul class="dropdown-menu dropdown-messages">:用户信息下拉菜单的内容。
  31. <li>:菜单项。
  32. <div class="dropdown-messages-box">:菜单项的内容。
  33. <a href="{{ buildUrl('/user/edit') }}" class="pull-right">编辑</a>:编辑链接。
  34. <div class="link-block text-center">:链接块。
  35. <a class="pull-left" href="{{ buildUrl('/user/reset-pwd') }}">:修改密码链接。
  36. <a class="pull-right" href="{{ buildUrl('/user/logout') }}">:退出链接。
  37. <div class="hidden hidden_layout_wrap">:隐藏的布局包装器。
  38. <input name="domain" value="{{ config.APP.domain }}">:域名输入框。
  39. <input name="prefix_url" value="{{ config.UPLOAD.prefix_url }}">:URL前缀输入框。
  40. <script>:引入外部JavaScript文件,用于设置页面的行为和交互。
  41. {% block js %}{% endblock %}:用于在此处插入自定义的JavaScript代码。
Rebuild started: Project: Project *** Using Compiler 'V6.19', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin' Rebuild target 'Project' compiling app_ble.c... ../Src/main.c(200): warning: null passed to a callee that requires a non-null argument [-Wnonnull] fputc('s', NULL); ~~~~^ ../Src/main.c(339): warning: null passed to a callee that requires a non-null argument [-Wnonnull] fputc('w', NULL); ~~~~^ 2 warnings generated. compiling main.c... ../Src/app_at.c(793): warning: passing 'char *' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] tcp_rec_show_update((char *)p->payload,p->len); ^~~~~~~~~~~~~~~~~~ ../Src/app_at.c(792): note: passing argument to parameter 'data' here extern void tcp_rec_show_update(uint8_t *data,uint32_t len); ^ 1 warning generated. compiling app_at.c... ../Src/app_bt.c(662): warning: format specifies type 'char *' but the argument has type 'void *' [-Wformat] printf("hfg codec connection rsp: %s,type = %d\r\n",Info->p.ptr,codec_type); ~~ ^~~~~~~~~~~ 1 warning generated. compiling app_bt.c... compiling app_btdm.c... compiling app_task.c... compiling app_hw.c... compiling diskio.c... compiling app_lvgl.c... compiling user_bt.c... compiling autonavi_profile.c... compiling autonavi_handler.c... compiling app_rpmsg.c... compiling msbc_sample.c... compiling app_hid_sdp.c... compiling app_audio.c... compiling sbc_sample.c... compiling mp3_sample.c... compiling btdm_mem.c... compiling controller.c... assembling controller_code.s... compiling host.c... compiling SWD.c... assembling img_rom.s... compiling fal_flash_port.c... compiling fdb_app.c... assembling startup_fr30xx.s... compiling driver_cali.c... compiling trim_fr30xx.c... compiling system_fr30xx.c... compiling driver_efuse.c... compiling driver_frspim.c... compiling driver_flash.c... compiling driver_gpio.c... compiling driver_pmu.c... compiling driver_pmu_iwdt.c... compiling driver_qspi.c... compiling driver_trng.c... compiling driver_uart.c... compiling driver_timer.c... compiling driver_dma.c... compiling driver_display.c... compiling driver_spi_master.c... compiling driver_sd_card.c... compiling driver_sd.c... compiling driver_ipc.c... compiling driver_can.c... compiling driver_pdm.c... compiling driver_i2s.c... compiling driver_psd_dac.c... compiling driver_display_dev.c... compiling driver_saradc.c... compiling ext_flash.c... compiling driver_st7282_rgb_hw.c... compiling co_log.c... ../../../../components/drivers/bsp/spi_flash/IC_W25Qxx.c(240): warning: incompatible pointer types passing 'uint16_t *' (aka 'unsigned short *') to parameter of type 'uint8_t *' (aka 'unsigned char *') [-Wincompatible-pointer-types] __SPI_Read_flash_X1(lu8_DataBuffer, 4, pu8_Buffer, fu32_Length); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../../components/drivers/bsp/spi_flash/IC_W25Qxx.h(37): note: expanded from macro '__SPI_Read_flash_X1' #define __SPI_Read_flash_X1(__CMD__, __CSIZE__, __BUFFER__, __SIZE__) spi_master_readflash_X1(&spi_flash_handle, (uint16_t *)__CMD__, __CSIZE__, (void *)__BUFFER__, __SIZE__) ^~~~~~~~~~~~~~~~~~~ ../../../../components/drivers/peripheral/Inc/driver_spi.h(522): note: passing argument to parameter 'fp_CMD_ADDR' here void spi_master_readflash_X1(SPI_HandleTypeDef *hspi, uint8_t *fp_CMD_ADDR, uint32_t fu32_CMDLegnth, uint8_t *fp_Data, uint16_t fu16_Size); ^ 1 warning generated. compiling IC_W25Qxx.c... compiling co_list.c... compiling fal.c... compiling co_util.c... compiling fal_flash.c... compiling fdb.c... compiling fal_partition.c... compiling croutine.c... compiling fdb_utils.c... compiling event_groups.c... compiling list.c... compiling fdb_kvdb.c... compiling stream_buffer.c... compiling queue.c... compiling port.c... compiling timers.c... compiling portasm.c... compiling heap_6.c... assembling cpu_context.s... compiling freertos_sleep.c... compiling tasks.c... compiling heap.c... compiling lv_indev.c... compiling lv_refr.c... compiling lv_obj_pos.c... compiling lv_flex.c... compiling lv_bmp.c... compiling lv_ffmpeg.c... compiling lv_grid.c... compiling lv_freetype.c... compiling lv_fs_posix.c... compiling lv_fs_fatfs.c... compiling lv_fs_stdio.c... compiling lv_fs_win32.c... compiling lv_gif.c... compiling gifdec.c... compiling lodepng.c... compiling lv_png.c... compiling lv_qrcode.c... compiling lv_rlottie.c... compiling lv_sjpg.c... compiling tjpgd.c... compiling lv_fragment.c... compiling lv_fragment_manager.c... compiling lv_gridnav.c... compiling qrcodegen.c... compiling lv_ime_pinyin.c... compiling lv_imgfont.c... compiling lv_msg.c... compiling lv_monkey.c... compiling lv_snapshot.c... compiling lv_theme_basic.c... compiling lv_theme_mono.c... compiling lv_animimg.c... compiling lv_theme_default.c... compiling lv_calendar.c... compiling lv_calendar_header_dropdown.c... compiling lv_calendar_header_arrow.c... compiling lv_imgbtn.c... compiling lv_colorwheel.c... compiling lv_keyboard.c... compiling lv_chart.c... compiling lv_led.c... compiling lv_list.c... compiling lv_menu.c... compiling lv_msgbox.c... compiling lv_meter.c... compiling lv_spinner.c... compiling lv_spinbox.c... compiling lv_span.c... compiling lv_tileview.c... compiling lv_tabview.c... compiling lv_win.c... compiling lv_font.c... compiling lv_extra.c... compiling lv_font_dejavu_16_persian_hebrew.c... compiling lv_font_fmt_txt.c... compiling lv_font_montserrat_8.c... compiling lv_font_loader.c... compiling lv_font_montserrat_10.c... compiling lv_font_montserrat_12.c... compiling lv_font_montserrat_12_subpx.c... compiling lv_font_montserrat_14.c... compiling lv_font_montserrat_18.c... compiling lv_font_montserrat_16.c... compiling lv_font_montserrat_20.c... compiling lv_font_montserrat_22.c... compiling lv_font_montserrat_24.c... compiling lv_font_montserrat_26.c... compiling lv_font_montserrat_28_compressed.c... compiling lv_font_montserrat_28.c... compiling lv_font_montserrat_30.c... compiling lv_font_montserrat_32.c... compiling lv_font_montserrat_34.c... compiling lv_font_montserrat_36.c... compiling lv_font_montserrat_38.c... compiling lv_font_montserrat_40.c... compiling lv_font_montserrat_42.c... compiling lv_font_montserrat_44.c... compiling lv_font_montserrat_46.c... compiling lv_font_montserrat_48.c... compiling lv_font_simsun_16_cjk.c... compiling lv_font_unscii_8.c... compiling lv_font_unscii_16.c... compiling lv_hal_tick.c... compiling lv_hal_indev.c... compiling lv_hal_disp.c... compiling lv_anim.c... compiling lv_anim_timeline.c... compiling lv_area.c... compiling lv_async.c... compiling lv_color.c... compiling lv_fs.c... compiling lv_bidi.c... compiling lv_gc.c... compiling lv_log.c... compiling lv_ll.c... compiling lv_math.c... compiling lv_lru.c... compiling lv_printf.c... compiling lv_mem.c... compiling lv_templ.c... compiling lv_style.c... compiling lv_style_gen.c... compiling lv_tlsf.c... compiling lv_timer.c... compiling lv_utils.c... compiling lv_txt.c... compiling lv_txt_ap.c... compiling lv_btn.c... compiling lv_arc.c... compiling lv_bar.c... compiling lv_checkbox.c... compiling lv_canvas.c... compiling lv_btnmatrix.c... compiling lv_img.c... compiling lv_dropdown.c... compiling lv_objx_templ.c... compiling lv_label.c... compiling lv_line.c... compiling lv_roller.c... compiling lv_slider.c... compiling lv_switch.c... compiling lv_textarea.c... compiling lv_table.c... compiling lv_demo_benchmark.c... compiling img_benchmark_cogwheel_alpha16.c... compiling img_benchmark_cogwheel_argb.c... compiling img_benchmark_cogwheel_chroma_keyed.c... compiling img_benchmark_cogwheel_indexed16.c... compiling img_benchmark_cogwheel_rgb.c... compiling img_benchmark_cogwheel_rgb565a8.c... compiling lv_font_bechmark_montserrat_12_compr_az.c.c... compiling lv_font_bechmark_montserrat_16_compr_az.c.c... compiling lv_font_bechmark_montserrat_28_compr_az.c.c... compiling lv_demo_stress.c... compiling img_clothes.c... compiling lv_demo_widgets.c... compiling img_demo_widgets_avatar.c... compiling img_lvgl_logo.c... compiling lv_demo_music.c... compiling lv_demo_music_list.c... compiling img_lv_demo_music_btn_corner_large.c... compiling lv_demo_music_main.c... compiling img_lv_demo_music_btn_list_pause.c... compiling img_lv_demo_music_btn_list_pause_large.c... compiling img_lv_demo_music_btn_list_play.c... compiling img_lv_demo_music_btn_list_play_large.c... compiling img_lv_demo_music_btn_loop.c... compiling img_lv_demo_music_btn_loop_large.c... compiling img_lv_demo_music_btn_next.c... compiling img_lv_demo_music_btn_next_large.c... compiling img_lv_demo_music_btn_pause.c... compiling img_lv_demo_music_btn_pause_large.c... compiling img_lv_demo_music_btn_play.c... compiling img_lv_demo_music_btn_play_large.c... compiling img_lv_demo_music_btn_prev.c... compiling img_lv_demo_music_btn_prev_large.c... compiling img_lv_demo_music_btn_rnd.c... compiling img_lv_demo_music_btn_rnd_large.c... compiling img_lv_demo_music_corner_left.c... compiling img_lv_demo_music_corner_left_large.c... compiling img_lv_demo_music_corner_right.c... compiling img_lv_demo_music_corner_right_large.c... compiling img_lv_demo_music_cover_1_large.c... compiling img_lv_demo_music_cover_1.c... compiling img_lv_demo_music_cover_2.c... compiling img_lv_demo_music_cover_2_large.c... compiling img_lv_demo_music_cover_3.c... compiling img_lv_demo_music_cover_3_large.c... compiling img_lv_demo_music_icon_1.c... compiling img_lv_demo_music_icon_1_large.c... compiling img_lv_demo_music_icon_2.c... compiling img_lv_demo_music_icon_2_large.c... compiling img_lv_demo_music_icon_3.c... compiling img_lv_demo_music_icon_3_large.c... compiling img_lv_demo_music_icon_4.c... compiling img_lv_demo_music_icon_4_large.c... compiling img_lv_demo_music_list_border.c... compiling img_lv_demo_music_list_border_large.c... compiling img_lv_demo_music_logo.c... compiling img_lv_demo_music_slider_knob.c... compiling img_lv_demo_music_slider_knob_large.c... compiling img_lv_demo_music_wave_bottom.c... compiling img_lv_demo_music_wave_bottom_large.c... compiling img_lv_demo_music_wave_top.c... compiling crc32.c... compiling ffsystem.c... compiling img_lv_demo_music_wave_top_large.c... compiling ffunicode.c... compiling lfs_util.c... compiling ext_flash_program.c... compiling ff.c... compiling ext_flash_uart.c... compiling lfs_port.c... compiling lv_common_function.c... compiling batt_full_yellow.c... compiling lfs.c... compiling batt_full_gren.c... compiling arialuni_bbp1_32px__.c... compiling Number_HarmonyOS_bpp4_16px.c... compiling Number_HarmonyOS_bpp4_12px.c... compiling Number_HarmonyOS_bpp4_44px.c... compiling Number_HarmonyOS_bpp4_36px.c... compiling Number_HarmonyOS_bpp4_92px.c... compiling fr_lv_test_page.c... compiling Number_HarmonyOS_bpp4_20px.c... compiling fr_lv_86box_page.c... compiling fr_lv_customer_page.c... compiling fr_lv_app_music_control.c... compiling fr_lv_instrument_panel.c... compiling fr_lv_instrument_panel_km.c... compiling fr_lv_list_page.c... compiling fr_lv_can_page.c... compiling fr_lv_bt_pan_page.c... compiling fr_guimain.c... compiling fr_watch.c... compiling lv_user_sqlist.c... compiling fr_device_rtc.c... compiling fr_device_button.c... compiling fr_device_encode.c... compiling fr_device_pmu_io.c... compiling autoip.c... compiling fr_device_canfd.c... compiling icmp.c... compiling etharp.c... compiling igmp.c... compiling dhcp.c... compiling ip4.c... compiling ip4_addr.c... compiling dhcp6.c... compiling ethip6.c... compiling ip4_frag.c... compiling icmp6.c... compiling inet6.c... compiling ip6.c... compiling ip6_addr.c... compiling ip6_frag.c... compiling mld6.c... compiling nd6.c... compiling altcp.c... compiling altcp_alloc.c... compiling altcp_tcp.c... compiling def.c... compiling inet_chksum.c... compiling init.c... compiling dns.c... compiling ip.c... compiling mem.c... compiling memp.c... compiling raw.c... compiling netif.c... compiling stats.c... compiling sys.c... compiling pbuf.c... compiling tcp_in.c... compiling tcp.c... compiling tcp_out.c... compiling timeouts.c... compiling udp.c... compiling api_lib.c... compiling err.c... compiling if_api.c... compiling api_msg.c... compiling netbuf.c... compiling netdb.c... compiling netifapi.c... compiling ethernet.c... compiling tcpip.c... compiling ethernetif.c... compiling sys_arch.c... compiling sockets.c... compiling rpmsg.c... compiling rpmsg_ns.c... compiling rpmsg_lite.c... compiling rpmsg_queue.c... compiling llist.c... compiling virtqueue.c... compiling rpmsg_env_freertos.c... compiling rpmsg_platform.c... assembling dsp_code_rom.s... compiling dsp.c... compiling dsp_mem.c... compiling audio_a2dp_sink.c... compiling audio_a2dp_source.c... compiling audio_encoder.c... compiling audio_rpmsg.c... ../../../../components/modules/audio/audio_decoder.c(72): warning: null passed to a callee that requires a non-null argument [-Wnonnull] fputc(hex2char[(value >> 12)&0xf], NULL); ~~~~^ ../../../../components/modules/audio/audio_decoder.c(73): warning: null passed to a callee that requires a non-null argument [-Wnonnull] fputc(hex2char[(value >> 8)&0xf], NULL); ~~~~^ ../../../../components/modules/audio/audio_decoder.c(74): warning: null passed to a callee that requires a non-null argument [-Wnonnull] fputc(hex2char[(value >> 4)&0xf], NULL); ~~~~^ ../../../../components/modules/audio/audio_decoder.c(75): warning: null passed to a callee that requires a non-null argument [-Wnonnull] fputc(hex2char[(value >> 0)&0xf], NULL); ~~~~^ 4 warnings generated. compiling audio_decoder.c... compiling audio_hw.c... compiling audio_scene.c... compiling local_playback.c... compiling audio_sco.c... compiling loopback.c... compiling recorder.c... compiling voice_recognize.c... compiling algorithm.c... compiling resample.c... compiling codec.c... compiling AMS_client.c... compiling simple_gatt_service.c... compiling ANCS_AMS_client.c... compiling hid_service.c... compiling retarget_io.c... linking... .\Objects\Project.axf: Error: L6985E: Unable to automatically place AT section rpmsg.o(.ARM.__at_0x20000000) with required base address 0x20000000. Please manually place in the scatter file using the --no_autoat option. Not enough information to list image symbols. Finished: 1 information, 0 warning and 1 error messages. ".\Objects\Project.axf" - 1 Error(s), 9 Warning(s). Target not created. Build Time Elapsed: 00:01:10
最新发布
09-13
Rebuild started: Project: stm32f407 *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'D:\cjc\keil\ARM\ARMCC\Bin' Rebuild target 'stm32f407' assembling startup_stm32f40_41xxx.s... compiling main.c... ..\app\main.c(23): error: #167: argument of type "struct led_desc" is incompatible with parameter of type "led_desc_t" led_on(led1); ..\app\main.c(35): warning: #1-D: last line of file ends without a newline ..\app\main.c: 1 warning, 1 error compiling boad.c... compiling led.c... ..\driver\led.c(51): warning: #1-D: last line of file ends without a newline ..\driver\led.c: 1 warning, 0 errors compiling stm32f4xx_crc.c... compiling misc.c... compiling stm32f4xx_can.c... compiling stm32f4xx_cec.c... compiling system_stm32f4xx.c... compiling stm32f4xx_adc.c... compiling stm32f4xx_cryp.c... compiling stm32f4xx_cryp_des.c... compiling stm32f4xx_cryp_tdes.c... compiling stm32f4xx_cryp_aes.c... compiling stm32f4xx_dac.c... compiling stm32f4xx_dbgmcu.c... compiling stm32f4xx_dcmi.c... compiling stm32f4xx_dfsdm.c... compiling stm32f4xx_dma.c... compiling stm32f4xx_dma2d.c... compiling stm32f4xx_dsi.c... compiling stm32f4xx_exti.c... compiling stm32f4xx_flash_ramfunc.c... compiling stm32f4xx_flash.c... compiling stm32f4xx_fmpi2c.c... compiling stm32f4xx_fsmc.c... compiling stm32f4xx_gpio.c... compiling stm32f4xx_hash.c... compiling stm32f4xx_hash_md5.c... compiling stm32f4xx_hash_sha1.c... compiling stm32f4xx_i2c.c... compiling stm32f4xx_iwdg.c... compiling stm32f4xx_lptim.c... compiling stm32f4xx_ltdc.c... compiling stm32f4xx_pwr.c... compiling stm32f4xx_qspi.c... compiling stm32f4xx_rcc.c... compiling stm32f4xx_rng.c... compiling stm32f4xx_rtc.c... compiling stm32f4xx_sai.c... compiling stm32f4xx_sdio.c... compiling stm32f4xx_spdifrx.c... compiling stm32f4xx_syscfg.c... compiling stm32f4xx_spi.c... compiling stm32f4xx_tim.c... compiling stm32f4xx_usart.c... compiling stm32f4xx_wwdg.c... ".\Objects\stm32f407.axf" - 1 Error(s), 2 Warning(s). Target not created. Build Time Elapsed: 00:00:10
06-23
Light_system\Light_system.axf: Error: L6406E: No space in execution regions with .ANY selector matching main.o(.bss). Light_system\Light_system.axf: Error: L6406E: No space in execution regions with .ANY selector matching startup_stm32f103xb.o(STACK). Light_system\Light_system.axf: Error: L6406E: No space in execution regions with .ANY selector matching freertos.o(.bss). Light_system\Light_system.axf: Error: L6406E: No space in execution regions with .ANY selector matching tasks.o(.bss). Light_system\Light_system.axf: Error: L6406E: No space in execution regions with .ANY selector matching usart.o(.bss). Light_system\Light_system.axf: Error: L6406E: No space in execution regions with .ANY selector matching i2c.o(.bss). Light_system\Light_system.axf: Error: L6406E: No space in execution regions with .ANY selector matching stm32f1xx_hal_timebase_tim.o(.bss). Light_system\Light_system.axf: Error: L6406E: No space in execution regions with .ANY selector matching tasks.o(.data). Light_system\Light_system.axf: Error: L6406E: No space in execution regions with .ANY selector matching freertos.o(.data). Light_system\Light_system.axf: Error: L6406E: No space in execution regions with .ANY selector matching heap_4.o(.data). Light_system\Light_system.axf: Error: L6406E: No space in execution regions with .ANY selector matching rtc.o(.bss). Light_system\Light_system.axf: Error: L6406E: No space in execution regions with .ANY selector matching stm32f1xx_hal.o(.data). Light_system\Light_system.axf: Error: L6406E: No space in execution regions with .ANY selector matching port.o(.data). Light_system\Light_system.axf: Error: L6406E: No space in execution regions with .ANY selector matching system_stm32f1xx.o(.data). Light_system\Light_system.axf: Error: L6406E: No space in execution regions with .ANY selector matching stdout.o(.data). Light_system\Light_system.axf: Error: L6406E: No space in execution regions with .ANY selector matching main.o(.data). Light_system\Light_system.axf: E
03-16
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

xinzheng新政

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值